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

[BUG] semi-daily bug report

Open tassa-yoniso-manasi-karoto opened this issue 10 months ago • 1 comments

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 assistant message in the final position cannot contain thinking. To use thinking blocks, enable thinking in 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.

Image

workaround: It worked for me after I told claude to just tell me a quick "Yes" without doing anything, and trying /compact after that

JakobBruenker avatar May 20 '25 12:05 JakobBruenker