[BUG] semi-daily bug report
Environment
- Platform (select one):
- [x ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: v0.2.122
- Operating System: Linux 6.12
- Terminal: gnome-terminal
Bug Description
/compact on a resumed conversation causes this error:
Error: Error during compaction: Error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.309.content.0: When thinking is disabled, an
assistantmessage in the final position cannot containthinking. To use thinking blocks, enablethinkingin your request."}}
Context
I had interrupted the previous on-going prompt preceeding /compact because the % context available appeared all of a sudden and for some reason "Interrupted by user" also shows on /compact.
Trying /compact again failed.
workaround: It worked for me after I told claude to just tell me a quick "Yes" without doing anything, and trying /compact after that