Most sessions eventually gets an tool_use error #5621

Open
opened 2026-02-16 17:54:50 -05:00 by yindo · 0 comments
Owner

Originally created by @arielpollack on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @arielpollack on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="1140" height="140" alt="Image" src="https://github.com/user-attachments/assets/f0d477cc-f82e-46de-86d6-bc649e357376" /> When I `/share` there's an error "Failed to share session" ### Operating System maxOS 15.7.3 ### Terminal Warp
yindo added the bug label 2026-02-16 17:54:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5621