[Bug] Anthropic API Error: Missing thinking block in assistant message with extended thinking enabled

Resolved 💬 3 comments Opened Nov 18, 2025 by ChrisColeTech Closed Nov 22, 2025

Bug Description

/context

⎿ Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.89.content.0.type: Expected
thinking or redacted_thinking, but found text. When thinking is enabled, a final assistant message must start
with a thinking block. We recommend you include thinking blocks from previous turns. To avoid this requirement, disable
thinking. Please consult our documentation at
https://docs.claude.com/en/docs/build-with-claude/extended-thinking"},"request_id":"req_011CVFJ583EMvvqgqdMJ9W5Y"}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.42
  • Feedback ID: c8479a21-60e8-4887-83bf-2725be6d6e4c

Errors

[{"error":"EtA: Another process is currently installing an update\n    at yzA (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2191:1849)\n    at Object.current (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2203:9322)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-11-18T02:59:30.389Z"},{"error":"EtA: Failed to install new version of claude:  \n    at yzA (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2201:457)\n    at async Object.current (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2203:9316)","timestamp":"2025-11-18T04:02:08.719Z"},{"error":"EtA: Failed to install new version of claude: \nchanged 3 packages in 15m\n\n2 packages are looking for funding\n  run `npm fund` for details \n    at yzA (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2201:457)\n    at async Object.current (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2203:9316)","timestamp":"2025-11-18T04:41:26.251Z"},{"error":"EtA: Another process is currently installing an update\n    at yzA (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2191:1849)\n    at Object.current (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2203:9322)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-11-18T05:45:15.623Z"},{"error":"EtA: Another process is currently installing an update\n    at yzA (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2191:1849)\n    at Object.current (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2203:9322)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-11-18T06:28:19.635Z"},{"error":"EtA: Failed to install new version of claude:  npm error code ETIMEDOUT\nnpm error syscall read\nnpm error errno -60\nnpm error network read ETIMEDOUT\nnpm error network This is a problem related to network connectivity.\nnpm error network In most cases you are behind a proxy or have bad network settings.\nnpm error network\nnpm error network If you are behind a proxy, please make sure that the\nnpm error network 'proxy' config is set properly.  See: 'npm help config'\nnpm error A complete log of this run can be found in: /Users/chris/.npm/_logs/2025-11-18T08_05_02_695Z-debug-0.log\n    at yzA (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2201:457)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.current (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2203:9316)","timestamp":"2025-11-18T08:05:27.246Z"},{"error":"Error: Request was aborted.\n    at S_.makeRequest (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:715:3861)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-11-18T08:07:09.819Z"},{"error":"Error: Request was aborted.\n    at _n._createMessage (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:439:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-11-18T08:14:27.096Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at mD (file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1062:4489)\n    at file:///Users/chris/.nvm/versions/node/v22.20.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1062:4217\n    at Array.map (<anonymous>)\n    at tC (file:///Users/chris/.nvm/ver

Note: Error logs were truncated.

View original on GitHub ↗

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