Bug Description
"API Error: 400
{"type":"error","error":{"type":"invalid_request_error",
"message":"messages.9: tool_use ids were found without
tool_result
blocks immediately after: toolu_0129DAVuZ39VWVN2b1c8JKPc. Each
tool_use block must have a corresponding tool_result block in the
next message."}}" This issue showed up in a chat.In the middle of working with a sub-agent.The chat then came to a complete stop.Wasn't able to clear it, compact it, or do anything else. I just kept getting that message over and over.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.64
- Feedback ID: adecace0-6020-426d-b0ba-c45a46872b93
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:883:11)\n at execSync (node:child_process:955:15)\n at t7 (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n at file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:48959\n at Q (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n at cJ (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:46397)\n at Pz (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:45264)\n at W9 (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:51585)","timestamp":"2025-07-31T19:59:40.914Z"}]
Bug Description
"API Error: 400
{"type":"error","error":{"type":"invalid_request_error",
"message":"messages.9:
tool_useids were found withouttool_resultblocks immediately after: toolu_0129DAVuZ39VWVN2b1c8JKPc. Each
tool_useblock must have a correspondingtool_resultblock in thenext message."}}" This issue showed up in a chat.In the middle of working with a sub-agent.The chat then came to a complete stop.Wasn't able to clear it, compact it, or do anything else. I just kept getting that message over and over.
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:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:883:11)\n at execSync (node:child_process:955:15)\n at t7 (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n at file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:48959\n at Q (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n at cJ (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:46397)\n at Pz (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:45264)\n at W9 (file:///Users/user/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:51585)","timestamp":"2025-07-31T19:59:40.914Z"}]