Skip to content

Missing Tool Result Block for Tool Use ID #3636

@medproapp

Description

@medproapp

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

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

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

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

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

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

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.53
  • Feedback ID: 62d3d539-ce1d-4daf-bd60-0416cf80f157

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 AI (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:728:6320)\n    at file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:16554\n    at Q (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n    at MF (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:14339)\n    at zX (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:13205)\n    at MB (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:19174)","timestamp":"2025-07-16T14:05:33.567Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.208: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01LsN9eeWJqu83ZEn9MMz6kD. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at eQ.generate (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1180:6428)\n    at k$.makeStatusError (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:2101)\n    at k$.makeRequest (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async aB1.showErrors (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:14107)\n    at async aB1 (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:1658)\n    at async qBB (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:13956)\n    at async file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:9065\n    at async DIA (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:1626)\n    at async Yp (file:///Users/fabiangc/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2594:9035)","timestamp":"2025-07-16T14

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