Skip to content

Missing Tool Result Block for Tool Use ID toolu_012qHLi1dcwjja9dLU4hLUss #2201

@danielcor

Description

@danielcor

Bug Description
this is still an issue -- I didn't hit escape right before this, not sure what caused it or how to reproduce this time:
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.26: tool_use ids were found without tool_result blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each tool_use
block must have a corresponding tool_result block in the next message."}}

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.25
  • Feedback ID: 23bebba3-1d65-4fc7-8461-06cb821850fb

Errors

[{"error":"Error: Request was aborted.\n    at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:3784)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-17T15:23:57.575Z"},{"error":"Error: Request was aborted.\n    at lo._createMessage (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1306:6810)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-17T15:26:10.824Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.26: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at h6.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n    at Sw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n    at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async GE2.E11.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n    at async E11 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n    at async GE2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n    at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n    at async ft1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n    at async Xu (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T15:30:18.592Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.26: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012qHLi1dcwjja9dLU4hLUss. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at h6.generate (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1300:12578)\n    at Sw.makeStatusError (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:2082)\n    at Sw.makeRequest (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async GE2.E11.showErrors (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:22049)\n    at async E11 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:12215)\n    at async GE2 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:21895)\n    at async file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17115\n    at async ft1 (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:5163)\n    at async Xu (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1668:17085)","timestamp":"2025-06-17T15:30:42.542Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:corebugSomething isn't workingduplicateThis issue or pull request already existshas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    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