[BUG] Context window was full
Status Closed — duplicate
Reported on v2.1.202
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 4 comments · opened Jul 24, 2026 · closed Aug 15, 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?
I use both cowork and Visual Studio Code with Claude code but I've never received such error on Visual Studio Code
This error happens only on Cowork
Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use /clear to start fresh.
What Should Happen?
No such error like VSC
Error Messages/Logs
Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use /clear to start fresh.
Steps to Reproduce
long context project
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.202
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
Showing cached comments. Read the full discussion on GitHub ↗
3 Comments
_WORKAROUND:_ Apparently all you have to do is turn on /usage-credits then the (1M) context loads.
Thank you. I hope they will fix this
I turned it on but got the same errors. It's too annoying, slowing down my works. Please fix it