I don't have any bug report content to analyze. Please provide the bug report details so I can generate an appropriate GitHub issue title.

Resolved 💬 3 comments Opened Dec 8, 2025 by rrawla-mck Closed Dec 12, 2025

Bug Description
When I type /context , I get the following error

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.225.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 (preceeding the lastmost set of tool_use and tool_result blocks). 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_011CVun67zgW6wBjHS9z4yyn"}
at V9.generate (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:106:10318)
at rT.makeStatusError (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:2195)
at rT.makeRequest (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:5419)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Environment Info

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

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at cS (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:171:1137)\n    at IncomingMessage.<anonymous> (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:172:9852)\n    at IncomingMessage.emit (node:events:520:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at wHA.request (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:174:2130)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Wv7 (file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3138:460)\n    at async Promise.all (index 0)\n    at async file:///Users/rrawla/.nvm/versions/node/v24.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3124:6918","timestamp":"2025-12-08T19:32:10.829Z"}]

View original on GitHub ↗

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