fix(regression): widen preseeded cli plugin registry loads

This commit is contained in:
Tak Hoffman
2026-03-27 22:29:09 -05:00
parent 967702d928
commit 0946fdf625
2 changed files with 30 additions and 1 deletions

View File

@@ -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();