Skip to content

Missing Tool Result Block for Tool Use ID toolu_01YC4iYdsqrqqrUbjyzSutGh #2971

@jwaes

Description

@jwaes

Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.122: tool_use ids were found without tool_result blocks immediately after:
toolu_01YC4iYdsqrqqrUbjyzSutGh. Each tool_use block must have a corresponding tool_result block in the next message."}}

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.43
  • Feedback ID: e74aae4e-7b5c-48e5-9ceb-09ac3b0c7320

Errors

[{"error":"RangeError: path should be a `path.relative()`d string, but got \"../../../../tmp/claude-f564-cwd\"\n    at GA9 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3373)\n    at TN (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3550)\n    at TxA._test (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4086)\n    at TxA.ignores (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4588)\n    at CM2 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1436:240)\n    at AU6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:847)\n    at Object.call (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:148)\n    at call.next (<anonymous>)\n    at hq6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:11470)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-04T06:43:00.966Z"},{"error":"RangeError: path should be a `path.relative()`d string, but got \"../../../../tmp/claude-f575-cwd\"\n    at GA9 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3373)\n    at TN (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3550)\n    at TxA._test (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4086)\n    at TxA.ignores (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4588)\n    at CM2 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1436:240)\n    at AU6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:847)\n    at Object.call (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:148)\n    at call.next (<anonymous>)\n    at hq6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:11470)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-04T06:43:00.966Z"},{"error":"RangeError: path should be a `path.relative()`d string, but got \"../../../../tmp/claude-f578-cwd\"\n    at GA9 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3373)\n    at TN (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3550)\n    at TxA._test (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4086)\n    at TxA.ignores (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4588)\n    at CM2 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1436:240)\n    at AU6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:847)\n    at Object.call (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:148)\n    at call.next (<anonymous>)\n    at hq6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:11470)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-04T06:43:00.967Z"},{"error":"RangeError: path should be a `path.relative()`d string, but got \"../../../../tmp/claude-f5a8-cwd\"\n    at GA9 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3373)\n    at TN (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:3550)\n    at TxA._test (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4086)\n    at TxA.ignores (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:156:4588)\n    at CM2 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1436:240)\n    at AU6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:847)\n    at Object.call (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1434:148)\n    at call.next (<anonymous>)\n    at hq6 (file:///home/jaco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:11470)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-04T06:43:00.967Z"},{"error":"RangeError: path should 

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