[Bug] Claude Code freezes with token consumption but no task progress

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Nov 24, 2025 · closed Dec 1, 2025

Bug Description
It keeps freezing up. The seconds and minutes pass by, the tokens get eaten up in hundreds and thousands, but the task doesn't progress!

Environment Info

  • Platform: darwin
  • Terminal: pycharm
  • Version: 2.0.50
  • Feedback ID: 36330d23-e237-4953-b4d0-0fa1437cd50c

Errors

[{"error":"MaxFileReadTokenExceededError: File content (26701 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at d02 (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1509:41089)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1518:963)\n    at async pb5 (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2204:26123)","timestamp":"2025-11-23T17:17:28.867Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"},\"request_id\":\"req_011CVRncho9jg8HcWjw3xXN3\"}\n    at H9.generate (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:397:36468)\n    at WT.makeStatusError (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1309:2195)\n    at WT.makeRequest (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1309:5419)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async j41.model (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3838:14446)\n    at async j41 (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2081:1872)\n    at async oW9 (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3838:14598)\n    at async file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3838:7946\n    at async us1 (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1468:1971)\n    at async VIA (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3838:7916)","timestamp":"2025-11-24T00:43:15.970Z"},{"error":"Error: Request was aborted.\n    at wo._createMessage (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:401:3151)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-11-24T00:59:05.279Z"},{"error":"Error: Request was aborted.\n    at wo._createMessage (file:///Users/vvobbilichetty/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:401:3151)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-11-24T01:05:26.428Z"}]

View original on GitHub ↗

4 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/10784
  2. https://github.com/anthropics/claude-code/issues/8658
  3. https://github.com/anthropics/claude-code/issues/12184

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

dmm-l-mediehus · 10 months ago

2.0.50 is very buggy, causing lag and it seems to edit entire file instead of targeted edits. Multiple bugs were reported on this.

So the workaround is to rollback to 2.0.49

Steps:

  1. Windows Search for: Edit the System Environment variables -> Environment Variables -> New system variable -> name: DISABLE_AUTOUPDATER value: 1.
  1. npm install -g @anthropic-ai/claude-code@2.0.49

<img width="327" height="109" alt="Image" src="https://github.com/user-attachments/assets/20434566-4a9f-457d-86a2-ae6c5c3553be" />

vinayvobbili · 10 months ago

I think I know why it hung in my case. I asked it to replace a src=“logo.png” with its base64 encoding. Since the resultant string is extremely long, it filled up the context. Cluade eventually completed the task, but it took usually long and large number of tokens to do it. I thought I will provide you with the context. Thanks for your reply!

From: dmm-l-mediehus @.*>
Date: Monday, November 24, 2025 at 6:31 AM
To: anthropics/claude-code
@.*>
Cc: Vinay Vobbilichetty @.>, Author @.>
Subject: Re: [anthropics/claude-code] [Bug] Claude Code freezes with token consumption but no task progress (Issue #12226)

[https://avatars.githubusercontent.com/u/125255354?s=20&v=4]dmm-l-mediehus left a comment (anthropics/claude-code#12226)<https://github.com/anthropics/claude-code/issues/12226#issuecomment-3570320176>

2.0.50 is very buggy, causing lag and it seems to edit entire file instead of targeted edits. Multiple bugs were reported on this.

So the workaround is to rollback to 2.0.49

Steps:

  1. Windows Search for: Edit the System Environment variables -> Environment Variables -> New system variable -> name: DISABLE_AUTOUPDATER value: 1.
  1. npm install -g @@.***

image.png (view on web)<https://github.com/user-attachments/assets/20434566-4a9f-457d-86a2-ae6c5c3553be>

—
Reply to this email directly, view it on GitHub<https://github.com/anthropics/claude-code/issues/12226#issuecomment-3570320176>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BMBZKPX5ZVYQYJGWJMYO6ET36LT75AVCNFSM6AAAAACM7GB3TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKNZQGMZDAMJXGY>.
You are receiving this because you authored the thread.

github-actions[bot] · 10 months 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.