mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 18:00:23 +00:00
fix(regression): widen preseeded cli plugin registry loads
This commit is contained in:
@@ -37,11 +37,12 @@ export function ensurePluginRegistryLoaded(options?: { scope?: PluginRegistrySco
|
||||
// Tests (and callers) can pre-seed a registry (e.g. `test/setup.ts`); avoid
|
||||
// doing an expensive load when we already have plugins/channels/tools.
|
||||
if (
|
||||
scope !== "all" &&
|
||||
pluginRegistryLoaded === "none" &&
|
||||
active &&
|
||||
(active.plugins.length > 0 || active.channels.length > 0 || active.tools.length > 0)
|
||||
) {
|
||||
pluginRegistryLoaded = "all";
|
||||
pluginRegistryLoaded = scope;
|
||||
return;
|
||||
}
|
||||
const config = loadConfig();
|
||||
|
||||
Reference in New Issue
Block a user