Repository navigation
fix: a delegated agent's secret request reaches the coordinator's thread - #22
Merged
OmarAlex24 merged 2 commits intoNov 11, 2026
Merged
Conversation
This was referenced Nov 11, 2026
OmarAlex24
marked this pull request as ready for review
November 11, 2026 19:37
OmarAlex24
force-pushed
the
fix/milestones-child-secret
branch
from
November 11, 2026 19:47
b0e2a93 to
957ecc4
Compare
Thread transfer impact
This comment will update automatically after the next completed run. |
The shell stream drops a subagent's turn-item events, and a secret or link card is recorded only as a turn item, so the parent's client never refetched the child's shell and never saw it wait on the user. Those cards now pass the filter, like the runtime requests that carry approvals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While a child waits on input, the parent subscribes to its detail, takes its waiting secret card and shows it above the composer next to child approvals, bound to the child's environment and thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OmarAlex24
force-pushed
the
fix/milestones-child-secret
branch
from
November 11, 2026 20:47
957ecc4 to
1813b14
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.
Problem
When a delegated agent called
request_secret, its own thread showed the card and Needs you, but the coordinator's thread never learned that it was waiting. In one live run, a child waited about five minutes for a secret nobody could see. This is the known gap in #17.The cause: the shell stream drops a subagent's turn-item events, and a secret or link card exists only as a turn item. So the parent's client never refetched the child's shell.
Fix
secret_requestandlink_requestitems now pass the shell stream filter, like the runtime requests that carry approvals. The child's shell then reports that it is waiting on you.createChildThreadSecretRequestsAtomreads that child's turn items and takes its waiting secret card. It reads nothing once no child is waiting.Notes
client-runtime, so mobile can reuse it.Test plan
ShellStream.test.ts: a subagent's secret or link card publishes its shell so its parent hears it waits on youthreadRequests.test.ts: with a saved and a pending card, only the pending one reaches the parent. Once the child stops waiting the list empties without reading the child's items again.ChildThreadApprovals.browser.test.tsxstubs the new atom. Run at the top of the stack, where feat(web): milestones become a map of plans, detours and agents #23 renames itAgentAsks.browser.test.tsx, it passes.DEMO_TOKEN. The card appeared in the coordinator's thread, and answering there unblocked the child, which finished its milestone.Built with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code