Skip to content

fix(server): Claude forked skills like /code-review show their work in the subagent thread - #43010

Closed
diegoagdiaz wants to merge 2 commits into
pingdotgg:mainfrom
diegoagdiaz:fix/claude-forked-skill-activity
Closed

diegoagdiaz wants to merge 2 commits into
pingdotgg:mainfrom
diegoagdiaz:fix/claude-forked-skill-activity

Conversation

@diegoagdiaz

@diegoagdiaz diegoagdiaz commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A Claude skill that runs with context: fork, such as /code-review, shows nothing in its subagent thread: "Thinking" while it runs, then just "/code-review". The fork's frames name forked-command-<skill> as their parent, no subagent is registered under that id, so they are dropped. Claude Code also sends them only after the fork ends, so even routed they would not show any progress.

Change

  • Route the fork's frames (first commit). A fork's task_started has no tool_use_id, so the adapter registers its subagent under forked-command-<skill>, and the frames go through the existing subagent pipeline. A task_notification summary that only repeats the command name is no longer shown as the fork's result.
  • Show progress while the fork runs (second commit). The SDK sends nothing between task_started and task_notification, but writes the fork's transcript as it works. While a fork runs, the adapter reads it once a second with getSubagentMessages, the same SDK call it already uses for these forks' model, and passes new entries through the same pipeline under the same lock as live frames. Claude re-sends those frames when the fork ends; they are dropped by uuid. Polling stops when the fork ends or is stopped, at the turn's result, or if a read fails, in which case the end-of-fork frames still arrive. A fork has no tool call, so steering no longer tries to move it to the background.
  • Only Claude has forked skills. Codex, Antigravity and the ACP providers launch subagents through a tool call and already stream them.

Scope

Fixes the bug in #43001.

Closes #43001

Verification

  • Adapter tests: a fork's frames land in its child thread and the command name is not its result; transcript entries show in the child thread before task_notification, and the re-sent frames do not duplicate them (fails without the uuid dedup).
  • Manual, web dev build with Claude Haiku 5.5 in a small demo repo: /code-review low on main shows "Thinking" while the fork runs, then only "/code-review". With this change, its thinking, commands and messages appear while it runs, with no duplicates after it ends. Also ran /code-review high (about 2m40s) with the same result.
  • Steering while a fork runs: the fork is not moved to the background (it has no tool call to move), it finishes normally, and the steer is answered after it.
  • Stopping mid-fork: Claude sends no notification or end-of-fork frames, the fork shows as stopped, and polling ends right away instead of at the next turn's result.
  • Not checked: desktop and mobile. The change is server-only; clients already render subagent threads.

Before:

code-review-subagent.mp4

After:

code-review-subagent-fix.mp4

Made with Claude Opus 5.5 in Claude Code, running in T3 Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 25, 2026
diegoagdiaz and others added 2 commits November 25, 2026 13:08
… thread

A `context: fork` skill such as /code-review starts with no tool call, so
its subagent was registered without a tool id and the fork's frames, which
name `forked-command-<skill>`, were never routed to it. Register the fork
under that id, and don't show a summary that only repeats the command name
as its result.

Refs pingdotgg#43001

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code sends a forked skill's frames only after the fork ends, so its
subagent thread showed nothing for the whole run. While the fork runs, read
its transcript with getSubagentMessages once a second and pass new entries
through the subagent pipeline. Claude re-sends them when the fork ends;
those are dropped by uuid.

Refs pingdotgg#43001

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@diegoagdiaz
diegoagdiaz force-pushed the fix/claude-forked-skill-activity branch from af2f971 to 914ad3e Compare November 25, 2026 19:16
@diegoagdiaz
diegoagdiaz marked this pull request as ready for review November 25, 2026 19:29
@juliusmarminge

Copy link
Copy Markdown
Member

Thanks for this. #43023 makes the same change and is the one being kept.

#43023 fixes the same missing forked-skill activity and also waits for the delayed frames before completing the subagent. It saves the fork's final reply as its result, whereas this change only suppresses the command-name summary.

Your routing diagnosis and live-progress fix address a real bug. Keeping the more complete fix together avoids maintaining two implementations of the same behavior.

Closing as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Claude forked skills like /code-review show no activity in their subagent thread

2 participants