Missing Tool Result Block for Tool Use ID toolu_01YC4iYdsqrqqrUbjyzSutGh

Resolved 💬 1 comment Opened Jul 4, 2025 by jwaes Closed Sep 18, 2025

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.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗