Skip to content

Most sessions eventually gets an tool_use error #8377

Description

@arielpollack

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

Activity

  1. github-actions commented on Jan 14, 2026

    @github-actions
    Contributor

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

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

  2. ikx94 commented on Jan 25, 2026

    @ikx94

    Happens to me too, very frequently.

  3. rekram1-node commented on Jan 25, 2026

    @rekram1-node
    Collaborator

    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 :)

  4. jethroguce commented on Feb 19, 2026

    @jethroguce

    also experienced it today multiple times, using claude opus 4.5

  5. tlaukkanen commented on Apr 16, 2026

    @tlaukkanen

    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.

  6. rekram1-node commented on Apr 16, 2026

    @rekram1-node
    Collaborator

    fix: 348a849

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

Metadata

Metadata

Assignees

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