Skip to content

Invalid Tool Result Block for Tool Use in Claude Code Interaction #1571

@ertad-family

Description

@ertad-family

Bug Description
can't continue with Claude Code within a specific project: API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
"message":"messages.105: tool_use ids were found without
tool_result blocks immediately after: toolu_01M4XoM94B3RMyU4V5ehxVfo.
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.10
  • Feedback ID: 83c52585-c472-4663-9c6a-aa40b257a8a8

Errors

[{"error":"Error: No logs found at /home/ostashenkods/.cache/claude-cli-nodejs/-home-ostashenkods-vowly-research/messages\n    at YT4 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:567:3719)\n    at OQ1 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:567:3468)\n    at Sy1 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:567:3648)\n    at FAA.<anonymous> (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2297:738)\n    at async FAA.parseAsync (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:517:4184)\n    at async YE5 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2300:5983)\n    at async ZE5 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2296:17530)","timestamp":"2025-06-04T13:12:13.309Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.105: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01M4XoM94B3RMyU4V5ehxVfo. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Y5.generate (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1336:12578)\n    at Qw.makeStatusError (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1351:2082)\n    at Qw.makeRequest (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1351:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Xz2.Me.showErrors (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:20217)\n    at async Me (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:12044)\n    at async Xz2 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:20080)\n    at async file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:16842\n    at async Yo1 (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:5204)\n    at async Ld (file:///home/ostashenkods/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1614:16812)","timestamp":"2025-06-04T13:12:20.217Z"}]

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