Refuse list_agents after a parked director question is surfaced - #918
Merged
TheGreatAxios merged 1 commit intoSep 11, 2026
Merged
TheGreatAxios merged 1 commit into
TheGreatAxios merged 1 commit into
Conversation
TheGreatAxios
commented
Sep 11, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Critic · Comment
After a parked ask_director is surfaced, list_agents fails closed until send_input or the ask is dropped.
Findings
No blocking findings.
src/subagent/agent-fleet.test.ts— close_agent and cancel are named clear-paths in CL-7757 but have no list_agents contract. interrupt_agent and send_input are covered; both close and cancel already drop the pending ask viasettleCancelsAsks, so the gate should reopen, but that is inferred not tested.
Notes
- Runtime gate lives in
createListAgentsTool, not prompt-only. Error namessend_input, the worker session id,question_id, and the question text. - First list surfaces once; identical snapshot errors; a new
question_idis listable once. Yield wait does not stamp; TUI wake aftersendInternalTextdoes. wait_agentsstays mounted. Occupancy latch / mailbox-mail-drive / fleet-dry-drive /settleRunToIdleare untouched.list_agentsremains outside doom-loop poll exemption.
TheGreatAxios
force-pushed
the
cl-7757-answer-parked-ask_director-before-polling-list_agents
branch
from
September 11, 2026 22:27
5fe8d04 to
af1eaf8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ask_directoris surfaced (TUI idle-send wake, nestedwait_agentswith a question payload, or a successfullist_agents), furtherlist_agentscalls fail closed untilsend_inputanswers or the ask is dropped.question_idis listable once.wait_agentsstays mounted. Occupancy latch is unchanged.Verification
bun run typecheck,bun run build, andbun run testpass--randomize --seed 424242(170 pass)bun run check(lint, typecheck, build, guarded suite: 6893 pass)Fixes CL-7757