Skip to content

Unable to automatically update Windows desktop application due to opencode-cli.exe remaining open. #5819

Closed as duplicate

Description

@The-Kinky-Coder

Description

Title pretty much says it all. After new nightlies release and opencode desk on windows checks for updates it finds a new update (obv) and prompts the user if they would like to restart and update. However the updater fails to update citing the error:

Error opening file for writing:

Click Abort to stop, yadda, yadda, yadda (see attached for full message)

Image

If I open taskmamanger I can see a background process called "Bun" is still running, checking its props said its opencode-cli.exe, killing this process and then pressing retry in the installer allows the updater to complete the update.

OpenCode version

Just tried updating to v1.0.170 via the installer and still got the issue, has been doing it for a while now.

Steps to reproduce

  1. Install Opencode Desktop Windows
  2. wait 24 hours for new nightlies to release
  3. run Opencode Desktop
  4. Press the update prompt to update the app
  5. Get stuck installing the update until opencode-cli.exe is killed or you cancel the update.

You can also repo this by installing latest version, opening opencode desktop,

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. added
    bug
    on Dec 19, 2025
  2. added
    web
    on Dec 19, 2025
  3. github-actions commented on Dec 19, 2025

    @github-actions
    Contributor

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

    Both issues report the same error message during file operations on Windows. Feel free to ignore if your specific case involves different circumstances.

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

Metadata

Metadata

Assignees

Labels

bugwebwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions