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 Task tool instantly fails with API Error: Rate limit reached and total_tokens: 0
  • Happens on ALL models: Sonnet 4.6, Haiku 4.5, Opus — doesn't matter
  • total_tokens: 0 means the request is rejected before processing even starts
  • No zombie processes, no parallel sessions — clean environment, same result

Steps to reproduce

  1. Open Claude Code Desktop App with Opus 4.6
  2. Have a working conversation (main session responds fine)
  3. Call Task tool with any prompt, any model (sonnet/haiku/opus)
  4. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗