claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

conversation compression

Open mwechter opened this issue 1 year ago • 5 comments

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

mwechter avatar Nov 08 '25 23:11 mwechter

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/11232
  2. https://github.com/anthropics/claude-code/issues/11231
  3. 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

github-actions[bot] avatar Nov 08 '25 23:11 github-actions[bot]

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 avatar Nov 10 '25 17:11 sunt05

@sunt05 True, it happened to me numerous times on custom /slash-commands, but by adding ultrathink to the /slash-command the error disappears.

LorenzoNava99 avatar Nov 12 '25 17:11 LorenzoNava99

Still getting this error in the most recent version of Claude

1337hero avatar Nov 22 '25 04:11 1337hero

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.

github-actions[bot] avatar Dec 22 '25 10:12 github-actions[bot]

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.

github-actions[bot] avatar Jan 21 '26 10:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 28 '26 14:01 github-actions[bot]