Shell hangs
Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Workaround ✓ Mentioned in thread ↓
Activity 15 comments · opened Feb 26, 2025 · closed Feb 26, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
The command ls -la timed out after 120 seconds. "Bash(ls -la)... Command execution timed out. Exit code 143"
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 0.2.14
- Feedback ID: 87faf382-8248-4f99-ad4a-c920743f5be8
15 Comments
+1 i've seen this as well
It looks like it is happening with any command:
!Image
To work around the issue I just ask Claude to stop running commands and instead ask me to do it.
@jparklev just checking but do you also run Fish shell? Also what OS? Is there anything special about your environment? It will help them debug this issue.
Thanks for the report! Fix incoming (cc @wolffiex)
Can you confirm that you are using bash or zsh? We are adding logging for this case, but it seems like there are multiple causes.
@wolffiex I am using Fish shell. Perhaps that is something to add to the automatic metadata?
echo $SHELLI'm super happy to hear about the incoming fix
We don't currently support Fish. Can you switch to zsh or bash and let me know if it works? I can put in some rudimentary fish support for the next release.
Running fish, I have the same issue, we can work around it with:
$ SHELL=bash claudeOk thanks folks, that should help :D
Side note, I actually prefer running the commands myself for both safety and efficiency reasons, so maybe that could be an option.
Thank you :)
p.s. Fish shell is amazing. Y'all don't know what you are missing. ;P
I'll land fish support in tomorrow's release.
I get
Command execution timed outfor almost every command as well, runningclaudefrom withinzsh, the default shell in macOS. Claude Code says it's running Bash. This is not just happening with a nonstandard shell.Fair enough, there are multiple causes of this issue. I landed a fix for fish shell in v0.2.18 and additional logging so hopefully we can narrow down what causes these shells in other cases.
If you are running an supported shell—anything other than bash, zsh, or fish—your results may vary.
Closing this out -- it should be feeling better in v0.2.18. Please open a new issue if you're still hitting this!
Thank you folks 💓
We are still far from fixing all the issues here. We will continue to add logging until we get to the bottom of it. Feel free to follow this issue for updates https://github.com/anthropics/claude-code/issues/35
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.