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

Resolved 💬 11 comments Opened Apr 10, 2026 by 381sm016 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 ↗

This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗