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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
Engineering at Meta
Engineering at Meta
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
H
Hackread – Cybersecurity News, Data Breaches, AI and More
WordPress大学
WordPress大学
博客园_首页
美团技术团队
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
J
Java Code Geeks
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
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: tighten config session assertions · openclaw/opencl...
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -293,8 +293,7 @@ describe("resolveToolsBySender", () => {

293293
294294

expect(warningSpy).toHaveBeenCalledTimes(1);

295295

expect(String(warningSpy.mock.calls[0]?.[0])).toContain(`toolsBySender key "${legacyKey}"`);

296-

expect(warningSpy.mock.calls[0]?.[1]).toMatchObject({

297-

code: "OPENCLAW_TOOLS_BY_SENDER_UNTYPED_KEY",

298-

});

296+

const warningMeta = warningSpy.mock.calls[0]?.[1] as { code?: unknown } | undefined;

297+

expect(warningMeta?.code).toBe("OPENCLAW_TOOLS_BY_SENDER_UNTYPED_KEY");

299298

});

300299

});

Original file line numberDiff line numberDiff line change

@@ -211,7 +211,9 @@ describe("resolveConfigIncludes", () => {

211211

} catch (err) {

212212

expect(err).toBeInstanceOf(CircularIncludeError);

213213

const circular = err as CircularIncludeError;

214-

expect(circular.chain).toEqual(expect.arrayContaining([DEFAULT_BASE_PATH, aPath, bPath]));

214+

expect(circular.chain).toContain(DEFAULT_BASE_PATH);

215+

expect(circular.chain).toContain(aPath);

216+

expect(circular.chain).toContain(bPath);

215217

expect(circular.message).toMatch(/Circular include detected/);

216218

expect(circular.message).toContain("a.json");

217219

expect(circular.message).toContain("b.json");

Original file line numberDiff line numberDiff line change

@@ -632,9 +632,7 @@ describe("config io write prepare", () => {

632632

auth: { mode: "token" },

633633

});

634634

const channels = persisted.channels as Record<string, Record<string, unknown>> | undefined;

635-

expect(channels?.imessage).toMatchObject({

636-

cliPath: "/usr/local/bin/imsg",

637-

});

635+

expect(channels?.imessage?.cliPath).toBe("/usr/local/bin/imsg");

638636

expect(channels?.imessage).not.toHaveProperty("runtimeOnlyDefault");

639637

});

640638
Original file line numberDiff line numberDiff line change

@@ -365,8 +365,6 @@ describe("Session Store Cache", () => {

365365
366366

// The cache should detect the size change and reload from disk

367367

const loaded2 = loadSessionStore(storePath);

368-

expect(loaded2).toMatchObject({

369-

"session:2": { displayName: "Added" },

370-

});

368+

expect(loaded2["session:2"]?.displayName).toBe("Added");

371369

});

372370

});

Original file line numberDiff line numberDiff line change

@@ -105,7 +105,13 @@ describe("sessions", () => {

105105

}

106106
107107

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

108-

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

108+

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

109+

try {

110+

await fs.stat(targetPath);

111+

} catch (err) {

112+

error = err as { code?: unknown };

113+

}

114+

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

109115

}

110116
111117

const deriveSessionKeyCases = [

@@ -493,7 +499,8 @@ describe("sessions", () => {

493499

sessionKey,

494500

update: async () => null,

495501

});

496-

expect(result).toEqual(expect.objectContaining({ sessionId: "sess-1", thinkingLevel: "low" }));

502+

expect(result?.sessionId).toBe("sess-1");

503+

expect(result?.thinkingLevel).toBe("low");

497504
498505

const store = loadSessionStore(storePath);

499506

expect(store[sessionKey]?.thinkingLevel).toBe("low");

Original file line numberDiff line numberDiff line change

@@ -13,12 +13,9 @@ describe("readSessionStoreReadOnly", () => {

1313

expect(readSessionStoreReadOnly(storePath)).toStrictEqual({});

1414
1515

await fs.writeFile(storePath, '{"session-1":{"sessionId":"s1","updatedAt":1}}\n', "utf8");

16-

expect(readSessionStoreReadOnly(storePath)).toMatchObject({

17-

"session-1": {

18-

sessionId: "s1",

19-

updatedAt: 1,

20-

},

21-

});

16+

const store = readSessionStoreReadOnly(storePath);

17+

expect(store["session-1"]?.sessionId).toBe("s1");

18+

expect(store["session-1"]?.updatedAt).toBe(1);

2219

});

2320

});

2421

});

Original file line numberDiff line numberDiff line change

@@ -203,10 +203,12 @@ describe("appendAssistantMessageToSessionTranscript", () => {

203203

message: { role: "user", content: "x".repeat(5 * 1024 * 1024) },

204204

});

205205
206-

await expect(readLatestAssistantTextFromSessionTranscript(sessionFile)).resolves.toMatchObject({

207-

id: exactResult.messageId,

208-

text: "Hello before the large user entry",

209-

});

206+

const latestAssistantText = await readLatestAssistantTextFromSessionTranscript(sessionFile);

207+

if (!latestAssistantText) {

208+

throw new Error("expected latest assistant text");

209+

}

210+

expect(latestAssistantText.id).toBe(exactResult.messageId);

211+

expect(latestAssistantText.text).toBe("Hello before the large user entry");

210212
211213

const mirrorResult = await appendAssistantMessageToSessionTranscript({

212214

sessionKey,

Original file line numberDiff line numberDiff line change

@@ -4,12 +4,10 @@ import { SessionSchema } from "./zod-schema.session.js";

44
55

describe("typing mode schema reuse", () => {

66

it("accepts supported typingMode values for session and agent defaults", () => {

7-

expect(SessionSchema.parse({ typingMode: "thinking" })).toMatchObject({

8-

typingMode: "thinking",

9-

});

10-

expect(AgentDefaultsSchema.parse({ typingMode: "message" })).toMatchObject({

11-

typingMode: "message",

12-

});

7+

const session = SessionSchema.parse({ typingMode: "thinking" });

8+

const agentDefaults = AgentDefaultsSchema.parse({ typingMode: "message" });

9+

expect(session?.typingMode).toBe("thinking");

10+

expect(agentDefaults?.typingMode).toBe("message");

1311

});

1412
1513

it("rejects unsupported typingMode values for session and agent defaults", () => {