[BUG] Hanging / Freezing in the middle of work - CPU sample attached

Open 💬 37 comments Opened Jun 4, 2025 by guidedways
💡 Likely answer: A maintainer (ashwin-ant, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • Claude CLI version: claude 1.0.10, node version v23.11.0
  • Operating System: macOS 15.5
  • Terminal: iTerm2
  • Feedback ID: a80a33ea-5a52-4894-90d0-e36f4aca41fc

Bug Description

Claude code has started hanging and freezing in the middle of its work. It remains hung indefinitely. The only way to get out of this hang is to quit and relaunch the terminal but then the work is lost. Started happening after 1.0.9 I believe.

Steps to Reproduce

  1. Any prompt
  2. Starts working normally
  3. After a few steps it hangs on whatever it's doing - no animation, cannot type anything, cannot hit escape - nothing.

I can see in Activity Monitor node is hung, here's a CPU sample attached.

sample.txt

View original on GitHub ↗

37 Comments

guidedways · 1 year ago

Another CPU sample, freezing constantly.

sample2.txt

sepsi77 · 1 year ago

Happens to me also constantly since 1.0.10, though it does "unfreeze" itself after quite a long wait.

guidedways · 1 year ago

True, I let it run this time for 15 minutes and it came back to life, only to hang again. I can see the CPU spike in Activity Monitor too.

I've just upgraded node to v24, killed all instances of node in the background, relaunched claude and so far so good.

guidedways · 1 year ago

Spoke too soon :( 100% cpu usage again after a minute of work.

sepsi77 · 1 year ago

I'm using Claude Code inside of Cursor / VS Code and it seems to be a bit more reliable. I rarely get long freezes - it does freeze for maybe 30 seconds but always comes back to life. Node CPU usage does spike occasionally but not to very high levels.

tosh · 1 year ago

also seeing this on apple silicon macbook w/ claude code 1.0.10 in amd64 (rosetta) devcontainer with node 24.1

i think the issue is not present in earlier versions (e.g. 1.0.6?)

ashwin-ant collaborator · 1 year ago

Hey all, by any chance are you using any MCP servers? And can you share if they're using STDIO or SSE?

tosh · 1 year ago

@ashwin-ant only playwright-mcp, but haven't actively used the mcp in the session before or during the hang/freeze

arickuter · 1 year ago

Seeing the same on Ubuntu 22.04, after the latest claude code update.

nickolay-kondratyev · 1 year ago

@rboyce-ant https://github.com/anthropics/claude-code/issues/1601 has different symptoms than this issue. In https://github.com/anthropics/claude-code/issues/1601 claude code crashes right away without freezing or hanging.

Does claude code have log files to look at, to get more information why it crashes?

atkinsonben · 1 year ago

Same issues for me today on Ubuntu. Freezing quite a bit, hanging for upto 15 minutes at a time. no MCP servers in use.

tosh · 1 year ago

hanging still present in 1.0.11

1.0.7 does not hang for me:

npm install -g @anthropic-ai/claude-code@1.0.7

and disable auto update

claude config set -g autoUpdaterStatus disabled
rboyce-ant contributor · 1 year ago

Hi all, please try updating to v1.0.15, as we believe this issue should be mitigated in the latest release

tosh · 1 year ago

@rboyce-ant I think it is no longer happening in 1.0.16

what was it?

arickuter · 1 year ago

Yes seems much better. Still get the timer hanging a bit now and then. But far better. No long or huge freezes.

tosh · 1 year ago

I just experienced the hang again in 1.0.16

tosh · 1 year ago

Still happening in 1.0.17 and 1.0.18, also switched to a completely different devcontainer with ubuntu 25.04 with zsh instead of bash but same problem:

A few minutes into a session the ui hangs/freezes indefinitely and does not recover, sometimes during typing, sometimes while Claude Code is working on something.

When this happens even repeatedly using control-c or control-d is not stopping the process.

1.0.7 works without hanging.

tosh · 1 year ago

I'm not sure why and/or when exactly but 1.0.20+ (I think) work fine now!

no hanging

chemeris · 1 year ago

Claude Code hangs for several seconds (sometimes tens of seconds) with 100% CPU usage very frequently in my case, almost after every tool execution. I'm on Ubuntu 22.04 and Claude Code 1.0.35 (it's been an issue for quite a few releases already, I just finally got frustrated enough to report now).

roryeckel · 1 year ago

This could be related for users of WSL and Docker Desktop - https://github.com/anthropics/claude-code/issues/619

Even after trying their suggested fixes I can't get claude code to work anymore. I've removed the .claude folders...

Edit: Looks like there was a bad update 7/8/25. Installing Claude Code with npm again is working.

richfergus · 11 months ago

When I paste anything into the Claude session, it hangs.

guidedways · 11 months ago

Yes started again in 1.0.83. I've since downgraded do 1.0.71

MorningLightMountain713 · 10 months ago
Yes started again in 1.0.83. I've since downgraded do 1.0.71

Thank you. I'm on 1.0.88 - started hanging for me yesterday (and today) downgraded to 1.0.71 and things are working again

SaltOfTheFlame · 10 months ago

I'm on 1.0.108, still hangs

s00500 · 10 months ago

also experiencing lots of hanging today on 1.0.117

s00500 · 10 months ago

Nevermind, was not a claude code issue

mickg10 · 9 months ago

Out of curiosity, what was it?

mickg10 · 9 months ago

BTW - same thing on MacOS 26.

s00500 · 9 months ago
Out of curiosity, what was it?

bash process that could not be killed due to a driver issue on a serialport...

yapishu · 9 months ago

Had a similar issue where it was interacting with a serial device that had to be unplugged to resume it

40960 · 9 months ago

Had a similar issue on:
Win11 25H2 26200.6584
Node.js v22.18.0
2.0.15 (Claude Code)

SR6560 · 8 months ago

lately by me it keep freezing, CPU not high

teeay-dev · 8 months ago

Very frequent, claude CLI practically not usable anymore on macOS 26.1. Codex, Gemini both happily work.

amosjyng · 7 months ago

I'm seeing this too now in the latest version 2.0.61

github-actions[bot] · 6 months ago

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.

alexlloyd-apollo · 6 months ago
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.

This issue is still occurring in v2.1.6

Krakazybik · 5 months ago

same issue on big files grep