Skip to content

Tool Use Sequence Interrupted: Missing Tool Result Block #5424

@lasergoat

Description

@lasergoat

Bug Description
I got claude into a weird state where it quit working. I thought it was maybe an outage or my wifi issues or something so I tried restarting my mac, using different VPNs, and even logging into 3 separate claude accounts. but each time I was using claude -resume and going into that same convo I got the error .
At first I was getting different errors, maybe from a wifi or VPN issue. because I use starlink and have been having frequent VERY SHORT outages, like < 1s each. Somehow from me retrying different claude prompts, it got into a weird cycle with that error about tool uses and finally I tried just quitting claude and starting a new context without using -resume.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.72
  • Feedback ID: c2aec1a9-6adc-42db-bf98-d193be52208c

Errors

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

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