[PR #13289] fix(provider): filter custom loaders by enabled/disabled providers #14596

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

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

State: open
Merged: No


Fixes #12407

Summary

  • Apply isProviderAllowed(providerID) in the CUSTOM_LOADERS loop
  • Prevent custom loaders from running for providers excluded by enabled_providers

Why

CUSTOM_LOADERS previously skipped only disabled_providers, so excluded providers could still run loader side effects (including package install attempts) before final provider filtering.

Scope

  • packages/opencode/src/provider/provider.ts (single-line logic fix)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13289 **State:** open **Merged:** No --- Fixes #12407 ## Summary - Apply `isProviderAllowed(providerID)` in the `CUSTOM_LOADERS` loop - Prevent custom loaders from running for providers excluded by `enabled_providers` ## Why `CUSTOM_LOADERS` previously skipped only `disabled_providers`, so excluded providers could still run loader side effects (including package install attempts) before final provider filtering. ## Scope - `packages/opencode/src/provider/provider.ts` (single-line logic fix)
yindo added the pull-request label 2026-02-16 18:19:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14596