Skip to content

[Bug]: npm plugins not loaded on v1.3.8 — "No plugin targets found", expects "oc-plugin" field in package.json #20139

Description

@alexzoo

Description

Description

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

  1. Install v1.3.8 (opencode upgrade v1.3.8)
  2. Have an npm plugin in config (e.g. "plugin": ["oh-my-opencode-slim"])
  3. Run opencode plugin oh-my-opencode-slim
  4. 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 type in @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.

### Plugins

oh-my-opencode-slim 0.9.0

### OpenCode version

v1.3.8

### Steps to reproduce

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.

### Screenshot and/or share link

_No response_

### Operating System

macOS Apple Silicon

### Terminal

_No response_

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions