GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — "Each `tool_use` block must have a corresponding `tool_result` block in the next message" when interrupting Sonnet 4.5 convo during tool call · Issue #3230 · anomalyco/opencode

"Each tool_use block must have a corresponding tool_result block in the next message" when interrupting Sonnet 4.5 convo during tool call #3230

New issue
Copy link
New issue
Copy link
Closed
Closed
"Each tool_use block must have a corresponding tool_result block in the next message" when interrupting Sonnet 4.5 convo during tool call#3230
Copy link

Description

@hellowodl
hellowodl
opened on Oct 16, 2025
Issue body actions

AI_APICallError: messages.125: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_016GGBqBmVVf9JWMNFbWA781. Each `tool_use` block must have a corresponding `tool_result` block in the next message.

This error presents itself when I interrupt a conversation whilst a tool call is active and hasn't responded.
The model is Sonnet 4.5

Activity

  1. github-actions commented on Oct 16, 2025

    @github-actions
    github-actionsBot
    on Oct 16, 2025 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • AI_APICallError: tool_use blocks found without corresponding tool_result blocks #2720: Same error about tool_use blocks found without corresponding tool_result blocks
    • AI_APICallError: tool_use ids were found without tool_result blocks immediately after #1662: Identical error message with tool_use ids found without tool_result blocks, also occurs regularly with Sonnet 4
    • AI_APICallError: messages.3: tool_use ids were found without tool_result blocks immediately after: toolu_01G5ipgNZWmDHuV6cvzyQpfH. Each tool_use block must have a corresponding tool_result block in the next message. #2214: Same error specifically when interrupting responses mid-flight
    • Interrupting a tool call breaks sending new messages #41: Describes interrupting tool calls breaking message sending (closed but related)

    Feel free to ignore if none of these address your specific case.

  2. hellowodl commented on Oct 16, 2025

    @hellowodl
    hellowodl
    on Oct 16, 2025
    Author
    More actions

    Duplicate

  3. hellowodl
    closed this as completedon Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.