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

推荐订阅源

U
Unit 42
T
The Blog of Author Tim Ferriss
H
Help Net Security
博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
博客园 - 聂微东
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
B
Blog
Engineering at Meta
Engineering at Meta
V
V2EX
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
test(gateway): mock split config modules · openclaw/openc...
steipete · 2026-04-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -15,6 +15,16 @@ vi.mock("../config/config.js", () => ({

1515

})),

1616

}));

1717
18+

vi.mock("../config/io.js", () => ({

19+

getRuntimeConfig: vi.fn(() => ({

20+

gateway: {

21+

controlUi: {

22+

allowedOrigins: ["https://control.example.com"],

23+

},

24+

},

25+

})),

26+

}));

27+
1828

vi.mock("./http-common.js", () => ({

1929

sendGatewayAuthFailure: vi.fn(),

2030

sendJson: vi.fn(),

Original file line numberDiff line numberDiff line change

@@ -9,6 +9,10 @@ vi.mock("../config/config.js", () => ({

99

getRuntimeConfig: () => loadConfigMock(),

1010

}));

1111
12+

vi.mock("../config/io.js", () => ({

13+

getRuntimeConfig: () => loadConfigMock(),

14+

}));

15+
1216

vi.mock("./server-model-catalog.js", () => ({

1317

loadGatewayModelCatalog: () => loadGatewayModelCatalogMock(),

1418

}));

Original file line numberDiff line numberDiff line change

@@ -12,6 +12,10 @@ vi.mock("../config/io.js", () => ({

1212

getRuntimeConfig: vi.fn(() => ({})),

1313

}));

1414
15+

vi.mock("../config/io.js", () => ({

16+

getRuntimeConfig: vi.fn(() => ({})),

17+

}));

18+
1519

vi.mock("../infra/heartbeat-visibility.js", () => ({

1620

resolveHeartbeatVisibility: vi.fn(() => ({

1721

showOk: false,

Original file line numberDiff line numberDiff line change

@@ -11,6 +11,10 @@ vi.mock("../config/io.js", () => ({

1111

getRuntimeConfig: () => hoisted.loadConfigMock(),

1212

}));

1313
14+

vi.mock("../config/io.js", () => ({

15+

getRuntimeConfig: () => hoisted.loadConfigMock(),

16+

}));

17+
1418

vi.mock("./session-utils.js", async () => {

1519

const actual = await vi.importActual<typeof import("./session-utils.js")>("./session-utils.js");

1620

return {

Original file line numberDiff line numberDiff line change

@@ -54,12 +54,12 @@ const pluginMetadataSnapshot = vi.hoisted(

5454

},

5555

}),

5656

);

57-
5857

vi.mock("../config/io.js", () => ({

5958

readConfigFileSnapshot: vi.fn(),

6059

readConfigFileSnapshotWithPluginMetadata: vi.fn(),

6160

recoverConfigFromLastKnownGood: vi.fn(),

6261

recoverConfigFromJsonRootSuffix: vi.fn(),

62+

writeConfigFile: vi.fn(),

6363

}));

6464
6565

vi.mock("../config/paths.js", () => ({

Original file line numberDiff line numberDiff line change

@@ -45,6 +45,10 @@ vi.mock("../../../config/config.js", () => ({

4545

loadConfig: loadConfigMock,

4646

}));

4747
48+

vi.mock("../../../config/io.js", () => ({

49+

getRuntimeConfig: loadConfigMock,

50+

}));

51+
4852

vi.mock("../../../infra/system-presence.js", () => ({

4953

upsertPresence: upsertPresenceMock,

5054

}));

Original file line numberDiff line numberDiff line change

@@ -18,6 +18,10 @@ vi.mock("../config/config.js", () => ({

1818

getRuntimeConfig: () => cfg,

1919

}));

2020
21+

vi.mock("../config/io.js", () => ({

22+

getRuntimeConfig: () => cfg,

23+

}));

24+
2125

vi.mock("./auth.js", () => ({

2226

authorizeHttpGatewayConnect: authMock,

2327

isLocalDirectRequest: isLocalDirectRequestMock,

Original file line numberDiff line numberDiff line change

@@ -20,6 +20,14 @@ vi.mock("../config/config.js", async () => {

2020

};

2121

});

2222
23+

vi.mock("../config/mutate.js", async () => {

24+

const actual = await vi.importActual<typeof import("../config/mutate.js")>("../config/mutate.js");

25+

return {

26+

...actual,

27+

replaceConfigFile: mocks.replaceConfigFile,

28+

};

29+

});

30+
2331

describe("ensureGatewayStartupAuth", () => {

2432

async function expectEphemeralGeneratedTokenWhenOverridden(cfg: OpenClawConfig) {

2533

const result = await ensureGatewayStartupAuth({

Original file line numberDiff line numberDiff line change

@@ -19,6 +19,10 @@ vi.mock("../config/config.js", () => ({

1919

getRuntimeConfig: () => cfg,

2020

}));

2121
22+

vi.mock("../config/io.js", () => ({

23+

getRuntimeConfig: () => cfg,

24+

}));

25+
2226

vi.mock("../config/sessions.js", () => ({

2327

resolveMainSessionKey: () => "agent:main:main",

2428

}));

Original file line numberDiff line numberDiff line change

@@ -25,6 +25,10 @@ vi.mock("../config/config.js", () => ({

2525

getRuntimeConfig: () => cfg,

2626

}));

2727
28+

vi.mock("../config/io.js", () => ({

29+

getRuntimeConfig: () => cfg,

30+

}));

31+
2832

vi.mock("../config/sessions.js", () => ({

2933

resolveMainSessionKey: (params?: {

3034

session?: { scope?: string; mainKey?: string };