Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding
tool_result block in the next message."}}
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 1.0.62
- Feedback ID: c8265c72-6a04-493a-b7b8-e12de65eaf10
Errors
[{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding tool_result block in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:22:19.758Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding tool_result block in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:37:36.061Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding tool_result block in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:55:30.413Z"}]
Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4:
tool_useids were found withouttool_resultblocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Eachtool_useblock must have a correspondingtool_resultblock in the next message."}}Environment Info
Errors
[{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4:
tool_useids were found withouttool_resultblocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Eachtool_useblock must have a correspondingtool_resultblock in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:22:19.758Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4:tool_useids were found withouttool_resultblocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Eachtool_useblock must have a correspondingtool_resultblock in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:37:36.061Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4:tool_useids were found withouttool_resultblocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Eachtool_useblock must have a correspondingtool_resultblock in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:55:30.413Z"}]