Skip to content

fix: Remove thinking blocks with empty thinking field from message …#14

Open
yiios wants to merge 1 commit intoAmazingAng:mainfrom
yiios:fix/thinkingBlockEmpty
Open

fix: Remove thinking blocks with empty thinking field from message …#14
yiios wants to merge 1 commit intoAmazingAng:mainfrom
yiios:fix/thinkingBlockEmpty

Conversation

@yiios
Copy link
Copy Markdown

@yiios yiios commented Apr 10, 2026

When Claude Code compacts context or restores a session, it may preservethe thinking block skeleton but clear the content, resulting in { type: "thinking", thinking: "", signature: "" }. The Anthropic API rejects these with HTTP 400 "each thinking block must contain thinking".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant