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

Resolved 💬 3 comments Opened Dec 8, 2025 by jlcjohnson Closed Dec 11, 2025

Bug Description

Start with 1.

⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messa
ges.9.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_011CVtX9fCVMYxoXR7nvG45Z"}

Let's update the object categories summary

⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messa
ges.9.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_011CVtXCR1YQCRzpqRhboJXZ"}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.61
  • Feedback ID:

Errors

[{"error":"AxiosError: Request failed with status code 403\n    at cS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:171:1137)\n    at Unzip.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:172:9852)\n    at Unzip.emit (node:events:520:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)\n    at wHA.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:174:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async qS2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2064:6679)","timestamp":"2025-12-07T20:41:44.568Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.9.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_011CVtX9fCVMYxoXR7nvG45Z\"}\n    at V9.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:106:10318)\n    at rT.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:2195)\n    at rT.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:5419)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async Q71.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:10426)\n    at async Q71 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2064:3271)\n    at async pz9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:10580)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:3864\n    at async lo1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1435:2037)\n    at async gXA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:3834)","timestamp":"2025-12-08T03:36:29.456Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.9.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_011CVtXCR1YQCRzpqRhboJXZ\"}\n    at V9.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:106:10318)\n    at rT.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:2195)\n    at rT.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:5419)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async Q71.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:10426)\n    at async Q71 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2064:3271)\n    at async pz9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:10580)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:3864\n    at async lo1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1435:2037)\n    at async gXA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4129:3834)","timestamp":"2025-12-08T03:37:06.848Z"},{"error":"AxiosError: Request failed with status code 403\n    at cS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:171:1137)\n    at Unzip.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:172:9852)\n    at Unzip.emit (node:events:520:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:inter

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗