fix: preserve cli and slack fallback behavior

This commit is contained in:
Peter Steinberger
2026-03-31 20:36:22 +01:00
parent 9d1b443542
commit 64091caf8f
5 changed files with 69 additions and 3 deletions

View File

@@ -288,6 +288,29 @@ describe("resolveCliBackendConfig claude-cli defaults", () => {
expect(resolved?.config.args).not.toContain("bypassPermissions");
expect(resolved?.config.resumeArgs).not.toContain("bypassPermissions");
});
it("keeps bundle MCP enabled for override-only claude-cli config when the plugin registry is absent", () => {
const registry = createEmptyPluginRegistry();
setActivePluginRegistry(registry);
const cfg = {
agents: {
defaults: {
cliBackends: {
"claude-cli": {
command: "/usr/local/bin/claude",
args: ["-p", "--output-format", "json"],
},
},
},
},
} satisfies OpenClawConfig;
const resolved = resolveCliBackendConfig("claude-cli", cfg);
expect(resolved).not.toBeNull();
expect(resolved?.bundleMcp).toBe(true);
});
});
describe("resolveCliBackendConfig google-gemini-cli defaults", () => {