[BUG] Claude Code CLI freezes
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?
While working with Claud Code (from VSCode using the official extension, on Ubuntu 25), occasionally I get an issue where the terminal freezes. Before that happens, it often "looks" like there is quite a lot of code / messages being shown in the terminal, and when the freeze happens, I only get to see older text, but not the most recent things Claude was doing. If I kill the terminal and start claude again with claude --continue, I do see (part of) what claude was doing. I also verified that when this happens, it is not just a display issue, Claude stops doing work also, and the terminal becomes unresponsive (no way to ctrl + c, ctrl + z, etc)
Before switching to Ubuntu I was working on Windows (also VSCode + Claude Code extension) and had the same issues.
What Should Happen?
The Claude Code terminal keeps working as intended, without freezing or becoming unresponsive.
Error Messages/Logs
No error messages shown
Steps to Reproduce
I am unable to reproduce it, but I have the issue daily (I am not working with Claude the full day, just a few hours a day)
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.47
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
16 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I have checked the 3 issues that are potential duplicates and they are not exactly the same. I get the issues with or without --continue, in my case I can use --continue after the crash, it is just that my current terminal session with claude freezes and becomes unresponsive, and the only option is to kill the terminal and open a new one
Ditto I have intermittent freezes, mostly I notice them SSH'ing in from Windows Terminal to ubuntu VM, but I noticed these on my local as well. I have recovered mine on occasion, though I'm not sure how to replicate each time, but usually it involves repeated typing and maybe the esc key.
I have upgraded the cli today, and I also have this.
I run claude on a server via ssh, ubuntu.
connect via ssh to it.
This is happening on MacOS as well.
v2.0.55
I use the terminal that comes with vscode and it freezes for over 10 seconds before I can enter a command, but when I use the windows terminal to run claude, I can enter the command immediately. It's really strange
Use the '--continue' flag to resume the previous conversation.
Have you read the text I wrote?
Additional reproduction case: SSH commands to remote cluster
Environment:
Reproduction scenario:
Running multiple SSH commands to a remote HPC cluster caused complete freeze:
Symptoms:
Notes:
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I have been seeing this issue very frequently.
+1, i have been facing this issue very frequently now
+1, also happening quite often
We are getting this issue also unless we turn off telemetry
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.