Sorry, an error occurred while generating a response. Details: unhandled status from server: 400
{"message":"messages.1.content.2: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as t..."}
Request ID: xxx | GitHub Request ID: xxx
Environment
Bug description
When using MCP tools that produce large outputs (pushing context utilization to (way) over 100%), requests to Anthropic models fail with:
To Reproduce
Expected behavior
Screenshots
Workarounds
Additional context
thinkingblocks in assistant messages are passed back identical or omitted entirely https://platform.claude.com/docs/en/docs/build-with-claude/extended-thinking#preserving-thinking-blocks.