[Bug]: Only the last plugin loads in OpenCode 1.1.32 - Multiple plugins not supported #7251

Open
opened 2026-02-16 18:06:35 -05:00 by yindo · 1 comment
Owner

Originally created by @lofibrainwav on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

Bug Description

When multiple plugins are configured in opencode.json, only the last plugin in the array is loaded. All preceding plugins are silently ignored.

Environment

  • OpenCode Version: 1.1.32
  • OS: macOS Darwin 25.3.0 (Apple Silicon)
  • Installation: /Applications/OpenCode.app

Steps to Reproduce

  1. Configure multiple plugins in ~/.config/opencode/opencode.json:
{
  "plugin": [
    "opencode-wakatime",
    "opencode-discord-notify",
    "opencode-supermemory"
  ]
}
  1. Run opencode debug config

  2. Observe that only the last plugin is loaded:

"plugin": [
  "file:///.../.config/opencode/node_modules/opencode-supermemory/dist/index.js"
]

Test Results

Configuration Expected Actual
[wakatime, discord] Both loaded Only discord
[wakatime, discord, supermemory] All 3 loaded Only supermemory
[antigravity-auth, oh-my-opencode] Both loaded Only oh-my-opencode
[oh-my-opencode, antigravity-auth] Both loaded Only antigravity-auth

Expected Behavior

All plugins in the array should be loaded and functional.

Actual Behavior

Only the last plugin in the array is loaded. Previous plugins are silently filtered out without any error or warning in the logs.

Debug Logs

Running with --print-logs --log-level DEBUG shows no errors - the preceding plugins simply don't appear in plugin loading logs.

Workaround

Currently using only one plugin (oh-my-opencode) as the sole entry.

Additional Context

  • This appears to be a regression - plugins worked previously
  • No error messages are shown - silent failure makes debugging difficult
  • Tested with various plugin combinations (auth plugins, utility plugins) - same behavior

Reported via Claude Code

Originally created by @lofibrainwav on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ## Bug Description When multiple plugins are configured in `opencode.json`, only the **last plugin** in the array is loaded. All preceding plugins are silently ignored. ## Environment - **OpenCode Version**: 1.1.32 - **OS**: macOS Darwin 25.3.0 (Apple Silicon) - **Installation**: `/Applications/OpenCode.app` ## Steps to Reproduce 1. Configure multiple plugins in `~/.config/opencode/opencode.json`: ```json { "plugin": [ "opencode-wakatime", "opencode-discord-notify", "opencode-supermemory" ] } ``` 2. Run `opencode debug config` 3. Observe that only the **last** plugin is loaded: ```json "plugin": [ "file:///.../.config/opencode/node_modules/opencode-supermemory/dist/index.js" ] ``` ## Test Results | Configuration | Expected | Actual | |--------------|----------|--------| | `[wakatime, discord]` | Both loaded | Only `discord` | | `[wakatime, discord, supermemory]` | All 3 loaded | Only `supermemory` | | `[antigravity-auth, oh-my-opencode]` | Both loaded | Only `oh-my-opencode` | | `[oh-my-opencode, antigravity-auth]` | Both loaded | Only `antigravity-auth` | ## Expected Behavior All plugins in the array should be loaded and functional. ## Actual Behavior Only the last plugin in the array is loaded. Previous plugins are silently filtered out without any error or warning in the logs. ## Debug Logs Running with `--print-logs --log-level DEBUG` shows no errors - the preceding plugins simply don't appear in plugin loading logs. ## Workaround Currently using only one plugin (oh-my-opencode) as the sole entry. ## Additional Context - This appears to be a regression - plugins worked previously - No error messages are shown - silent failure makes debugging difficult - Tested with various plugin combinations (auth plugins, utility plugins) - same behavior --- *Reported via Claude Code*
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

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

  • #10063: Plugin OAuth auth methods silently ignored (shadowed by other plugins) - describes plugins being shadowed when multiple plugins are configured
  • #6261: Multiple plugins registering auth for the same provider silently overwrite each other - also covers the issue of only one plugin's methods being available
  • #8759: file:// plugins with same filename incorrectly deduplicated - describes deduplication issues preventing multiple plugins from loading

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #10063: Plugin OAuth auth methods silently ignored (shadowed by other plugins) - describes plugins being shadowed when multiple plugins are configured - #6261: Multiple plugins registering auth for the same provider silently overwrite each other - also covers the issue of only one plugin's methods being available - #8759: file:// plugins with same filename incorrectly deduplicated - describes deduplication issues preventing multiple plugins from loading Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7251