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
"OpenAI Chat stream ended without finish_reason" #56858
so basically i have bad connection and opencode hangs and not continue.
but it still shows as its generating
i must stop it by pressing esc
then i must type continue so agent to continue working
whis is inconvinient
Thanks for the report! I'd like to look into why the session keeps showing as generating instead of recovering. Could you add a few details?
OpenCode version (opencode --version)
Provider and model you were using (e.g. OpenCode Go / Zen, OpenRouter, a custom OpenAI-compatible endpoint), since this error often depends on the provider
OS and terminal
What the session shows when it gets stuck: do you see a Retry due · attempt N banner that then stops changing, or does the error appear once and then nothing else happens? Roughly how long did you wait before pressing Esc?
You can reply here with the details or edit the issue. If you edit it, please also leave a short comment saying you've updated it, so we know you're done.
These existing issues look related, ordered by likelihood, in case one of them already covers your problem:
We haven't heard back about the details we asked for, so I'm closing this issue for now. To look into the session staying on "generating" after OpenAI Chat stream ended without finish_reason, we need your OpenCode version, the provider and model you were using, and whether a Retry due banner appears before it stops.
If it happens again, please reply with those details and we'll reopen this. These issues may also cover the same problem and are worth following:
Activity
opencode-agent commentedon Oct 18, 2026
Thanks for the report! I'd like to look into why the session keeps showing as generating instead of recovering. Could you add a few details?
opencode --version)Retry due · attempt Nbanner that then stops changing, or does the error appear once and then nothing else happens? Roughly how long did you wait before pressing Esc?You can reply here with the details or edit the issue. If you edit it, please also leave a short comment saying you've updated it, so we know you're done.
These existing issues look related, ordered by likelihood, in case one of them already covers your problem:
OpenAI Chat stream ended without finish_reasonand repeated retries (OpenCode Go)finish_reasoninopencode runopencode-agent commentedon Oct 21, 2026
We haven't heard back about the details we asked for, so I'm closing this issue for now. To look into the session staying on "generating" after
OpenAI Chat stream ended without finish_reason, we need your OpenCode version, the provider and model you were using, and whether aRetry duebanner appears before it stops.If it happens again, please reply with those details and we'll reopen this. These issues may also cover the same problem and are worth following:
finish_reason, with repeated retriesThanks for the report!