Repository navigation
fix(feed): fleet-row eligibility for MCP orchestration spawns (P2c) - #461
Merged
Juliusolsson05 merged 1 commit intoJul 7, 2026
Merged
Conversation
The 2026-06-21 "Sub agents UI is fucking horrible" bundle's root cause: the session spawned via the built-in MCP orchestration server (mcp__agent_code__orchestration_create_agent), which never matched the Task interception's 'Agent'|'spawn_agent' check - ZERO cards painted while state-snapshot.subAgents tracked 73 children. One shared predicate (lib/agentSpawnTools.isAgentSpawnToolName) now covers all three spawn families - Agent (claude), spawn_agent (codex), [mcp__<server>__]orchestration_create_agent (MCP, both namings) - and is consumed by BOTH the Block.tsx fleet interception and ConversationRow's isAgentBlock (the SubagentGroupHeader adjacency grouping), so the name list can never drift between the two again. Fleet QUERIES (wait/list/read) deliberately excluded - they are JSON rows, not spawns. Unit tests for the predicate; both gates clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Residue plan P2c — the 06-21 bundle's dispatch-name blind spot: MCP-orchestrated sessions (
mcp__agent_code__orchestration_create_agent) painted zero Task cards despite 73 tracked subAgents. One sharedisAgentSpawnToolNamepredicate now covers Agent / spawn_agent / orchestration_create_agent (bare + mcp-prefixed), consumed by both the Block.tsx interception and ConversationRow's group header, so the planes can't drift. Fleet queries (wait/list/read) deliberately excluded — they render as JSON rows (P1). Tests + clean gates.🤖 Generated with Claude Code