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

Closed
opened 2026-02-16 17:41:04 -05:00 by yindo · 1 comment
Owner

Originally created by @The-Kinky-Coder on GitHub (Dec 19, 2025).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @The-Kinky-Coder on GitHub (Dec 19, 2025). Originally assigned to: @adamdotdevin on GitHub. ### 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: > <location of opencode-cli.exe> > Click Abort to stop, yadda, yadda, yadda (see attached for full message) <img width="497" height="389" alt="Image" src="https://github.com/user-attachments/assets/a34ebcac-5040-4ddf-8c0d-8778c6d15391" /> 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_
yindo added the windowsbugweb labels 2026-02-16 17:41:04 -05:00
yindo closed this issue 2026-02-16 17:41:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

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

  • #5673: Error opening file for writing

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

@github-actions[bot] commented on GitHub (Dec 19, 2025): This issue might be a duplicate of existing issues. Please check: - #5673: Error opening file for writing Both issues report the same error message during file operations on Windows. Feel free to ignore if your specific case involves different circumstances.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3676