[Bug] Anthropic API Error: Cannot Modify Thinking Blocks in Assistant Messages
Open 💬 2 comments Opened May 28, 2026 by nsanguinettip
Bug Description
API Error: 400 messages.1.content.2: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.
Getting this all the time
Environment Info
- Platform: linux
- Terminal: xterm-256color
- Version: 2.1.153
- Feedback ID: 0dcdca14-cde1-424f-9874-651058a7924b
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVEL36twkCUTdTUVBAtF\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:49:00.172Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVETz359szt2zVBHRJEU\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:50:47.953Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVEU7NbXquaU4AM3bNnA\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:50:49.738Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVEUapqmXdMKDi7hRLZx\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:50:56.291Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVEbsKUZ4E8kDT3bjGpt\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:52:34.920Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVEcdnfUdqFyb4YxPXkM\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:52:45.350Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.24: `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_011CbVEdbr7DtjESTLyUEKtL\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T15:52:58.439Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.25: `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_011CbVFchJN14XPLLtg6gZY2\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63519)\n at makeRequest (/$bunfs/root/src/ent…
Note: Content was truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗