

























@@ -114,6 +114,8 @@ describe("shouldEnsureCliPath", () => {
114114it("skips path bootstrap for read-only fast paths", () => {
115115expect(shouldEnsureCliPath(["node", "openclaw"])).toBe(false);
116116expect(shouldEnsureCliPath(["node", "openclaw", "--profile", "work"])).toBe(false);
117+expect(shouldEnsureCliPath(["node", "openclaw", "plugins"])).toBe(false);
118+expect(shouldEnsureCliPath(["node", "openclaw", "mcp"])).toBe(false);
117119expect(shouldEnsureCliPath(["node", "openclaw", "status"])).toBe(false);
118120expect(shouldEnsureCliPath(["node", "openclaw", "--log-level", "debug", "status"])).toBe(false);
119121expect(shouldEnsureCliPath(["node", "openclaw", "sessions", "--json"])).toBe(false);
@@ -170,6 +172,13 @@ describe("shouldStartProxyForCli", () => {
170172expect(shouldStartProxyForCli(["node", "openclaw", "--update"])).toBe(true);
171173expect(shouldStartProxyForCli(["node", "openclaw", "--profile", "p", "--update"])).toBe(true);
172174});
175+176+it("skips managed proxy routing for bare parent default help", () => {
177+expect(shouldStartProxyForCli(["node", "openclaw", "plugins"])).toBe(false);
178+expect(shouldStartProxyForCli(["node", "openclaw", "channels"])).toBe(false);
179+expect(shouldStartProxyForCli(["node", "openclaw", "devices"])).toBe(false);
180+expect(shouldStartProxyForCli(["node", "openclaw", "mcp"])).toBe(false);
181+});
173182});
174183175184describe("shouldUseRootHelpFastPath", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。