Repository navigation
Coordinator settle tool, agent turn rule, continuation result delivery - #44
Merged
Merged
Conversation
- cp_agent_settle (coordinator only): settles an idle agent the caller manages with the same thread.settle command the UI sends; optional archive. Busy agents, standing agents and other callers get clear errors. - Coordinator prompt: settle agents once their work is complete and merged, or when they are one-off and have reported. - Agent prompt: never end a turn just to wait for a command, test run or sub-agent. Standing agents keep ending their turn after cp_agent_create. - Agent browser rule: load the preview_* tools and call preview_status or preview_open before concluding the built-in browser is unavailable. - AgentCompletionReactor: a request whose own turn ended with no reply and was answered by a later turn no message started (a resume or wake-up) now delivers that reply once, as cp-push:<agent>:cp-turn:<turnId>. Before, the coordinator got "finished (no final message)" and the real report was never pushed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Sep 29, 2026
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
agent, optionalarchive): settles an idle agent with the samethread.settlecommand the UI sends. Busy agent, standing agent, or non-coordinator caller gets a clear error.cp_agent_createexception, since their agents report as messages.preview_*tools and callpreview_status/preview_openbefore concluding the built-in browser is unavailable.AgentCompletionReactor): a request whose own turn ended with no reply and was answered by a later turn no message started (SDK resume or wake-up) now delivers that reply once, ascp-push:<agent>:cp-turn:<turnId>. Before, the coordinator got "finished (no final message)" and the real report was never pushed, because that turn has no request row (pending_message_idNULL).Test plan
assistantRuntime.test.ts: settle rule, turn rule (and standing exception), preview rule🤖 Generated with Claude Code