fix(auth): enable selected manifest provider plugins · openclaw/openclaw@9bf7b6b
obviyus
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -296,10 +296,15 @@ export async function applyAuthChoiceLoadedPluginProvider(
|
296 | 296 | env: params.env, |
297 | 297 | includeUntrustedWorkspacePlugins: false, |
298 | 298 | }); |
299 | | -if (installCatalogEntry) { |
300 | | -const enableResult = enablePluginInConfig(nextConfig, installCatalogEntry.pluginId); |
| 299 | +const choicePlugin = manifestAuthChoice |
| 300 | + ? { pluginId: manifestAuthChoice.pluginId, label: manifestAuthChoice.choiceLabel } |
| 301 | + : installCatalogEntry |
| 302 | + ? { pluginId: installCatalogEntry.pluginId, label: installCatalogEntry.label } |
| 303 | + : undefined; |
| 304 | +if (choicePlugin) { |
| 305 | +const enableResult = enablePluginInConfig(nextConfig, choicePlugin.pluginId); |
301 | 306 | if (!enableResult.enabled) { |
302 | | -const safeLabel = sanitizeTerminalText(installCatalogEntry.label); |
| 307 | +const safeLabel = sanitizeTerminalText(choicePlugin.label); |
303 | 308 | await params.prompter.note( |
304 | 309 | `${safeLabel} plugin is disabled (${enableResult.reason ?? "blocked"}).`, |
305 | 310 | safeLabel, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。