Skip to content

Keep a Codex subagent's step lines out of the main conversation - #128

Merged
m4rocks merged 1 commit into
mainfrom
codex-subagent-quiet-main
Nov 18, 2026
Merged

m4rocks merged 1 commit into
mainfrom
codex-subagent-quiet-main

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 18, 2026

Copy link
Copy Markdown
Owner

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.log for 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.log line 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 mod on the old register.js fails activity streams in the subagent and leaves the main conversation alone: it expected no ui.log lines and got Codex (a1) · Starting Codex adapter…, Codex (a1) · Session ready. and the rest.
  • With the fix: 26 pass, 0 fail.
  • No Rust changes.

Risk

  • During the first Codex run, the main conversation no longer says that npm may be downloading the adapter. The README still says the first run takes longer, and the subagent's own view shows its first line straight away.
  • To undo, revert this commit.

Refs #110

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.
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 18, 2026 5:21pm UTC

@m4rocks
m4rocks merged commit 5211ca1 into main Nov 18, 2026
7 of 8 checks passed
@m4rocks
m4rocks deleted the codex-subagent-quiet-main branch November 24, 2026 22:38

This branch was successfully deployed

1 active deployment
Preview — f1f22d58 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant