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 — Most sessions eventually gets an `tool_use` error · Issue #8377 · anomalyco/opencode

Most sessions eventually gets an tool_use error #8377

New issue
Copy link
New issue
Copy link
Closed
Closed
Most sessions eventually gets an tool_use error#8377
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@arielpollack
arielpollack
opened on Jan 14, 2026
Issue body actions

Description

Thanks for this amazing platform!

I didn't catch a specific way to reproduce, but after some time, most of my sessions gets an error from which all prompts fail, until I fork an earlier message (but lose recent progress)

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

Plugins

oh my opencode

OpenCode version

1.1.18

Steps to reproduce

Just use the sessions, no specific prompts or instructions.
Happened in an existing project, and also a fresh project I started from scratch with OpenCode.

Screenshot and/or share link

Image

When I /share there's an error "Failed to share session"

Operating System

maxOS 15.7.3

Terminal

Warp

Reacted by Felix F Zimmermann, Miri Volozhinsky, Jethro Guce, Said B., Tulgar Dinç and Patrick (Casus Belli)

Activity

  1. arielpollack
    added
    bugSomething isn't working
    on Jan 14, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 14, 2026
  3. github-actions commented on Jan 14, 2026

    @github-actions
    github-actionsBot
    on Jan 14, 2026 – 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: AI_APICallError: tool_use blocks found without corresponding tool_result blocks
    • AI_APICallError: tool_use ids were found without tool_result blocks immediately after #1662: AI_APICallError: tool_use ids were found without tool_result blocks immediately after
    • 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 occurring during normal usage with tool_use blocks
    • Bug: Session corrupted when tool execution is aborted - missing tool_result causes API rejection #8312: Session corrupted when tool execution is aborted - missing tool_result causes API rejection
    • tool_use ids were found without tool_result` blocks #4802: Another instance of the same tool_use ids were found without tool_result blocks error
    • "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: Same error when interrupting Sonnet 4.5 conversation during tool call

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

  4. ikx94 commented on Jan 25, 2026

    @ikx94
    ikx94
    on Jan 25, 2026
    More actions

    Happens to me too, very frequently.

  5. rekram1-node commented on Jan 25, 2026

    @rekram1-node
    rekram1-node
    on Jan 25, 2026
    Member
    More actions

    Hard to say if ur using omo, but if possible can you share your session? Use this:

    opencode export > session.json

    ^^ Run this in your terminal do not use /export or /share for this :)

  6. jethroguce commented on Feb 19, 2026

    @jethroguce
    jethroguce
    on Feb 19, 2026
    More actions

    also experienced it today multiple times, using claude opus 4.5

    Reacted by Stanislav U.
  7. tlaukkanen commented on Apr 16, 2026

    @tlaukkanen
    tlaukkanen
    on Apr 16, 2026
    More actions

    Experienced today with Claude Opus 4.6 and with latest OpenCode 1.4.6

    Bad Request: messages.41: tool_use ids were found without tool_result blocks immediately after: toolu_bdrk_01CLWZAHTRLATDLvLoQHUcnC. Each tool_use block must have a corresponding tool_result block in the next message.

  8. rekram1-node commented on Apr 16, 2026

    @rekram1-node
    rekram1-node
    on Apr 16, 2026
    Member
    More actions

    fix: 348a849

  9. rekram1-node
    closed this as completedon Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't working

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.