Skip to content

Missing Tool Result Block for Tool Use ID #2959

@JavierOrtegaP

Description

@JavierOrtegaP

Bug Description

new branch
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","me
ssage":"messages.164: tool_use ids were found without tool_result
blocks immediately after: toolu_014nq3yJC9D2CR1cauTBWvtd. Each tool_use
block must have a corresponding tool_result block in the next
message."}}

new branch
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","me
ssage":"messages.164: tool_use ids were found without tool_result
blocks immediately after: toolu_014nq3yJC9D2CR1cauTBWvtd. Each tool_use
block must have a corresponding tool_result block in the next
message."}} this happens a lot when i interrupt claude

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.43
  • Feedback ID: 61b5bcbd-a49e-42fc-9822-badc20be8923

Errors

[{"error":"Error: Request was aborted.\n    at bq.makeRequest (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:3838)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-03T22:17:35.196Z"},{"error":"Error: Request was aborted.\n    at bq.makeRequest (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:3838)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-03T22:17:35.218Z"},{"error":"Error: Request was aborted.\n    at bq.makeRequest (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:3838)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-03T22:17:35.221Z"},{"error":"AbortError\n    at gAA (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1581:693)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async cM (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:4577)","timestamp":"2025-07-03T22:17:35.244Z"},{"error":"Error: Tab close: Invalid tab not found!\n    at zN2 (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1385:12840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async cS2 (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1961:12237)\n    at async EventTarget.Y (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1961:11369)","timestamp":"2025-07-03T22:18:59.037Z"},{"error":"Error: Request was aborted.\n    at Ae._createMessage (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1325:7931)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-03T22:52:17.993Z"},{"error":"Error: Request was aborted.\n    at bq.makeRequest (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:3838)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at runNextTicks (node:internal/process/task_queues:64:3)\n    at process.processTimers (node:internal/timers:509:9)","timestamp":"2025-07-03T23:04:06.284Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.164: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_014nq3yJC9D2CR1cauTBWvtd. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at C6.generate (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12578)\n    at bq.makeStatusError (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2100)\n    at bq.makeRequest (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async jA1.showErrors (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:23044)\n    at async jA1 (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:12633)\n    at async lR2 (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:22894)\n    at async file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:18023\n    at async G0A (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:5121)\n    at async Xc (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:17993)","timestamp":"2025-07-03T23:06:22.290Z"},{"error":"Error: Request was aborted.\n    at Ae._createMessage (file:///home/vscode/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1325:7931)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","times

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions