Skip to content

"OpenAI Chat stream ended without finish_reason" #56858

Closed as not planned
Closed as not planned

Description

@badelon

Description

Image

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

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 18, 2026

    @opencode-agent
    Contributor

    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:

  2. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    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:

    Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions