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
- Tweaked orchestration skill turns agents into self-policing workflow — pvncher · 2026-07-27
- A practical map of 11 protocols in the modern AI agent stack — TheTuringPost · 2026-07-27
- Qwen Code nightly adds Goal v3 orchestration and workspace channel controls — qwen-code-ci-bot · 2026-07-27
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27