OpenCode now treats empty model turns as errors instead of successful assistant replies

CyberPunk-2022 · ghdev · 2026-07-19

OpenCode now surfaces empty provider responses as errors

This PR changes OpenCode's session handling so that if a provider returns stop plus usage data but no text and no tool call, the turn is no longer recorded as a successful assistant response. Instead, OpenCode stores an EmptyResponseError and emits a session error event.

Key points

Original post →

More from coding & agent

coding & agent channel →