fix: preserve bundled channel plugin compat (#58873)

* fix: preserve bundled channel plugin compat

* fix: preserve bundled channel plugin compat (#58873)

* fix: scope channel plugin compat to bundled plugins (#58873)
This commit is contained in:
Ayaan Zaidi
2026-04-01 14:42:36 +05:30
committed by GitHub
parent 2d53ffdec1
commit fb28b02540
8 changed files with 273 additions and 2 deletions

View File

@@ -1014,6 +1014,22 @@ describe("loadOpenClawPlugins", () => {
expectTelegramLoaded(registry);
},
},
{
name: "loads bundled channel plugins when channels.<id>.enabled=true even under restrictive plugins.allow",
config: {
channels: {
telegram: {
enabled: true,
},
},
plugins: {
allow: ["browser"],
},
} satisfies PluginLoadConfig,
assert: (registry: ReturnType<typeof loadOpenClawPlugins>) => {
expectTelegramLoaded(registry);
},
},
{
name: "still respects explicit disable via plugins.entries for bundled channels",
config: {