[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant messages
Resolved 💬 3 comments Opened Dec 14, 2025 by anton1n Closed Dec 18, 2025
Bug Description
I got this error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messag
es.49.content.1: 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_011CW7CvXh8VFKzHzwAjLwPu"}
Environment Info
- Platform: linux
- Terminal: konsole
- Version: 2.0.69
- Feedback ID: db115c9c-f63c-4280-9c9c-de011679ac4e
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.49.content.1: `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_011CW7CvXh8VFKzHzwAjLwPu\"}\n at I9.generate (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:458:10379)\n at pR.makeStatusError (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:795:2195)\n at pR.makeRequest (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:795:5419)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async feA.model (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:11207)\n at async feA (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1220:18703)\n at async xg2 (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:11361)\n at async file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:3787\n at async yd1 (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:945:2037)\n at async dYA (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:3757)","timestamp":"2025-12-14T20:25:12.356Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.49.content.1: `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_011CW7Cvf3ekhXvnCgZgDW28\"}\n at I9.generate (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:458:10379)\n at pR.makeStatusError (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:795:2195)\n at pR.makeRequest (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:795:5419)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async feA.model (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:11207)\n at async feA (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1220:18703)\n at async xg2 (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:11361)\n at async file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:3787\n at async yd1 (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:945:2037)\n at async dYA (file:///home/tony/.nvm/versions/node/v24.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:4235:3757)","timestamp":"2025-12-14T20:25:14.371Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗