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

推荐订阅源

雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
V
V2EX
T
The Blog of Author Tim Ferriss
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
美团技术团队
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks

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: tighten config validation assertions · openclaw/ope...
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -53,10 +53,9 @@ describe("bundled channel config runtime", () => {

5353

"../../test/helpers/config/bundled-channel-config-runtime.js?scope=missing-bundled-list",

5454

);

5555
56-

expect(runtimeModule.getBundledChannelConfigSchemaMap().get("msteams")).toMatchObject({

57-

schema: { type: "object" },

58-

runtime: {},

59-

});

56+

const schemaEntry = runtimeModule.getBundledChannelConfigSchemaMap().get("msteams");

57+

expect(schemaEntry?.schema).toEqual({ type: "object" });

58+

expect(schemaEntry?.runtime).toEqual({});

6059

expect(runtimeModule.getBundledChannelRuntimeMap().get("msteams")).toStrictEqual({});

6160

});

6261
Original file line numberDiff line numberDiff line change

@@ -19,7 +19,13 @@ async function expectRegularFile(filePath: string): Promise<void> {

1919

}

2020
2121

async function expectPathMissing(filePath: string): Promise<void> {

22-

await expect(fs.stat(filePath)).rejects.toMatchObject({ code: "ENOENT" });

22+

let error: { code?: unknown } | undefined;

23+

try {

24+

await fs.stat(filePath);

25+

} catch (err) {

26+

error = err as { code?: unknown };

27+

}

28+

expect(error?.code).toBe("ENOENT");

2329

}

2430
2531

describe("config backup rotation", () => {

Original file line numberDiff line numberDiff line change

@@ -214,9 +214,9 @@ describe("config schema regressions", () => {

214214
215215

expect(res.ok).toBe(false);

216216

if (!res.ok) {

217-

expect(res.issues.map((issue) => issue.path)).toEqual(

218-

expect.arrayContaining(["agents.defaults.pdfMaxBytesMb", "agents.defaults.pdfMaxPages"]),

219-

);

217+

const issuePaths = res.issues.map((issue) => issue.path);

218+

expect(issuePaths).toContain("agents.defaults.pdfMaxBytesMb");

219+

expect(issuePaths).toContain("agents.defaults.pdfMaxPages");

220220

}

221221

});

222222
Original file line numberDiff line numberDiff line change

@@ -27,9 +27,8 @@ describe("ensureControlUiAllowedOriginsForNonLoopbackBind", () => {

2727

);

2828
2929

expect(result.bind).toBe("lan");

30-

expect(result.seededOrigins).toEqual(

31-

expect.arrayContaining(["http://localhost:18789", "http://127.0.0.1:18789"]),

32-

);

30+

expect(result.seededOrigins).toContain("http://localhost:18789");

31+

expect(result.seededOrigins).toContain("http://127.0.0.1:18789");

3332

});

3433
3534

it("uses runtime loopback before config non-loopback and avoids seeding", () => {

Original file line numberDiff line numberDiff line change

@@ -42,7 +42,7 @@ describe("config io EACCES handling", () => {

4242

expect(snapshot.issues[0].message).toContain("chown");

4343

expect(snapshot.issues[0].message).toContain(configPath);

4444

// Should also emit to the logger

45-

expect(errors).toEqual(expect.arrayContaining([expect.stringContaining("chown")]));

45+

expect(errors.some((message) => message.includes("chown"))).toBe(true);

4646

});

4747
4848

it("includes configPath in the chown hint for the correct remediation command", async () => {

Original file line numberDiff line numberDiff line change

@@ -78,12 +78,8 @@ describe("session store key normalization", () => {

7878
7979

const store = loadSessionStore(storePath, { skipCache: true });

8080

expect(Object.keys(store)).toEqual([CANONICAL_KEY]);

81-

expect(store[CANONICAL_KEY]).toEqual(

82-

expect.objectContaining({

83-

lastChannel: "webchat",

84-

lastTo: "webchat:user-1",

85-

}),

86-

);

81+

expect(store[CANONICAL_KEY]?.lastChannel).toBe("webchat");

82+

expect(store[CANONICAL_KEY]?.lastTo).toBe("webchat:user-1");

8783

});

8884
8985

it("migrates legacy mixed-case entries to the canonical key on update", async () => {

Original file line numberDiff line numberDiff line change

@@ -147,10 +147,8 @@ describe("talk normalization", () => {

147147

},

148148

});

149149
150-

expect(payload?.realtime).toMatchObject({

151-

provider: "openai",

152-

instructions: "Speak with crisp diction.",

153-

});

150+

expect(payload?.realtime?.provider).toBe("openai");

151+

expect(payload?.realtime?.instructions).toBe("Speak with crisp diction.");

154152

});

155153
156154

it("does not report an active provider when the configured speech provider cannot resolve", () => {

Original file line numberDiff line numberDiff line change

@@ -3,17 +3,16 @@ import { OpenClawSchema } from "./zod-schema.js";

33
44

describe("OpenClawSchema cron retention and run-log validation", () => {

55

it("accepts valid cron.sessionRetention and runLog values", () => {

6-

expect(

7-

OpenClawSchema.safeParse({

8-

cron: {

9-

sessionRetention: "1h30m",

10-

runLog: {

11-

maxBytes: "5mb",

12-

keepLines: 2500,

13-

},

6+

const result = OpenClawSchema.safeParse({

7+

cron: {

8+

sessionRetention: "1h30m",

9+

runLog: {

10+

maxBytes: "5mb",

11+

keepLines: 2500,

1412

},

15-

}),

16-

).toMatchObject({ success: true });

13+

},

14+

});

15+

expect(result.success).toBe(true);

1716

});

1817
1918

it("rejects invalid cron.sessionRetention", () => {