Repository navigation
Description
[Desktop][Windows] v1.18.13 still repeatedly tries to install non-existent @opencode-ai/plugin@local on every startup
Summary
OpenCode Desktop (Windows, v1.18.13, latest as of 2026-08-05) still attempts to install @opencode-ai/plugin@local on every startup / agent open. local is not a published version or dist-tag on npm, so every attempt fails with NpmInstallFailedError. On my machine this happens ~10 times per launch (bursts of 7-9 failures within 1-2 seconds), each attempt triggering the desktop "error" alert sound and adding seconds of startup latency.
This was previously reported in #26003 (closed automatically after 60 days of inactivity, not fixed), #27676, #30197. It is still reproducible on v1.18.13.
Environment
| Field | Value |
|---|---|
| OS | Windows 11 |
| Client | OpenCode Desktop (Electron) |
| Desktop version | 1.18.13 (also reproduced on 1.18.11) |
| Bundled Node | v24.16.0 |
Steps to reproduce
- Install OpenCode Desktop 1.18.13 on Windows.
- Open the app (or switch to an agent). Watch the UI / listen for the error alert sound.
- Check
%USERPROFILE%\.local\share\opencode\log\opencode.log.
Observed log (2026-08-05, ~10 failures on this launch)
timestamp=2026-08-05T02:10:26.771Z level=WARN run=fd26596d message="background dependency install failed" dir="C:\\Users\\RALF\\.opencode" error="Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.))])"
timestamp=2026-08-05T02:10:27.182Z level=WARN run=fd26596d message="background dependency install failed" dir="C:\\Users\\RALF\\.opencode" error="Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.))])"
timestamp=2026-08-05T02:10:27.261Z level=WARN run=fd26596d message="background dependency install failed" dir="C:\\Users\\RALF\\Documents\\OPENCODE\\临时\\.opencode" error="Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.))])"
... (7 more within the same second)
Affected directories on this machine: C:\Users\RALF\.opencode (425+ historical failures), C:\Users\RALF\Documents\OPENCODE\临时\.opencode (45+). The directories contain only .gitignore, skills/, commands/ — no package.json at all, yet the dependency installer still runs npm install @opencode-ai/plugin@local.
Root cause (from #26003 analysis, still unfixed)
packages/core/src/installation/version.ts:export const InstallationVersion = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local"
- The Desktop release is built without injecting
OPENCODE_VERSION, soInstallationVersionfalls back to"local". packages/opencode/src/config/config.tsthen pins@opencode-ai/plugintoInstallationVersion→@opencode-ai/plugin@local, which does not exist on the npm registry.- A local
package.jsonwith a valid version (e.g."@opencode-ai/plugin": "1.18.11") does not help — the installer passes@localexplicitly and ignores the manifest.
Impact
- Audible: every failed install triggers the desktop "Play sound when an error occurs" alert → the well-known burst of 7-9 beeps on startup (related: [Desktop] Repeated error alert sounds on startup caused by unhandled node-pty AttachConsole failure #32389).
- Performance: each failed
npm installtakes several seconds; multiple projects × repeated retries add ~20-40s of startup latency (related: .opencode/package.json references non-existent @opencode-ai/plugin@local causing warnings and ~30s startup delay #27676 measured ~30s). - Log noise: dozens of WARN lines per day.
Expected behavior
The Desktop build should be produced with OPENCODE_VERSION (and OPENCODE_CHANNEL) defined, so dependency installs use a real published version like @opencode-ai/plugin@1.18.13. Alternatively, skip the dependency-install step entirely when no package.json/plugin files exist in the .opencode directory.
Suggested tags
desktop, windows, performance, bug
Activity
github-actions commentedon Aug 5, 2026
This issue might be a duplicate of several existing open issues reporting the same
@opencode-ai/plugin@localinstall failure. Please check:@opencode-ai/plugin@local(opened 2026-08-04, 1 day ago)@opencode-ai/plugin@local(regression of Electron sidecar: npm plugins fail to load — peer dep @opencode-ai/plugin resolves as @local #26085)@opencode-ai/plugin@localnpm install @opencode-ai/plugin@localfails on every project dir — OPENCODE_VERSION not injected in packaged build@opencode-ai/plugin@localThe root cause and fix you describe are the same across all of these. Consider adding a
+1or reaction to the existing open issues rather than filing a new one, to help maintainers prioritize.github-actions commentedon Oct 6, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.