Skip to content

Plugin loader loop stops processing plugins after oh-my-opencode loads #18094

Closed as not planned

Description

@JlMoreno00

Description

The plugin loader loop in packages/opencode/src/plugin/index.ts stops iterating after oh-my-opencode@latest is loaded. All plugins listed after it in the plugin config array are silently skipped — no log entry, no error.

Reproduction

  1. Add multiple plugins to opencode.json:
{
  "plugin": [
    "oh-my-opencode@latest",
    "opencode-image-compact",
    "opencode-mem"
  ]
}
  1. Start OpenCode and check the log at ~/.local/share/opencode/log/:
INFO service=plugin path=opencode-anthropic-auth@0.0.13 loading plugin
INFO service=plugin path=oh-my-opencode@latest loading plugin
INFO service=plugin path=file:///...wakatime.js loading plugin    ← jumps to local plugins
  1. opencode-image-compact and opencode-mem never appear — not even the log.info("loading plugin") line that fires before any install/import attempt.

Expected behavior

All plugins in the config array should be loaded (or produce an error log if they fail). The log.info("loading plugin", { path: plugin }) on line 65 should fire for every plugin that isn't explicitly skipped by the includes() check.

Analysis

The for-loop at line 62 iterates plugins array. After oh-my-opencode@latest is processed (install + import + init, ~1113ms), the loop should continue to the next plugin. Instead, it jumps directly to local file plugins.

The import().then().catch() chain on lines 80-95 should handle all errors from the import and initialization. But something in oh-my-opencode's loading appears to break the loop without triggering the catch handler.

Workaround

Reorder the plugin array to place other plugins before oh-my-opencode@latest:

{
  "plugin": [
    "opencode-image-compact",
    "oh-my-opencode@latest"
  ]
}

Environment

  • OpenCode: 1.2.27
  • OS: macOS (darwin arm64)
  • oh-my-opencode: latest (3.12.3 in cache)

Activity

  1. github-actions commented on Mar 18, 2026

    @github-actions
    Contributor

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

    • Only last plugin in config array is loaded (OpenCode 1.2.15) #15591: Describes a similar symptom where only some plugins in the config array are loaded — that issue reports only the last plugin loads, while this issue narrows it down to plugins listed after oh-my-opencode@latest being skipped. These may be related or the same root cause.
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 18, 2026
  3. deadnessking commented on Apr 15, 2026

    @deadnessking

    Still not loading plugins properly in v1.4.6
    /status shows oh-my-openagent@last already loaded, but I can only see build&plan agents

    ERROR 2026-04-15T09:27:12 +4ms service=plugin pkg=oh-my-openagent version=latest error=request to https://registry.npmjs.org/oh-my-openagent failed, reason: fetch() proxy.url must be a non-empty string failed to install plugin
    

    Maybe I should unset HTTP_PROXY HTTPS_PROXY ALL_PROXY ?

  4. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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