Bug Description
i saw this error, even restart claude code, the error still exists. it didn't take any input.
> cool, let's continue the implementation
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.32: `tool_use` ids were found without `tool_result` blocks immediately after:
toolu_01BM1HkYZCk2yAbUcfykYxSm. Each `tool_use` block must have a corresponding `tool_result` block in the next message."},"request_id":"req_011CSN41PDAbqdHfFAtg5PdT"}
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.88
- Feedback ID: d2e755fd-849c-422e-ac7e-88404c76549d
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.32: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01BM1HkYZCk2yAbUcfykYxSm. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSN3kf9T36eW6tTyerSSR\"}\n at v4.generate (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at XP.makeStatusError (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at XP.makeRequest (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async DZ1.showErrors (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27329)\n at async DZ1 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:16486)\n at async s2B (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27180)\n at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22275\n at async eD0 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:3656)\n at async Fe (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22245)","timestamp":"2025-08-22T03:36:01.867Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.32: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01BM1HkYZCk2yAbUcfykYxSm. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSN41PDAbqdHfFAtg5PdT\"}\n at v4.generate (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at XP.makeStatusError (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at XP.makeRequest (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async DZ1.showErrors (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27329)\n at async DZ1 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:16486)\n at async s2B (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27180)\n at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22275\n at async eD0 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:3656)\n at async Fe (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22245)","timestamp":"2025-08-22T03:39:21.626Z"}]
Bug Description
i saw this error, even restart claude code, the error still exists. it didn't take any input.
Environment Info
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.32: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01BM1HkYZCk2yAbUcfykYxSm. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSN3kf9T36eW6tTyerSSR\"}\n at v4.generate (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at XP.makeStatusError (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at XP.makeRequest (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async DZ1.showErrors (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27329)\n at async DZ1 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:16486)\n at async s2B (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27180)\n at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22275\n at async eD0 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:3656)\n at async Fe (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22245)","timestamp":"2025-08-22T03:36:01.867Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.32: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01BM1HkYZCk2yAbUcfykYxSm. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSN41PDAbqdHfFAtg5PdT\"}\n at v4.generate (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at XP.makeStatusError (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at XP.makeRequest (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async DZ1.showErrors (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27329)\n at async DZ1 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:16486)\n at async s2B (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27180)\n at async file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22275\n at async eD0 (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:3656)\n at async Fe (file:///root/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22245)","timestamp":"2025-08-22T03:39:21.626Z"}]