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
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
Not much helpful context on why I received this unfortunately. Everything working fine prior. Claude Sonnet 4 model. Opencode v0.5.18
After it occurs, the session is borked going forward. New messages result in the same error. Restarting opencode and resuming the session doesn't change anything.
It looks like /undo one message before the error started to occur does resolve the issue. (Though obviously losing the results of that message which was actually successful.)
Reacted by Braden Steffaniak
Reacted by Duncan Ogilvie and Prayson Wilfred Daniel
Activity
garrett-hopper commentedon Aug 25, 2025
Not much helpful context on why I received this unfortunately. Everything working fine prior. Claude Sonnet 4 model. Opencode v0.5.18
After it occurs, the session is borked going forward. New messages result in the same error. Restarting opencode and resuming the session doesn't change anything.
garrett-hopper commentedon Aug 25, 2025
It looks like
/undoone message before the error started to occur does resolve the issue. (Though obviously losing the results of that message which was actually successful.)thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.