Error when updating open code desktop #3714

Closed
opened 2026-02-16 17:41:12 -05:00 by yindo · 2 comments
Owner

Originally created by @hackall360 on GitHub (Dec 20, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Description

When clicking "Install and restart" on the desktop version of Open Code, it errors saying it cannot modify a file. It cannot modify files where it was installed, because those files are still open. I have to open the task manager and close any and all bun instances, then click retry, and it installs and restarts properly afterwards.

OS -- Windows 11 workstation pro, using Open Code Desktop

I think this might be a fairly simple fix on the installer, if you just look for any instances of "Bun" after open code has been closed, and close those instances, before the installer actually tries to open or modify the files.

OpenCode version

All Desktop Versions -- Updated to the latest at 7:40 PM PST on 12/20/25

Steps to reproduce

  1. Wait for an update on open code
  2. Click update and restart on open code
  3. Error pops up saying "Cannot open the file for editing"
    --- Workaround ---
  4. Go to task manager
  5. Close all instances of "Bun"
  6. Wait 1-5 seconds
  7. Click "retry" on the installer

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Desktop Open Code

Originally created by @hackall360 on GitHub (Dec 20, 2025). Originally assigned to: @adamdotdevin on GitHub. ### Description When clicking "Install and restart" on the desktop version of Open Code, it errors saying it cannot modify a file. It cannot modify files where it was installed, because those files are still open. I have to open the task manager and close any and all bun instances, then click retry, and it installs and restarts properly afterwards. OS -- Windows 11 workstation pro, using Open Code Desktop I think this might be a fairly simple fix on the installer, if you just look for any instances of "Bun" after open code has been closed, and close those instances, before the installer actually tries to open or modify the files. ### OpenCode version All Desktop Versions -- Updated to the latest at 7:40 PM PST on 12/20/25 ### Steps to reproduce 1. Wait for an update on open code 2. Click update and restart on open code 3. Error pops up saying "Cannot open the file for editing" --- Workaround --- 1. Go to task manager 2. Close all instances of "Bun" 3. Wait 1-5 seconds 4. Click "retry" on the installer ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Desktop Open Code
yindo added the windowsbugweb labels 2026-02-16 17:41:12 -05:00
yindo closed this issue 2026-02-16 17:41:12 -05:00
Author
Owner

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

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

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

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

@github-actions[bot] commented on GitHub (Dec 20, 2025): This issue might be a duplicate of existing issues. Please check: - #5819: Unable to automatically update Windows desktop application due to opencode-cli.exe remaining open. Feel free to ignore if none of these address your specific case.
Author
Owner

@hackall360 commented on GitHub (Dec 20, 2025):

My bad, duplicate of an issue that was posted twice -- each with more context.

@hackall360 commented on GitHub (Dec 20, 2025): My bad, duplicate of an issue that was posted twice -- each with more context.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3714