fix(auth): enable selected manifest provider plugins

This commit is contained in:
Ayaan Zaidi
2026-04-29 17:32:44 +05:30
parent 17d05269f9
commit 9bf7b6bfca

View File

@@ -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,