Conversation
Pair with the phoenix-pro Agent icon mapping. Keep Task in the list for backwards compatibility with older sessions / SDKs.
The Claude Code SDK delivers the parent agent's tool calls as a stream of stream_event messages (content_block_start / delta / stop), but the new Agent subagent dispatcher's internal tool calls arrive batched on a single assistant message with parent_tool_use_id set — there is no streaming path. The existing stream_event subagent branch was dead code under the new dispatcher, so the user saw the parent Agent card finish immediately and then nothing until the subagent returned. Extract tool_use blocks from subagent assistant messages and emit aiProgress + aiToolInfo back-to-back per block, registering each tool_use id in _toolUseIdToCounter so the existing tool_result handler can route the response back to the right indicator card. The cards appear once each subagent tool completes (no streaming preview — the SDK never gave us one), but they appear instead of being invisible.
…ed rows Pairs with the phoenix-pro inline-subagent-steps renderer. The backend now looks up the dispatching Agent's toolCounter from _toolUseIdToCounter[message.parent_tool_use_id] and includes it on both aiProgress and aiToolInfo events so the browser knows where to render each step. Styling adds .ai-subagent-steps (left border + indent for the nested block) and .ai-subagent-step / -icon / -label (compact one-line rows with the secondary text size and ellipsis truncation).
|
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.



No description provided.