惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
罗磊的独立博客
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
博客园_首页
量子位
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
S
SegmentFault 最新的问题
雷峰网
雷峰网
小众软件
小众软件
博客园 - 聂微东
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: consolidate gateway doctor service notes (#78688) · ...
YB0y · 2026-05-11 · via Recent Commits to openclaw:main

@@ -998,6 +998,102 @@ describe("maybeRepairGatewayServiceConfig", () => {

998998

}

999999

});

10001000

});

1001+1002+

it("does not duplicate Gateway service config panels for a source-checkout entrypoint with audit findings", async () => {

1003+

await withEnvAsync({}, async () => {

1004+

const root = await fs.mkdtemp(

1005+

path.join(os.tmpdir(), "openclaw-doctor-service-config-dedup-"),

1006+

);

1007+

try {

1008+

await fs.mkdir(path.join(root, ".git"), { recursive: true });

1009+

await fs.mkdir(path.join(root, "src"), { recursive: true });

1010+

await fs.mkdir(path.join(root, "extensions"), { recursive: true });

1011+

await fs.mkdir(path.join(root, "dist"), { recursive: true });

1012+

await fs.writeFile(

1013+

path.join(root, "package.json"),

1014+

JSON.stringify({ name: "openclaw", version: "0.0.0-test" }),

1015+

"utf8",

1016+

);

1017+

const sourceCheckoutEntrypoint = path.join(root, "dist", "index.js");

1018+

await fs.writeFile(sourceCheckoutEntrypoint, "export {};\n", "utf8");

1019+

const installEntrypoint = "/usr/local/lib/node_modules/openclaw/dist/index.js";

1020+

setupGatewayEntrypointRepairScenario({

1021+

currentEntrypoint: sourceCheckoutEntrypoint,

1022+

installEntrypoint,

1023+

installWorkingDirectory: "/tmp",

1024+

});

1025+1026+

await runRepair({ gateway: {} });

1027+1028+

const gatewayServiceConfigNotes = mocks.note.mock.calls.filter(

1029+

([, title]) => title === "Gateway service config",

1030+

);

1031+

expect(gatewayServiceConfigNotes).toHaveLength(1);

1032+

const consolidated = gatewayServiceConfigNotes[0]?.[0] ?? "";

1033+

expect(consolidated).toContain(

1034+

"Gateway service entrypoint does not match the current install.",

1035+

);

1036+

expect(consolidated).not.toContain("resolves to a source checkout");

1037+

const forceMatches = consolidated.match(/openclaw gateway install --force/g) ?? [];

1038+

expect(forceMatches).toHaveLength(0);

1039+

} finally {

1040+

await fs.rm(root, { recursive: true, force: true });

1041+

}

1042+

});

1043+

});

1044+1045+

it("keeps the gateway install force hint when a source-checkout warning is suppressed and repair is declined", async () => {

1046+

await withEnvAsync({}, async () => {

1047+

const root = await fs.mkdtemp(

1048+

path.join(os.tmpdir(), "openclaw-doctor-service-config-force-hint-"),

1049+

);

1050+

try {

1051+

await fs.mkdir(path.join(root, ".git"), { recursive: true });

1052+

await fs.mkdir(path.join(root, "src"), { recursive: true });

1053+

await fs.mkdir(path.join(root, "extensions"), { recursive: true });

1054+

await fs.mkdir(path.join(root, "dist"), { recursive: true });

1055+

await fs.writeFile(

1056+

path.join(root, "package.json"),

1057+

JSON.stringify({ name: "openclaw", version: "0.0.0-test" }),

1058+

"utf8",

1059+

);

1060+

const sourceCheckoutEntrypoint = path.join(root, "dist", "index.js");

1061+

await fs.writeFile(sourceCheckoutEntrypoint, "export {};\n", "utf8");

1062+

const installEntrypoint = "/usr/local/lib/node_modules/openclaw/dist/index.js";

1063+

setupGatewayEntrypointRepairScenario({

1064+

currentEntrypoint: sourceCheckoutEntrypoint,

1065+

installEntrypoint,

1066+

installWorkingDirectory: "/tmp",

1067+

});

1068+1069+

const declinePrompts = {

1070+

...makeDoctorPrompts(),

1071+

confirmAutoFix: vi.fn().mockResolvedValue(false),

1072+

confirmAggressiveAutoFix: vi.fn().mockResolvedValue(false),

1073+

confirmRuntimeRepair: vi.fn().mockResolvedValue(false),

1074+

};

1075+

await maybeRepairGatewayServiceConfig(

1076+

{ gateway: {} },

1077+

"local",

1078+

makeDoctorIo(),

1079+

declinePrompts,

1080+

);

1081+1082+

const gatewayServiceConfigNotes = mocks.note.mock.calls.filter(

1083+

([, title]) => title === "Gateway service config",

1084+

);

1085+

expect(gatewayServiceConfigNotes).toHaveLength(2);

1086+

const auditNote = gatewayServiceConfigNotes[0]?.[0] ?? "";

1087+

expect(auditNote).toContain(

1088+

"Gateway service entrypoint does not match the current install.",

1089+

);

1090+

expect(auditNote).not.toContain("resolves to a source checkout");

1091+

expect(gatewayServiceConfigNotes[1]?.[0]).toContain("openclaw gateway install --force");

1092+

} finally {

1093+

await fs.rm(root, { recursive: true, force: true });

1094+

}

1095+

});

1096+

});

10011097

});

1002109810031099

describe("maybeScanExtraGatewayServices", () => {