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
[Bug]: npm plugins not loaded on v1.3.8 — "No plugin targets found", expects "oc-plugin" field in package.json #20139
After upgrading from v1.3.7 to v1.3.8, npm plugins are no longer loaded. Running opencode plugin <name> reports:
No plugin targets found
Expected: "oc-plugin": ["server", "tui"] or tuples like [["tui", { ... }]].
This affects all npm-based plugins that don't declare the new "oc-plugin" field in their package.json, including oh-my-opencode-slim, opencode-mystatus, and superpowers.
Steps to Reproduce
Install v1.3.8 (opencode upgrade v1.3.8)
Have an npm plugin in config (e.g. "plugin": ["oh-my-opencode-slim"])
Run opencode plugin oh-my-opencode-slim
Observe: "No plugin targets found"
Expected Behavior
Plugins that export a valid Plugin function (the previous standard) should be loaded, or there should be a fallback for backward compatibility.
Actual Behavior
Only plugins declaring "oc-plugin": ["server"] in package.json are loaded. The entire ecosystem of existing plugins is broken.
Workaround
Downgrade to v1.3.7:
opencode upgrade v1.3.7
bunx oh-my-opencode-slim@latest install --reset --no-tui
After downgrade, all plugins load normally.
Environment
- macOS Apple Silicon
- OpenCode v1.3.8 (broken) / v1.3.7 (working)
- Plugin: oh-my-opencode-slim 0.9.0
Additional Context
The PluginModule typein @opencode-ai/plugin@1.3.8 now expects { server: Plugin } instead of a bare Plugin export. This appears to be introduced in v1.3.4 ("Add single target plugin entrypoints") but plugins in the ecosystem haven't adapted yet.### Pluginsoh-my-opencode-slim 0.9.0### OpenCode versionv1.3.8### Steps to reproduceSteps to ReproduceInstall v1.3.8 (opencode upgrade v1.3.8)Have an npm plugin in config (e.g. "plugin": ["oh-my-opencode-slim"])Run opencode plugin oh-my-opencode-slimObserve: "No plugin targets found"Expected BehaviorPlugins that export a valid Plugin function (the previous standard) should be loaded, or there should be a fallback for backward compatibility.Actual BehaviorOnly plugins declaring "oc-plugin": ["server"] in package.json are loaded. The entire ecosystem of existing plugins is broken.### Screenshot and/or share link_No response_### Operating SystemmacOS Apple Silicon### Terminal_No response_
Activity
erkanercan commentedon Mar 30, 2026
A workaround and temporary fix for the same related issue at griffinmartin/opencode-claude-auth#101 (comment)
erkanercan commentedon Mar 30, 2026
jd-apprentice commentedon Apr 2, 2026
Seems fixed in https://github.com/anomalyco/opencode/releases/tag/v1.3.9
DenisBalan commentedon Apr 25, 2026
same happening now
github-actions commentedon Jul 4, 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.