Skip to content

fix(plugin): user plugins override built-in plugins for same provider#12361

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
rmk40:fix/user-plugin-override
Feb 5, 2026
Merged

fix(plugin): user plugins override built-in plugins for same provider#12361
rekram1-node merged 1 commit intoanomalyco:devfrom
rmk40:fix/user-plugin-override

Conversation

@rmk40
Copy link
Contributor

@rmk40 rmk40 commented Feb 5, 2026

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. The only workaround is OPENCODE_DISABLE_DEFAULT_PLUGINS=1.

This swaps the order so BUILTIN loads first and user plugins load after, giving user plugins natural priority via last-write-wins.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node merged commit 09a0e92 into anomalyco:dev Feb 5, 2026
6 checks passed
rekram1-node added a commit that referenced this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: User plugins should override built-in plugins for the same provider

2 participants