[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant message
Resolved 💬 2 comments Opened May 28, 2026 by sbfs-co Closed Jul 1, 2026
Bug Description
Im getting thAPI Error: 400 messages.1.content.12: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.is error
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.153
- Feedback ID: e4bdcf1b-1cfa-4bbf-be21-36c04590c18f
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.52: `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_011CbVHtKBmMsDKbdoHUSE7Y\"}\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-28T16:35:38.620Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.52: `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_011CbVHuUTuEd6rF6MHGCrFx\"}\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-28T16:35:54.272Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.52: `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_011CbVHv6Q8SoXAZtoYS6SJk\"}\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-28T16:36:02.734Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.12: `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_011CbVJJeFf1LdnwgMebNQ5B\"}\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-28T16:41:08.605Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗