Repository navigation
Keep a Codex subagent's step lines out of the main conversation - #128
Merged
Merged
Conversation
While a Codex or OpenCode subagent ran, the mod wrote one line per startup, thought, reply and tool step with $.ui.log. Claude Code saves those as system messages in the parent transcript, so they piled up in the person's own conversation. The subagent's own view already streams the same activity, and issue #110 meant only the report to reach the main conversation. The mod no longer calls $.ui.log for custom subagents. The two inbox tests that waited on those lines now wait on the helper's own stream.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
While a Codex or OpenCode subagent ran, a status line for every startup, thought, reply and tool step landed in the main conversation. The mod wrote them with
$.ui.log, which Claude Code saves as system messages in the parent transcript. #126 added them and listed the noise as a risk.Fix
The mod no longer calls
$.ui.logfor custom subagents. The subagent's own view in the tasks list still streams its replies, reasoning, plan and tool steps and command output, and Claude still gets only the report, as #110 describes. The README line about those status lines now says that the main conversation stays as it is until the report arrives.The two inbox tests that waited on a
ui.logline now wait on the helper's stream instead. The helper generator resumes only after the mod has handled the chunk before it.Proof
claude plugin test modon the oldregister.jsfailsactivity streams in the subagent and leaves the main conversation alone: it expected noui.loglines and gotCodex (a1) · Starting Codex adapter…,Codex (a1) · Session ready.and the rest.Risk
Refs #110