You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop v1.18.9: npm plugin install still fails with @opencode-ai/plugin@local (regression of #26085) #39543
OpenCode Desktop v1.18.9 (Windows 11, Electron) still fails to load npm plugins. The sidecar resolves @opencode-ai/plugin peer dependency as @local, which does not exist in the npm registry, causing NpmInstallFailedError. Plugins registered in ~/.config/opencode/opencode.json never load — no agents, no hooks, no tools from plugins.
This appears to be a regression or incomplete fix of #26085 (closed).
Environment
OpenCode Desktop: v1.18.9 (packaged: true)
OS: Windows 11
Plugin: oh-my-openagent@latest (v4.19.3+)
Config location: ~/.config/opencode/opencode.json
Reproduction
Install OpenCode Desktop v1.18.9
Add to ~/.config/opencode/opencode.json:
{
"plugin": ["oh-my-openagent@latest"]
}
Launch Desktop
Observe: only native build and plan agents available; no plugin agents (Sisyphus, etc.)
Error Log
From ~/.local/share/opencode/log/opencode.log:
timestamp=2026-07-29T15:16:33.344Z level=WARN run=da74ead9 message="background dependency install failed" dir="C:\\Users\\godboss\\.config\\opencode" error="Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.))])"
The sidecar spawns successfully (sidecar connection started { version: 'v1' }) and the server is ready, but the plugin npm install fails silently (only a WARN log, no user-facing error).
Expected Behavior
Plugins listed in opencode.json should load correctly. If install fails, the error should be surfaced to the user (toast/dialog), not silently swallowed.
Workaround
Side-load the plugin via the ~/.config/opencode/plugins/ directory, which bypasses the npm install entirely:
If your issue is the same underlying problem, please consider adding a +1 or additional context to one of those existing reports rather than opening a new one.
Activity
github-actions commentedon Jul 29, 2026
This issue might be a duplicate of existing issues. Please check:
NpmInstallFailedError for @opencode-ai/plugin@localstartup warning@opencode-ai/plugin@localwhich is not a published npm version@opencode-ai/plugin@localfails becauseOPENCODE_VERSIONis not injected in packaged Desktop buildsbackground dependency install fails every session with @opencode-ai/plugin@local not found@opencode-ai/plugin@localnpm install failure@opencode-ai/plugin@localversion not foundIf your issue is the same underlying problem, please consider adding a
+1or additional context to one of those existing reports rather than opening a new one.kai-kleinbard-tyto commentedon Jul 30, 2026
Closing as duplicate of #37806 — same npm plugin install regression.
github-actions commentedon Sep 29, 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.