Claude Code nested subagents can stall forever when replies are routed to a role name
Jordan-Britt · ghdev · 2026-07-16
Claude Code nested subagents can stall forever when replies route to the wrong parent
A bug report against anthropics/claude-code says a grandchild background agent can complete its work but fail to deliver its result to the direct parent. The nested agents send SendMessage(to="general-purpose", ...), but general-purpose is only a role label, not a routable agent ID.
What happens
- A background agent spawns nested reviewer agents.
- The nested agents finish and try to reply upward.
- The message routing layer cannot resolve the parent by role name, so replies fall back to the top-level main session.
- The direct parent never receives the results it is waiting for and stalls indefinitely.
Environment
- Claude Code CLI with the Agent tool
- isolation: "worktree"
- Reproduced from a multi-level self-review workflow
More from coding & agent
- Cheaper OpenAI Agents API alternative: sandbox service undercutting E2B by 46% — airesearch12 · 2026-09-11
- His agent kill switch ran for months before he found it was wired to nothing — AnvilandCode · 2026-09-11
- Kernel's Browser Agents Can Now Pay Online Using Aliases, Never Touching Card Data — jeff_weinstein · 2026-09-11
- OpenAI opens up agent sandboxes: BYO or pick from Cloudflare, E2B, Modal, Vercel and more — threepointone · 2026-09-11
- SocialCrawl MCP lets agents search Reddit, YouTube, TikTok, X with one API key — dooddyman · 2026-09-11
- Astra builds a surprisingly polished Catan game in three.js, reusing past UI and 3D assets — FinanceYF5 · 2026-09-11