[PR #10065] fix(opencode): merge authentication methods from all matching plugins #13319

Open
opened 2026-02-16 18:18:11 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


What does this PR do?

Previously, the auth command used .find() to locate the first plugin matching a provider. This allowed plugins loaded earlier to "shadow" others (e.g., opencode-websearch-cited shadowing opencode-gemini-auth), preventing OAuth options from being displayed.

This change:

  • Updates auth login to collect all matching plugins and merge their methods.
  • Adds robust type checking and error handling to the plugin loader to prevent malformed plugins from breaking the system.

Fixes #10063

How did you verify your code works?

  • run bun dev auth login
  • select Goolge
  • choose Oauth
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10065 **State:** open **Merged:** No --- ### What does this PR do? Previously, the auth command used `.find()` to locate the first plugin matching a provider. This allowed plugins loaded earlier to "shadow" others (e.g., `opencode-websearch-cited` shadowing `opencode-gemini-auth`), preventing OAuth options from being displayed. This change: - Updates `auth login` to collect all matching plugins and merge their methods. - Adds robust type checking and error handling to the plugin loader to prevent malformed plugins from breaking the system. Fixes #10063 ### How did you verify your code works? - run `bun dev auth login` - select Goolge - choose Oauth
yindo added the pull-request label 2026-02-16 18:18:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13319