Shell hangs

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
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

!Image

View original on GitHub ↗

15 Comments

jparklev · 1 year ago

+1 i've seen this as well

gerrywastaken · 1 year ago

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.

bcherny collaborator · 1 year ago

Thanks for the report! Fix incoming (cc @wolffiex)

wolffiex collaborator · 1 year ago

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.

gerrywastaken · 1 year ago
Just checking but do you also run Fish shell?

@wolffiex I am using Fish shell. Perhaps that is something to add to the automatic metadata? echo $SHELL

I'm super happy to hear about the incoming fix

wolffiex collaborator · 1 year ago

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.

thiblahute · 1 year ago

Running fish, I have the same issue, we can work around it with: $ SHELL=bash claude

gerrywastaken · 1 year ago

Ok 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

wolffiex collaborator · 1 year ago

I'll land fish support in tomorrow's release.

lswank · 1 year ago

I get Command execution timed out for almost every command as well, running claude from within zsh, the default shell in macOS. Claude Code says it's running Bash. This is not just happening with a nonstandard shell.

wolffiex collaborator · 1 year ago

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.

bcherny collaborator · 1 year ago

Closing this out -- it should be feeling better in v0.2.18. Please open a new issue if you're still hitting this!

gerrywastaken · 1 year ago

Thank you folks 💓

wolffiex collaborator · 1 year ago

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

github-actions[bot] · 1 year ago

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.