Skip to content

Error opening file for writing #5673

Closed
Closed

Description

@PierrunoYT
Image

Activity

  1. github-actions commented on Dec 17, 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.

  2. self-assigned this
    on Dec 17, 2025
  3. peteretelej commented on Dec 19, 2025

    @peteretelej

    This is an issue impacting upgrade of OpenCode Desktop on Windows.
    All the upgrade flows will fail with: Error opening file for writing: with the AppData path for opencode-cli.exe. The impacted flows being: automated update directly on the app itself, or directly installing the new setup to upgrade, or re-installing)

    The cause seems to be that those flows don't properly uninstall the existing instance before attempting to add the new one.

    Workaround: Uninstall OpenCode using Control Panel and install the new version (download from https://opencode.ai/download) (should clear the previous binaries and allow them to be replaced)

    Another option would be to kill the running opencode-cli.exe instance. You'll find the older version running on your Task Manager (but it's called "Bun", you can search for "opencode" in processes to get the correct one. Killing this, will unblock the update if you select Retry.

    Actual fix may need a review of the upgrade flow to properly cleanup the existing resources.

  4. added
    web
    on Dec 19, 2025
  5. rekram1-node commented on Dec 19, 2025

    @rekram1-node
    Member

    Working through a bunch of windows things, we hope to get this to better state real soon for yall, thanks!

  6. Jacko1394 commented on Apr 6, 2026

    @Jacko1394

    This morning

    Image
  7. lomirus commented on Apr 27, 2026

    @lomirus

    Upgrading from v1.14.25 to v1.14.28:

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

Metadata

Metadata

Assignees

Labels

webwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions