Task tool subagents hit rate limit immediately while main session works fine
Resolved 💬 3 comments Opened Feb 19, 2026 by menaylov-ctrl Closed Feb 19, 2026
Environment
- Claude Code 2.1.41, Desktop App (macOS)
- Max subscription
- Opus 4.6 main session
Behavior
- Main session (Opus 4.6) works without issues
- Any subagent spawned via
Tasktool instantly fails withAPI Error: Rate limit reachedandtotal_tokens: 0 - Happens on ALL models: Sonnet 4.6, Haiku 4.5, Opus — doesn't matter
total_tokens: 0means the request is rejected before processing even starts- No zombie processes, no parallel sessions — clean environment, same result
Steps to reproduce
- Open Claude Code Desktop App with Opus 4.6
- Have a working conversation (main session responds fine)
- Call
Tasktool with any prompt, any model (sonnet/haiku/opus) - Instant
Rate limit reached, 0 tokens consumed
Expected
Subagents should use the same auth/rate-limit bucket as the main session.
Actual
Subagents appear to open new connections that are immediately rate-limited, while the main session's established connection continues working.
Additional context
- Previously had zombie subagent processes (from crashed TeamCreate sessions) consuming rate limit in the background. Killed all of them, verified no extra processes — issue persists.
- The main session never hits rate limit, only spawned subagents do.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗