[Bug] Claude enters infinite reasoning loop consuming excessive tokens

Resolved 💬 1 comment Opened Apr 21, 2026 by Gelyano Closed May 27, 2026

Bug Description
Since April 19, 2026, i have been experiencing issues with work sessions. Any task causes Claude to think indefinitely; sometimes it may even consume several hundred tokens, and then it just gets stuck in endless rumination. This has happened before, but rarely, and it was usually resolved by simply restarting the session. Please help!!!

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.116
  • Feedback ID: 7b0448d6-cbe1-4fa5-ac26-c6ac8a6dac53

Errors

[{"error":"Error: 127: Command 'code.cmd' not found or is in an unsafe location (current directory) Command 'code.cmd' not found or is in an unsafe location (current directory)\n    at bXf (B:/~BUN/root/src/entrypoints/cli.js:1630:4045)\n    at async RXf (B:/~BUN/root/src/entrypoints/cli.js:1630:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:35:48.529Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗