Repository navigation
Show a sub agent as a card with its run inside - #190
Merged
Merged
Conversation
A sub agent that an agent started was invisible: the Claude adapter sent its tool calls as flat rows of the thread, Codex sent only start and end rows, and opencode sent nothing. The adapters now report a sub agent as a session of its own, and the thread shows it as a closed card at the point where the agent started it. The card names the sub agent, shows a spinner while it runs, and holds the text, the tool calls and the nested sub agents of its run. A permission request of a sub agent renders inside the card. The gateway declares the native sub agent sessions of the AIR contract, records the thread of each sub agent session and routes its updates and permission requests to that thread. The child session notifications of opencode are translated into the same form. The dashboard did not show the output of a Codex command, because the adapter sends it in output chunks beside the content. The gateway declares that chunk channel, and the card of a command shows the chunks. The harnesses move to the versions that report sub agents: claude-agent-acp 0.108, codex-acp 2.7 with Codex 0.169, and opencode 2.3.0 from the @opencode/cli package. Codex 0.169 ignores commit_attribution and warns about it, so the box config drops the setting. opencode 2 reads no OPENCODE_DISABLE_LSP_DOWNLOAD and installs no plugin package at its start, so the harness and the home seed drop both. The ACP SDK of the orchestrator and assistant-ui follow.
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.
A sub agent that an agent started was invisible in the thread. The adapters now report a sub agent as a session of its own, and the thread shows it as a closed card at the point where the agent started it. The card names the sub agent, shows a spinner while it runs, and holds the text, the tool calls and the nested sub agents of its run. A permission request of a sub agent renders inside the card and opens it.
Changes:
opencode/session/child_updateis translated into the same form as the Claude and Codex adapters send.terminal_output_delta, and the card of a Codex command shows its output chunks. The dashboard showed[terminal <id>]before.@opencode/cli). Codex 0.169 ignorescommit_attribution, so the box config drops it. opencode 2 reads noOPENCODE_DISABLE_LSP_DOWNLOADand installs no plugin package at its start, so the harness and the home seed drop both.@agentclientprotocol/sdk2.7.0,@assistant-ui/react0.15.36,@assistant-ui/react-markdown0.14.26.Not in this change: cancel of a running sub agent. The nested messages keep their action bar.
The e2e test
a sub agent is a closed card that shows its run when openedwrites a screenshot of the card todashboard/e2e/screenshots/thread-subagent.png.