Repository navigation
fix(server): Claude forked skills like /code-review show their work in the subagent thread - #43010
Closed
diegoagdiaz wants to merge 2 commits into
Closed
diegoagdiaz wants to merge 2 commits into
diegoagdiaz wants to merge 2 commits into
Conversation
… 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
force-pushed
the
fix/claude-forked-skill-activity
branch
from
November 25, 2026 19:16
af2f971 to
914ad3e
Compare
diegoagdiaz
marked this pull request as ready for review
November 25, 2026 19:29
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. |
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.
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 nameforked-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
task_startedhas notool_use_id, so the adapter registers its subagent underforked-command-<skill>, and the frames go through the existing subagent pipeline. Atask_notificationsummary that only repeats the command name is no longer shown as the fork's result.task_startedandtask_notification, but writes the fork's transcript as it works. While a fork runs, the adapter reads it once a second withgetSubagentMessages, 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'sresult, 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.Scope
Fixes the bug in #43001.
Closes #43001
Verification
task_notification, and the re-sent frames do not duplicate them (fails without the uuid dedup)./code-review lowon 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.result.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