fix: preserve allowlist guard for auto-enabled bundled channels (#60233) (thanks @dorukardahan)

This commit is contained in:
Peter Steinberger
2026-04-03 21:35:40 +09:00
parent cd08facd7a
commit bc137951e9
8 changed files with 58 additions and 18 deletions

View File

@@ -252,6 +252,7 @@ describe("loadGatewayPlugins", () => {
});
expect(resolveGatewayStartupPluginIds).toHaveBeenCalledWith({
config: {},
activationSourceConfig: undefined,
workspaceDir: "/tmp",
env: process.env,
});
@@ -308,6 +309,7 @@ describe("loadGatewayPlugins", () => {
expect(resolveGatewayStartupPluginIds).toHaveBeenCalledWith({
config: autoEnabledConfig,
activationSourceConfig: undefined,
workspaceDir: "/tmp",
env: process.env,
});
@@ -343,6 +345,12 @@ describe("loadGatewayPlugins", () => {
config: rawConfig,
env: process.env,
});
expect(resolveGatewayStartupPluginIds).toHaveBeenCalledWith({
config: resolvedConfig,
activationSourceConfig: rawConfig,
workspaceDir: "/tmp",
env: process.env,
});
expect(loadOpenClawPlugins).toHaveBeenCalledWith(
expect.objectContaining({
config: resolvedConfig,