Bug Description
API Error: 400 {"type":"error","error":{"type":"in
valid_request_error","message":"messages.7:
tool_use ids were found without tool_result
blocks immediately after:
toolu_01Ks8oyRSJjtoKU9zeqA4FLi. Each tool_use
block must have a corresponding tool_result
block in the next message."}}
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.56
- Feedback ID: 4df53d3b-0a50-44b4-915d-aaa7ac369f0e
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:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at checkExecSyncError (node:child_process:891:11)\n at execSync (node:child_process:963:15)\n at A7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:797:5848)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:48013\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at fY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:45724)\n at QK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:44590)\n at SB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:50639)","timestamp":"2025-07-22T18:24:37.301Z"},{"error":"Error: ENOENT: no such file or directory, open '/proc/version'\n at Module.readFileSync (node:fs:449:20)\n at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:8638\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at kT4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:62815)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-22T18:24:37.865Z"},{"error":"Error: Failed to install new version of claude: npm error code EACCES\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -13\nnpm error Error: EACCES: permission denied, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error at async Object.rename (node:internal/fs/promises:782:10)\nnpm error at async moveFile (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js:30:5)\nnpm error at async Promise.allSettled (index 0)\nnpm error at async [reifyPackages] (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)\nnpm error at async Arborist.reify (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)\nnpm error at async Install.exec (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/lib/commands/install.js:150:5)\nnpm error at async Npm.exec (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/lib/npm.js:207:9)\nnpm error at async module.exports (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/lib/cli/entry.js:74:5) {\nnpm error errno: -13,\nnpm error code: 'EACCES',\nnpm error syscall: 'rename',\nnpm error path: '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code',\nnpm error dest: '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It is likely you do not have the permissions to access this file as the current user\nnpm error\nnpm error If you believe this might be a permissions issue, please double-check the\nnpm error permissions of the file and its containing directories, or try running\nnpm error the command again as root/Administrator.\nnpm error A complete log of this run can be found in: /Users/iba/.npm/_logs/2025-07-22T18_24_38_232Z-debug-0.log\n\n at m61 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1805:392)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2700:10621","timestamp":"2025-07-22T18:24:38.396Z"},{"error":"Error: Failed to install new version of claude: npm error code EACCES\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -13\nnpm error Error: EACCES: permission denied, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/
Note: Error logs were truncated.
Bug Description
API Error: 400 {"type":"error","error":{"type":"in
valid_request_error","message":"messages.7:
tool_useids were found withouttool_resultblocks immediately after:
toolu_01Ks8oyRSJjtoKU9zeqA4FLi. Each
tool_useblock must have a corresponding
tool_resultblock in the next message."}}
Environment Info
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:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at checkExecSyncError (node:child_process:891:11)\n at execSync (node:child_process:963:15)\n at A7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:797:5848)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:48013\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at fY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:45724)\n at QK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:44590)\n at SB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:50639)","timestamp":"2025-07-22T18:24:37.301Z"},{"error":"Error: ENOENT: no such file or directory, open '/proc/version'\n at Module.readFileSync (node:fs:449:20)\n at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:8638\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at kT4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:62815)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-22T18:24:37.865Z"},{"error":"Error: Failed to install new version of claude: npm error code EACCES\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -13\nnpm error Error: EACCES: permission denied, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error at async Object.rename (node:internal/fs/promises:782:10)\nnpm error at async moveFile (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js:30:5)\nnpm error at async Promise.allSettled (index 0)\nnpm error at async [reifyPackages] (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)\nnpm error at async Arborist.reify (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)\nnpm error at async Install.exec (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/lib/commands/install.js:150:5)\nnpm error at async Npm.exec (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/lib/npm.js:207:9)\nnpm error at async module.exports (/opt/homebrew/Cellar/node@20/20.19.2/lib/node_modules/npm/lib/cli/entry.js:74:5) {\nnpm error errno: -13,\nnpm error code: 'EACCES',\nnpm error syscall: 'rename',\nnpm error path: '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code',\nnpm error dest: '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It is likely you do not have the permissions to access this file as the current user\nnpm error\nnpm error If you believe this might be a permissions issue, please double-check the\nnpm error permissions of the file and its containing directories, or try running\nnpm error the command again as root/Administrator.\nnpm error A complete log of this run can be found in: /Users/iba/.npm/_logs/2025-07-22T18_24_38_232Z-debug-0.log\n\n at m61 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1805:392)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2700:10621","timestamp":"2025-07-22T18:24:38.396Z"},{"error":"Error: Failed to install new version of claude: npm error code EACCES\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -13\nnpm error Error: EACCES: permission denied, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/Note: Error logs were truncated.