mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix(auth): enable selected manifest provider plugins
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user