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
API doesn't report invalid model errors via event stream #8460
API doesn't report invalid model errors via event stream
Bug
When sending a message via the API with an invalid provider/model ID, no error is surfaced to the client. The session silently goes from busy to idle with no indication that anything went wrong.
Reproduction
Start opencode server
Listen to events: curl http://localhost:4096/event
A session.error event should be published with a message like "Model not found: invalid/some-model. Did you mean: ...?"
Cause
Provider.getModel() is called inside loop() after the HTTP response has already started streaming. The error is thrown but never converted to a session.error event.
Activity
ColeMurray commentedon Feb 9, 2026
dupe of #12738