Skip to content

Error when updating open code desktop #5882

Closed as duplicate
Closed as duplicate

Description

@hackall360

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

Activity

  1. added
    bug
    on Dec 21, 2025
  2. changed the title [-]Error when upding open code desktop[/-] [+]Error when updating open code desktop[/+] on Dec 21, 2025
  3. added
    web
    on Dec 21, 2025
  4. github-actions commented on Dec 21, 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.

  5. hackall360 commented on Dec 21, 2025

    @hackall360
    Author

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

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