Skip to content

Missing Tool Result Block in API Request #1574

@JordanCoin

Description

@JordanCoin

Bug Description

how are we doing?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.95: tool_use ids were found
without tool_result blocks immediately after: toolu_01GaXzrCJu7bAtaWFEudT2bD. Each tool_use block must have a
corresponding tool_result block in the next message."}}

did we merge those branches? everyone good?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.95: tool_use ids were found
without tool_result blocks immediately after: toolu_01GaXzrCJu7bAtaWFEudT2bD. Each tool_use block must have a
corresponding tool_result block in the next message."}}

/compact
⎿ Error: Error during compaction: Error: API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.95: tool_use ids were found without
tool_result blocks immediately after: toolu_01GaXzrCJu7bAtaWFEudT2bD. Each tool_use block must have a corresponding
tool_result block in the next message."}}

i was just asking for some help finishing up a commit and started getting these tool errors. Had to reset the cli for it to be fixed. Everytime i asked it a question it thought and fell into that

Environment Info

  • Platform: macos
  • Terminal: iTerm.app
  • Version: 1.0.10
  • Feedback ID: 54521b45-c45f-432d-8d08-bbb7aedd47dc

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 YZ (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:638:3921)\n    at file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:566:6842\n    at Q (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n    at Qi (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:566:6034)\n    at XG (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:566:5480)\n    at UO2 (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2002:4706)","timestamp":"2025-06-04T15:18:12.060Z"},{"error":"ShellError: Shell command failed\n    at Object.call (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1511:1326)\n    at async JZ5 (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1849:17870)\n    at async iV1 (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1849:16456)\n    at async fV1 (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1788:775)\n    at async FZ5 (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1849:15618)\n    at async DZ5 (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1849:15124)\n    at async ge (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1849:14379)\n    at async DB (file:///Users/jordanjackson/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2286:2083)","timestamp":"2025-06-04T15:18:52.928Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    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