Invalid Thinking Block Parameters in API Request
Resolved 💬 5 comments Opened Jun 16, 2025 by dazebug Closed Jan 4, 2026
Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.10: When providing thinking or redacted_thinking blocks, the blocks
must match the parameters during the original request."}}
Environment Info
- Platform: darwin
- Terminal: intellij
- Version: 1.0.24
- Feedback ID: 13121240-0e34-46ac-8180-2fc7b397b576
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at HZ (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8863\n at Q (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at tJ (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8009)\n at HS (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:7090)\n at T6 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11202)","timestamp":"2025-06-16T21:26:18.102Z"},{"error":"Error: Request was aborted.\n at Lw.makeRequest (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-16T21:28:03.830Z"},{"error":"Error: Request was aborted.\n at Lw.makeRequest (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-16T21:32:43.388Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.10: When providing `thinking` or `redacted_thinking` blocks, the blocks must match the parameters during the original request.\"}}\n at h6.generate (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1329:12578)\n at Lw.makeStatusError (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:2082)\n at Lw.makeRequest (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1344:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async ME2.K11.showErrors (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:22008)\n at async K11 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:12203)\n at async ME2 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:21854)\n at async file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:17103\n at async yt1 (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:5151)\n at async Fu (file:///Users/choongjaelee/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1698:17073)","timestamp":"2025-06-16T21:52:42.117Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗