You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Most sessions eventually gets an tool_use error #8377
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
When I /share there's an error "Failed to share session"
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.
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
tool_useids were found withouttool_resultblocks immediately after #1662: AI_APICallError:tool_useids were found withouttool_resultblocks immediately aftertool_useids were found withouttool_resultblocks immediately after: toolu_01G5ipgNZWmDHuV6cvzyQpfH. Eachtool_useblock must have a correspondingtool_resultblock in the next message. #2214: Same error occurring during normal usage with tool_use blocksids were found withouttool_result` blocks #4802: Another instance of the sametool_useids were found withouttool_resultblocks errortool_useblock must have a correspondingtool_resultblock in the next message" when interrupting Sonnet 4.5 convo during tool call #3230: Same error when interrupting Sonnet 4.5 conversation during tool callFeel free to ignore if none of these address your specific case.
ikx94 commentedon Jan 25, 2026
Happens to me too, very frequently.
rekram1-node commentedon Jan 25, 2026
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 :)
jethroguce commentedon Feb 19, 2026
also experienced it today multiple times, using claude opus 4.5
tlaukkanen commentedon Apr 16, 2026
Experienced today with Claude Opus 4.6 and with latest OpenCode 1.4.6
rekram1-node commentedon Apr 16, 2026
fix: 348a849