Multiple approval prompts when parallel agents hit rate limit
Bug Description
When running multiple parallel agents (using Task tool with run_in_background: true) and hitting the API rate limit, the user is prompted to approve/continue multiple times - once for each agent that hit the limit.
Steps to Reproduce
- Launch 20+ parallel extraction agents using the Task tool
- Wait for them to process and hit the rate limit
- Each agent that hits the limit triggers a separate approval prompt
Expected Behavior
A single approval prompt should be shown when rate limit is hit, rather than requiring the user to approve N times for N agents.
Actual Behavior
User must click through multiple approval dialogs (one per agent that hit the limit). In my case with ~30 parallel agents, this resulted in needing to approve many times.
Environment
- Claude Code CLI
- Multiple background agents running in parallel
- Rate limit hit during parallel execution
Suggested Fix
Consolidate rate limit approval prompts when multiple agents hit the limit simultaneously, or queue the agents to resume after a single approval.
---
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗