Skip to content

It should not be possible to exit opencode while it's silently updating itself to latest release #5111

Closed

Description

@tiberiuichim

Description

I started opencode cli, then quit soon after. Next time I tried to start it, the command was not found because it was in the middle of a self-upgrade which it didn't finish. It would be also a good idea to show a toast message when it's self-updating

OpenCode version

1.0.132

Steps to reproduce

  1. Open opencode when there's an update
  2. stop it really soon after (maybe about 1 second delay)
  3. you may or may not end up with opencode missing on your system.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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

    @github-actions
    Contributor

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

    The core issues appear to be:

    1. Lack of user notification during self-updates (preventing accidental interruption)
    2. No mechanism to prevent exit while critical operations (like upgrades) are in progress
    3. Incomplete update recovery - if the update is interrupted, the installation becomes broken

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

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

    bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions