[BUG] since a couple hours ago, the claude code agent often gets stuck while working. downgrading doesn't help.
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?
often when the agent is working on a prompt, in the middle of a step it'll get stuck.
<img width="330" height="24" alt="Image" src="https://github.com/user-attachments/assets/5635d498-7e4c-496a-b39f-496841e38c97" />
at this point, if i hit ESC, it won't even say "Interrupted" like it usually does. sending additional messages to the agent will then lead to something like this, but there's no way to move forward other than starting a new session:
<img width="312" height="69" alt="Image" src="https://github.com/user-attachments/assets/785e5927-a2c3-4a40-a3c2-4cd71233cf08" />
What Should Happen?
the agent shouldn't get stuck this way. or it should show an error.
Error Messages/Logs
Steps to Reproduce
run claude-code with a prompt that leads to the agent taking multiple actions. when running this, i had thinking turned on. i used --model opus with --dangerously-skip-permissions
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.61, also happens on 2.0.58
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗