[BUG] All bash commands are running indefinitely
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?
Whenever Claude runs a bash command (even something simple like "ls"), it hangs and never returns. After some time, it is sent into the background, which leads to a huge amount of subshells running, not one of them ever ends.
I already deleted the .claude folder in my home directory, reinstalled it, and rebooted my system multiple times. Still not working.
What Should Happen?
The bash commands should exit normally, and Claude then uses the result.
Error Messages/Logs
Steps to Reproduce
Open Claude in any git repository and ask "How many worktrees do I have?", which executes Bash(git worktree list), which never ends until cancelled via Ctrl-C.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.83
Claude Code Version
2.1.85 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
My terminal is kitty.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗