Opencode fails to start after autoupdate on Windows #9179

Open
opened 2026-02-16 18:11:49 -05:00 by yindo · 1 comment
Owner

Originally created by @tnglemongrass on GitHub (Feb 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Upgrading vom 1.1.60 to 1.1.61 via autoupdate: true breaks the installed opencode.

Steps:

  1. open opencode.cmd (built-in Windows terminal app)
  2. noticing in terminal title that something is going on 'npm upgrade to 1.1.61' or similar
  3. exit via ctrl-c
  4. open opencode.cmd again

Expected behavior:
opencode should start

Actual Behavior:
opencode.cmd fails to start, terminal shows first EBUSY, then package manager failed to install the right version:

PS C:\tmp> opencode.cmd
PS C:\tmp> opencode.cmd
spawnSync C:\Users\tnglemongrass\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe EBUSY
PS C:\tmp> opencode.cmd
It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "opencode-windows-x64" package

I already tried to upgrade this morning to 1.1.60 via opencode.cmd upgrade, and it broke installation as well.
That's why I did a full installation via npm install -g opencode-ai.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

builtin Windows Terminal app

Originally created by @tnglemongrass on GitHub (Feb 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Upgrading vom 1.1.60 to 1.1.61 via `autoupdate: true` breaks the installed opencode. **Steps:** 1. open opencode.cmd (built-in Windows terminal app) 2. noticing in terminal title that something is going on 'npm upgrade to 1.1.61' or similar 3. exit via ctrl-c 4. open opencode.cmd again **Expected behavior:** opencode should start **Actual Behavior:** `opencode.cmd` fails to start, terminal shows first `EBUSY`, then `package manager failed to install the right version`: ```shell PS C:\tmp> opencode.cmd PS C:\tmp> opencode.cmd spawnSync C:\Users\tnglemongrass\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe EBUSY PS C:\tmp> opencode.cmd It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "opencode-windows-x64" package ``` I already tried to upgrade this morning to 1.1.60 via `opencode.cmd upgrade`, and it broke installation as well. That's why I did a full installation via `npm install -g opencode-ai`. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal builtin Windows Terminal app
yindo added the windowsbug labels 2026-02-16 18:11:49 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2026):


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

  • #13311: Windows Background upgrade corruption issue - similar autoupdate corruption issue on Windows 11
  • #8023: Same error message about "package manager failed to install the right version of the opencode CLI for your platform"

These issues all involve Windows installation/update failures with similar error signatures (EBUSY, EFAULT). If you're still experiencing this after a full reinstall, please let us know with any additional details.

@github-actions[bot] commented on GitHub (Feb 12, 2026): --- This issue might be a duplicate of existing issues. Please check: - #13311: Windows Background upgrade corruption issue - similar autoupdate corruption issue on Windows 11 - #8023: Same error message about "package manager failed to install the right version of the opencode CLI for your platform" These issues all involve Windows installation/update failures with similar error signatures (EBUSY, EFAULT). If you're still experiencing this after a full reinstall, please let us know with any additional details.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9179