Skip to content

{"message":"messages.78: tool_use ids were found without tool_result blocks immediately after: toolu_013Ar6KT5dwjTY6oNdZqZ7bJ. Each tool_use block must have a corresponding tool_result block in the next message.","code":"invalid_request_body"} #102

Description

@Shuffzord

Describe the bug

× Model call failed: {"message":"messages.78: tool_use ids were found without tool_result blocks immediately after: toolu_013Ar6KT5dwjTY6oNdZqZ7bJ. Each tool_use block must have a corresponding tool_result block in the next message.","code":"invalid_request_body"}

Its happening daily - random occurence. Basically bricks the session as the model cannot get out of the loop

Affected version

0.0.328 Commit: 3755a93

Steps to reproduce the behavior

It happens randomly during usage -

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on Sep 28, 2025
  2. williammartin commented on Oct 7, 2025

    @williammartin

    Sorry for the pain, let's definitely get to the bottom of this.

    random occurence

    Is there any shared behaviour you've noticed? Like, cancelling running operations with Esc or Ctrl+C, restarting sessions, particular tools?

  3. self-assigned this
    on Oct 13, 2025
  4. RyanHecht commented on Oct 13, 2025

    @RyanHecht
    Collaborator

    This has been fixed in 0.0.340!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions