Skip to content

fix(subagent): wait on idle stall pings instead of inferring - #1160

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-8912-stop-idle-subagent-stall-pings-from-starting-a-model-turn
Sep 24, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-8912-stop-idle-subagent-stall-pings-from-starting-a-model-turn

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

An empty stall or compaction continuation with recent activity waits instead of starting a model turn. Compact resume, idle-threshold folds, and cache-TTL folds still run before that wait. The silence clock is not restarted.

Verification

  • bun test ./src/subagent/nudge-director.test.ts (49 pass, exit 0, after rebase onto origin/main)
  • bun run check on the pre-rebase commit (exit 0, 8004 pass)
  • Critic clean on both commits; Greybeard agrees with the wait order

Fixes CL-8912

@linear-code

linear-code Bot commented Sep 23, 2026

Copy link
Copy Markdown

CL-8912

## Summary

An empty stall or compaction continuation with recent activity
waits instead of starting a model turn. Compact resume, idle
threshold folds, and cache-TTL folds still run before that wait,
and the silence clock is not restarted.

## Verification

- bun test ./src/subagent/nudge-director.test.ts (48 pass, exit 0)
- bun run typecheck

Fixes CL-8912
## Summary

An in-window empty stall ping whose provider cache TTL is due
returns a cache-ttl-recompress compact and a continuation. It
does not infer or restart the silence clock. The governor reads
the director clock so due-ness and the stall window share one
timeline.

## Verification

- bun test ./src/subagent/nudge-director.test.ts (49 pass, exit 0)

Refs CL-8912
@TheGreatAxios
TheGreatAxios force-pushed the cl-8912-stop-idle-subagent-stall-pings-from-starting-a-model-turn branch from 0ee25cd to 8587eb1 Compare September 24, 2026 01:44
@TheGreatAxios
TheGreatAxios merged commit 0c63e12 into main Sep 24, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-8912-stop-idle-subagent-stall-pings-from-starting-a-model-turn branch September 24, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant