[BUG] /compact 95% forever
Resolved 💬 7 comments Opened May 14, 2026 by shenguanjiejie Closed Jun 9, 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?
2.1.141 (Claude Code)
API Error: 400 Invalid request: Your request exceeded model token limit: 262144 (requested:
262147)
Not auto compact, so I compact with /compact
What Should Happen?
❯ /compact
✻ Compacting conversation… (2h 12m 58s)
▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▱▱ 95%
Error Messages/Logs
Steps to Reproduce
just out of limit, and not auto compact
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.141
Platform
Claude
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
2.1.137 have same problem.
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗