[BUG] Tool Calls immediately fail, misreporting as timeouts
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?
Sometimes when Claude makes tool calls for long running bash commands with a timeout, the call is reporting back to Claude as a timeout
What Should Happen?
I don't expect a 5 minute timeout to be triggered in .5 seconds
Happens sometimes when there is an underlying error in the call and other times that's not the case
Error Messages/Logs
: Command timed out after 5m 0s
Steps to Reproduce
Not consistently reproducible unfortunately but I tend to see it on projects with an a compile step
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.14
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
Claude Code is almost unusable on compiled projects with long running tasks due to this bug
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/3505
- https://github.com/anthropics/claude-code/issues/5451
- https://github.com/anthropics/claude-code/issues/9195
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Still an issue