[BUG] Claude breaks code on hitting session limit
Status Open
Reported on v2.1.209
Maintainer reply None cached
Activity 0 comments · opened Jul 16, 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?
When CC sub-agent reaches the session limit, it dies, leaving solution in unbuildable state. It takes another session to just get through leftovers and figure out what damage was done. In some cases it leads to spiral of damage. Had to use Gemini to fix the mess.
What Should Happen?
Agent should have stopped, preserving full context, alternatively writing free breadcrumb with report on where it stopped.
Error Messages/Logs
None
Steps to Reproduce
Just give sub-agent large task
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.209
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
When I say "switch to extra usage", and it's enabled, it replies with URL where I can "turn it on", and discards context / simply exits, after an hour of editing the code base and leaving it in broken state.