Bug Description
⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.14:
tool_use ids were found without tool_result blocks immediately after:
toolu_01RcEBxtdXQbxB4P61SPVLSx. Each tool_use block must have a corresponding
tool_result block in the next message."}} this keeps happening even if i end the chat and --continue. im using sub agents but it had no tools listed which means it has access to all tools i believe.
Environment Info
- Platform: linux
- Terminal: wsl-Ubuntu
- Version: 1.0.72
- Feedback ID:
Errors
[{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:725:27)\n at EventTarget.onAbortListener (node:child_process:795:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n at abortSignal (node:internal/abort_controller:370:10)\n at AbortController.abort (node:internal/abort_controller:392:5)\n at Timeout._onTimeout (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:3345:8200)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-08-09T23:31:00.539Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.14: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01RcEBxtdXQbxB4P61SPVLSx. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at Q6.generate (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n at uP.makeStatusError (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RRB.rZ1.showErrors (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-09T23:34:31.031Z"},{"error":"AxiosError: Request failed with status code 403\n at XN (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:682:1077)\n at Unzip.K0 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:683:9955)\n at Unzip.emit (node:events:536:35)\n at Unzip.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n at EB1.request (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:685:2088)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async QH8 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:2298:470)\n at async Promise.all (index 0)\n at async file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:2284:19497","timestamp":"2025-08-09T23:42:23.164Z"}]
Bug Description
⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.14:
tool_useids were found withouttool_resultblocks immediately after:toolu_01RcEBxtdXQbxB4P61SPVLSx. Each
tool_useblock must have a correspondingtool_resultblock in the next message."}} this keeps happening even if i end the chat and --continue. im using sub agents but it had no tools listed which means it has access to all tools i believe.Environment Info
Errors
[{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:725:27)\n at EventTarget.onAbortListener (node:child_process:795:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n at abortSignal (node:internal/abort_controller:370:10)\n at AbortController.abort (node:internal/abort_controller:392:5)\n at Timeout._onTimeout (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:3345:8200)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-08-09T23:31:00.539Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.14: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01RcEBxtdXQbxB4P61SPVLSx. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at Q6.generate (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n at uP.makeStatusError (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RRB.rZ1.showErrors (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-09T23:34:31.031Z"},{"error":"AxiosError: Request failed with status code 403\n at XN (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:682:1077)\n at Unzip.K0 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:683:9955)\n at Unzip.emit (node:events:536:35)\n at Unzip.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n at EB1.request (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:685:2088)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async QH8 (file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:2298:470)\n at async Promise.all (index 0)\n at async file:///home/kngpn/node_modules/@anthropic-ai/claude-code/cli.js:2284:19497","timestamp":"2025-08-09T23:42:23.164Z"}]