[PR #12224] fix(opencode): user plugins override built-in plugins for same provider #14127

Closed
opened 2026-02-16 18:18:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12224

State: closed
Merged: No


Fixes #12223

BUILTIN plugins are appended after user plugins in plugin/index.ts. Since ProviderAuth.state() uses fromEntries() (last-write-wins), built-ins silently override user plugins targeting the same provider.

This swaps the order so BUILTIN loads first and user plugins load after, giving user plugins priority.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12224 **State:** closed **Merged:** No --- Fixes #12223 BUILTIN plugins are appended after user plugins in `plugin/index.ts`. Since `ProviderAuth.state()` uses `fromEntries()` (last-write-wins), built-ins silently override user plugins targeting the same provider. This swaps the order so BUILTIN loads first and user plugins load after, giving user plugins priority.
yindo added the pull-request label 2026-02-16 18:18:56 -05:00
yindo closed this issue 2026-02-16 18:18:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14127