Skip to content

Missing Tool Result Block for Tool Use ID toolu_0175bkViAT1GJvptv8DpEgbp #3608

@dsnewnes

Description

@dsnewnes

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

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.53
  • Feedback ID: 50d8197d-ac5b-43a6-a488-aca4d430df24

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at AI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:728:6320)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:16554\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n    at MF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:14339)\n    at zX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:13205)\n    at MB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:19174)","timestamp":"2025-07-16T07:29:57.954Z"},{"error":"Error: 1: 1 Error: End of central directory record signature not found. Either not a zip file, or file is truncated.\n    at xf (file:///private/var/folders/0x/gky4_kq51qg9f6y81jy92gp40000gn/T/AppTranslocation/10082999-F8D1-4571-BF3E-3D54B601B08E/d/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:50:28782)\n    at file:///private/var/folders/0x/gky4_kq51qg9f6y81jy92gp40000gn/T/AppTranslocation/10082999-F8D1-4571-BF3E-3D54B601B08E/d/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:50:30110\n    at /private/var/folders/0x/gky4_kq51qg9f6y81jy92gp40000gn/T/AppTranslocation/10082999-F8D1-4571-BF3E-3D54B601B08E/d/Visual Studio Code.app/Contents/Resources/app/node_modules/yauzl/index.js:40:7\n    at /private/var/folders/0x/gky4_kq51qg9f6y81jy92gp40000gn/T/AppTranslocation/10082999-F8D1-4571-BF3E-3D54B601B08E/d/Visual Studio Code.app/Contents/Resources/app/node_modules/yauzl/index.js:190:5\n    at Immediate.<anonymous> (/private/var/folders/0x/gky4_kq51qg9f6y81jy92gp40000gn/T/AppTranslocation/10082999-F8D1-4571-BF3E-3D54B601B08E/d/Visual Studio Code.app/Contents/Resources/app/node_modules/yauzl/index.js:705:38)\n    at process.processImmediate (node:internal/timers:485:21) {\n  code: 'Extract',\n  name: 'Extract'\n}\nFailed Installing Extensions: file:///opt/homebrew/lib/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix\n\n    at Lq6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:5219)\n    at async qq6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:2582)","timestamp":"2025-07-16T07:29:59.300Z"},{"error":"Error: Cannot edit file: old_string is a substring of a new_string from a previous edit.\n    at dP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1650:530)\n    at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2211:2646)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async J44 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:9788)\n    at async a$1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:6451)\n    at async Y44 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:5476)\n    at async Z44 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:5105)\n    at async AH (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:3533)\n    at async AH (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:4232)\n    at async AH (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2223:4232)","timestamp":"2025-07-16T07:39:36.773Z"},{"error":"SyntaxError: Expected ',' or '}' after property value in JSON at position 4091 (line 1 column 4092)\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:635:9928\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1365:237\n    at Array.map (<anonymous>)\n    at BB1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1365:49)\n    at qBB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:13083)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///opt/homebrew/lib/node_modules/@anthro

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:corebugSomething isn't workingduplicateThis issue or pull request already existsplatform:macosIssue specifically occurs on macOS

    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