conversation compression
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?
The session get to a conversation compression point and throws an error similar to:
⎿ Error: Error during compaction: Error: API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"clear_thinking_20251015 strategy requires
thinking to be enabled"},"request_id":"req_011CUwG6vFpS46TG4Cn5Gkvg"}
the only solution is to close the session and start a new clean session with as much context as you can save.
What Should Happen?
no error . the conversation should continue after a short period of time
Error Messages/Logs
This is one example; others have been different.
⎿ Error: Error during compaction: Error: API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"`clear_thinking_20251015` strategy requires
`thinking` to be enabled"},"request_id":"req_011CUwG6vFpS46TG4Cn5Gkvg"}
Steps to Reproduce
I guess the session has to just be long enough to force compression
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
Sonnet 4.5 2.0.36 claude Max
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/11232
- https://github.com/anthropics/claude-code/issues/11231
- https://github.com/anthropics/claude-code/issues/11229
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue is not limited to /compact but affects any message starting with a user-defined slash command - noticed in 2.0.36 while 2.0.35 is fine.
@sunt05 True, it happened to me numerous times on custom /slash-commands, but by adding ultrathink to the /slash-command the error disappears.
Still getting this error in the most recent version of Claude
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.