Skip to content

Tool Use Validation Failure: Missing Corresponding Tool Result Block #1776

@illusivejosiah

Description

@illusivejosiah

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

Environment Info

  • Platform: macos
  • Terminal: cursor
  • Version: 1.0.17
  • Feedback ID: a637f51e-b993-46eb-8e42-d718b261bba3

Errors

[{"error":"Error: Tool exit_plan_mode not found\n    at qN2 (file:///Users/user/node_modules/@anthropic-ai/claude
{"error":"Error: Tool exit_plan_mode not found\n    at qN2 (file:///Users/user/node_modules/@anthropic-ai/claude-code/cli.js

I believe the issue happens more frequently after interrupting a process.

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