[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant message

Resolved 💬 1 comment Opened May 28, 2026 by jesse-atomic Closed Jun 29, 2026

Bug Description
API Error: 400 messages.7.content.11: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.153
  • Feedback ID: 052bd407-2e40-4e56-8361-5c8cd351796e

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5.content.11: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.\"},\"request_id\":\"req_011CbV9brCv9cQDnedDEVFqg\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:63764)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T14:47:00.421Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.7.content.11: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.\"},\"request_id\":\"req_011CbV9pV15HdMV2Y6EHwD4d\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:63764)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T14:49:51.816Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗