Repository navigation
Most sessions eventually gets an tool_use error #8377
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Activity
github-actions commented
on Jan 14, 2026 on Jan 14, 2026 – with GitHub ActionsContributorMore actionsThis 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_useids were found withouttool_resultblocks immediately after #1662: AI_APICallError:tool_useids were found withouttool_resultblocks immediately after - AI_APICallError: messages.3:
tool_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 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 withouttool_result` blocks #4802: Another instance of the sametool_useids were found withouttool_resultblocks error - "Each
tool_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 call
Feel free to ignore if none of these address your specific case.
Happens to me too, very frequently.
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 :)
also experienced it today multiple times, using claude opus 4.5
Reacted by Stanislav U.Experienced today with Claude Opus 4.6 and with latest OpenCode 1.4.6
Bad Request: messages.41:
tool_useids were found withouttool_resultblocks immediately after: toolu_bdrk_01CLWZAHTRLATDLvLoQHUcnC. Eachtool_useblock must have a correspondingtool_resultblock in the next message.fix: 348a849
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
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)
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
/sharethere's an error "Failed to share session"Operating System
maxOS 15.7.3
Terminal
Warp