























@@ -49,10 +49,10 @@ describe("checkGatewayHealth", () => {
4949timeoutMs: 6000,
5050});
5151expect(runtime.error).not.toHaveBeenCalled();
52-expect(note).not.toHaveBeenCalledWith(expect.any(String), "Gateway version skew");
52+expect(note).not.toHaveBeenCalledWith(expect.any(String), "OpenClaw version mismatch");
5353});
545455-it("notes CLI and gateway version skew when the gateway reports another runtime version", async () => {
55+it("notes CLI and gateway version mismatch when the gateway reports another runtime version", async () => {
5656callGateway.mockResolvedValueOnce({ runtimeVersion: "2026.4.23" }).mockResolvedValueOnce({});
5757const runtime = { log: vi.fn(), error: vi.fn(), exit: vi.fn() };
5858@@ -61,12 +61,22 @@ describe("checkGatewayHealth", () => {
6161).resolves.toEqual({ healthOk: true, status: { runtimeVersion: "2026.4.23" } });
62626363expect(note).toHaveBeenCalledWith(
64-expect.stringContaining("Gateway version: 2026.4.23"),
65-"Gateway version skew",
64+expect.stringContaining("the running Gateway is OpenClaw 2026.4.23"),
65+"OpenClaw version mismatch",
6666);
6767expect(note).toHaveBeenCalledWith(
68-expect.stringContaining("stale global wrapper"),
69-"Gateway version skew",
68+expect.not.stringContaining("That usually means"),
69+"OpenClaw version mismatch",
70+);
71+expect(note).toHaveBeenCalledWith(
72+expect.stringContaining("Check `openclaw --version`, `which openclaw`"),
73+"OpenClaw version mismatch",
74+);
75+expect(note).toHaveBeenCalledWith(
76+expect.stringContaining(
77+"If this mismatch is unexpected, update PATH so `openclaw` points to the version you want",
78+),
79+"OpenClaw version mismatch",
7080);
7181});
7282此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。