fix(plugins): normalize compat allowlist aliases · openclaw/openclaw@d362879
steipete
·
2026-05-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -153,6 +153,30 @@ describe("implicit provider plugin allowlist compatibility", () => {
|
153 | 153 | }); |
154 | 154 | }); |
155 | 155 | |
| 156 | +it("re-enables globally disabled plugins when allowlist mode accepts a plugin alias", () => { |
| 157 | +const config = withBundledPluginEnablementCompat({ |
| 158 | +config: { |
| 159 | +plugins: { |
| 160 | +enabled: false, |
| 161 | +allow: [" Google-Gemini-Cli "], |
| 162 | +bundledDiscovery: "allowlist", |
| 163 | +}, |
| 164 | +}, |
| 165 | +pluginIds: ["google"], |
| 166 | +}); |
| 167 | + |
| 168 | +expect(config).toEqual({ |
| 169 | +plugins: { |
| 170 | +enabled: true, |
| 171 | +allow: [" Google-Gemini-Cli "], |
| 172 | +bundledDiscovery: "allowlist", |
| 173 | +entries: { |
| 174 | +google: { enabled: true }, |
| 175 | +}, |
| 176 | +}, |
| 177 | +}); |
| 178 | +}); |
| 179 | + |
156 | 180 | it("still honors explicit plugin denies over compat allowlist injection", () => { |
157 | 181 | const config = withBundledPluginEnablementCompat({ |
158 | 182 | config: withBundledPluginAllowlistCompat({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。