[BUG] Long pause then "interrupted by user" for grep and git commands
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x ] Other: Claude code
- Claude CLI version: 0.2.56
- Operating System: macOS 14.6.1
- Terminal: iTerm2
Bug Description
Claude will get stuck on some Bash() actions, git and grep in particular seem to give it problems. Stuck means it will hang without generating any output for at least 100s, then eventually stop with "Interrupted by user" (even though I haven't done anything).
I don't know how to reliably reproduce, it doesn't seem to happen right after a restart or compact, but it happens with at least 35% context remaining. I would estimate it's happened in 7 out of the last 10 sessions. Seems to be increasing in frequency over the past few days. I've taken to just copying the commands I know will freeze it and executing them in another shell, then pasting the results back into the Claude chat context, which is obviously not ideal but it's becoming that common.
⏺ Bash(cd /Users/andrewreece/ai-coach-leaderboard && grep -n -A 10 "async def simulate_user" user-simulator/simulate_user.py)…
⎿ Interrupted by userThis issue has 5 comments on GitHub. Read the full discussion on GitHub ↗