[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant message
Resolved 💬 4 comments Opened Jun 1, 2026 by zortech Closed Jul 3, 2026
Bug Description
⎿ API Error: 400 messages.1.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: linux
- Terminal: vscode
- Version: 2.1.154
- Feedback ID: c62ee383-16bb-4a06-aa15-78eeaf2cd6c4
Errors
[{"error":"Error: Tool bash not found\n at x54 (/$bunfs/root/src/entrypoints/cli.js:4036:14129)\n at vz (/$bunfs/root/src/entrypoints/cli.js:580:21150)\n at qj (/$bunfs/root/src/entrypoints/cli.js:580:39922)\n at SKH (/$bunfs/root/src/entrypoints/cli.js:580:50731)\n at b8 (/$bunfs/root/src/entrypoints/cli.js:580:87760)\n at IKH (/$bunfs/root/src/entrypoints/cli.js:580:86726)\n at Wn (/$bunfs/root/src/entrypoints/cli.js:580:86546)\n at rC (/$bunfs/root/src/entrypoints/cli.js:580:82882)\n at Y$ (/$bunfs/root/src/entrypoints/cli.js:580:6440)\n at lw6 (/$bunfs/root/src/entrypoints/cli.js:573:5415)","timestamp":"2026-06-01T00:00:29.750Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5.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_011CbbaDMgzpXbfBonFrsjpp\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63571)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-01T00:13:19.764Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5.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_011CbbaT42FjChDpHJjzZo7c\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63571)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-01T00:16:25.610Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.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_011Cbbb1fiVCpxiv1SHaPBVa\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63571)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-01T00:23:48.194Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗