Skip to content

Process sometimes doesn't close after response is finished #4384

Closed

Description

@JimmyBenHur

Description

I am using a local model with LM Studio, and sometimes (not always) OpenCode waits for further responses, even after it was already finished. You can see this in the interactive as well as the headless mode, where the process also stays open. I then have to abort the operation myself.

To clarify: I do get the actual response, but the process simply doesn't stop after receiving the response.

OpenCode version

1.0.67

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 16, 2025
  2. github-actions commented on Nov 16, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Collaborator

    @JimmyBenHur I think this is a preceived hang just because it is waiting for the step-stop, if it is a local llm these things take longer so even though it looks "done" the code is still pending until the llm says it is done

    With faster models or providers this shouldn't be an issue

  4. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Collaborator

    can u replicate it consistently? Maybe show opencode run hello --print-logs

  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 16, 2025
  6. self-assigned this
    on Nov 16, 2025
  7. JimmyBenHur commented on Nov 16, 2025

    @JimmyBenHur
    Author

    Might be a hang, but I already waited a few minutes and the process wouldn't close.
    I'm trying to reproduce it with logs, but right now it's working. Will send them as soon as I can reproduce it.
    I had the issue with Qwen3 Coder, that's already a pretty fast model I think.

  8. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Collaborator

    Yeah lmk if u get it again

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions