[BUG] bash commands timeout on linux
Resolved 💬 6 comments Opened Jan 27, 2026 by jcrawford888 Closed Feb 28, 2026
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?
When trying to run claude code and it tries to interact with the system with basic shell commands such as ls, echo etc they timeout after about 30 seconds. In a normal terminal (kitty) the commands run instantly.
I did some work with claude to try to diagnose the problem and had it search the code base for the bug based on the diagnosis of my system. See attached files. Hopefully this helps to fix this issue.
What Should Happen?
claude should run shell commands instantly
Error Messages/Logs
Steps to Reproduce
in terminal (kitty) using bash
run 'claude'
ask claude to run a shell command such as echo.
It will just hang.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.20 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗