[BUG] Prompt is too long after compaction
Resolved 💬 2 comments Opened May 11, 2026 by fra-LE Closed May 18, 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 keeps running out of context, even after a fresh compaction "Prompt is too long" or "image too large etc..."
What Should Happen?
it shouldn't run out of context so quickly, and when it does not be dumb repeating the error, at least allow the user to extract the context to restart a new chat
Error Messages/Logs
Steps to Reproduce
not sure, chats are not as long, it just runs out of context when before wouldnt
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.12 (Claude Code)
Platform
Anthropic API
Operating System
windows
Terminal/Shell
VSCode
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗