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,