Skip to content

Missing Tool Result Blocks for Tool Use IDs #4825

@kaovilai

Description

@kaovilai

Bug Description

continue
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
"message":"messages.6: tool_use ids were found without tool_result
blocks immediately after: toolu_011hQnatiiHpXUhnHs5GuXVz,
toolu_01HqSdhQZBPWrpdHNL3fLTvF, toolu_01Q79z7G97aPmH7sfFdMwVcb. Each
tool_use block must have a corresponding tool_result block in the
next message."}}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.64
  • Feedback ID: 370e73d7-fe27-4333-aadf-5a14e8225249

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:924:11)\n    at execSync (node:child_process:996:15)\n    at t7 (file:///Users/tkaovila/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n    at file:///Users/tkaovila/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:48959\n    at Q (file:///Users/tkaovila/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n    at cJ (file:///Users/tkaovila/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:46397)\n    at Pz (file:///Users/tkaovila/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:45264)\n    at W9 (file:///Users/tkaovila/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:51585)","timestamp":"2025-07-31T04:14:09.480Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    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