[BUG] Claude Code hanging on on thinking for prolonged periods of time with no response after thinking

Status Closed — not planned
Maintainer reply None cached
Activity 11 comments · opened Apr 10, 2026 · closed Jul 2, 2026

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?

Claude Code randomly hangs at thinking or other token outputs

<img width="916" height="47" alt="Image" src="https://github.com/user-attachments/assets/73267570-1aea-4db5-9df8-3ed9c66cc829" />

<img width="1558" height="350" alt="Image" src="https://github.com/user-attachments/assets/5289d34d-db8b-44d8-9762-e17c970932a6" />

What Should Happen?

Claude should continue generating tokens

Error Messages/Logs

n/a

Steps to Reproduce

  1. Prompt something to CC
  2. It might freeze during thinking.

Claude Model

All

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.97

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

This is also the same on WSL and Debian, it seems to hang especially at 3.4K tokens most of the time.

<img width="286" height="35" alt="Image" src="https://github.com/user-attachments/assets/86475d29-d06a-4d79-931d-8c99533caf64" />

View original on GitHub ↗

11 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/26224
  2. https://github.com/anthropics/claude-code/issues/23688
  3. https://github.com/anthropics/claude-code/issues/37422

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

381sm016 · 4 months ago

Hi, this bug is still persistent for me, even in the new updates.

<img width="1130" height="90" alt="Image" src="https://github.com/user-attachments/assets/1d72b832-ab70-4d0f-9d33-bc354faac56c" />

381sm016 · 4 months ago

Below is another example to push this issue again, also to indicate that this issue still persists on v2.1.117

It got to 22k tokens within a minute or two, then it hung there.

<img width="1114" height="87" alt="Image" src="https://github.com/user-attachments/assets/30e02ba4-63cb-4165-84e4-0decb692fc68" />

381sm016 · 4 months ago

Bumping again, executing a plan. It shot up to 14k tokens quickly and then froze there again. Right now it is on medium effort.

<img width="1091" height="73" alt="Image" src="https://github.com/user-attachments/assets/c690cc4e-d70b-4592-b98f-2ca73b267837" />

nullbio · 4 months ago

Why on Earth did I resubscribe to Claude Code. Sigh. Whenever I sign up again, it's just a constant shitshow of debugging issues like this.

381sm016 · 3 months ago
Why on Earth did I resubscribe to Claude Code. Sigh. Whenever I sign up again, it's just a constant shitshow of debugging issues like this.

I need it for work, otherwise I'd be gone too.

381sm016 · 3 months ago

Bump. Still on this issue, it hung at 23,4k tokens during thinking for 5 hours and 23 minutes now.

apadol-betclic · 3 months ago

Got the same thing just now, hung at around 20k tokens for almost 8 minutes straight ...

381sm016 · 3 months ago

Bump against closure

nullbio · 3 months ago
Bump against closure

Anthropic does not care, and never will.

github-actions[bot] · 1 month ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.