[BUG] Agent/subagent initialization fails multiple times in all sessions until a 5-minutes API timeout fixes it
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Regardless of my prompts, all of my sessions spend >50% of their total time stuck due to failed agent/subagent initializations that only get retried after an internal API timeout of ~5 minutes is reached. I have confirmed this hypothesis as per the attached debug mode screenshots. My fiber internet connection is extremely reliable and I only face this issue on CC + Claude Max plan.
What Should Happen?
API requests made by CC shouldn’t wait more than ~15-30 seconds for a response and agent initialization should never take more time than that. The current 5 minutes timeout destroys the reliability and overall session performance of the tool.
Error Messages/Logs
Steps to Reproduce
Execute any prompts that involve a few subagents. Literally all of sessions and prompts trigger this behavior all day long.
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.29
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗