From 9bf7b6bfcadcb9da9fe5264351e68900e4b99cc9 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Wed, 29 Apr 2026 17:32:44 +0530 Subject: [PATCH] fix(auth): enable selected manifest provider plugins --- src/plugins/provider-auth-choice.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/provider-auth-choice.ts b/src/plugins/provider-auth-choice.ts index 239debee82c..fbcea0c0449 100644 --- a/src/plugins/provider-auth-choice.ts +++ b/src/plugins/provider-auth-choice.ts @@ -296,10 +296,15 @@ export async function applyAuthChoiceLoadedPluginProvider( env: params.env, includeUntrustedWorkspacePlugins: false, }); - if (installCatalogEntry) { - const enableResult = enablePluginInConfig(nextConfig, installCatalogEntry.pluginId); + const choicePlugin = manifestAuthChoice + ? { pluginId: manifestAuthChoice.pluginId, label: manifestAuthChoice.choiceLabel } + : installCatalogEntry + ? { pluginId: installCatalogEntry.pluginId, label: installCatalogEntry.label } + : undefined; + if (choicePlugin) { + const enableResult = enablePluginInConfig(nextConfig, choicePlugin.pluginId); if (!enableResult.enabled) { - const safeLabel = sanitizeTerminalText(installCatalogEntry.label); + const safeLabel = sanitizeTerminalText(choicePlugin.label); await params.prompter.note( `${safeLabel} plugin is disabled (${enableResult.reason ?? "blocked"}).`, safeLabel,