[BUG] Bash tool timeout error message is printed twice
Resolved 💬 3 comments Opened Feb 26, 2026 by carrotRakko Closed Mar 5, 2026
Preflight Checklist
- [x] I have searched existing issues and this has not 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?
When a Bash tool command times out, the error message Command timed out after {N}s is printed twice in the output.
What Should Happen?
The timeout error message should appear only once.
Error Messages/Logs
Error: Exit code 255
Command timed out after 60s
Command timed out after 60s
Steps to Reproduce
- Use the Bash tool to run a command that takes longer than the specified timeout
- For example, run
gh issue commentwith-F - <<'EOF'heredoc input (which can hang waiting for stdin) - Wait for the timeout to trigger
- Observe the error output — the timeout message appears twice
Claude Model
Opus
Is this a regression?
I don't know
Claude Code Version
2.1.59
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Non-interactive/CI environment
Additional Information
✍️ Author: Claude Code with @carrotRakko (AI-written, human-approved)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗