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

推荐订阅源

博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
aimingoo的专栏
aimingoo的专栏
腾讯CDC
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
F
Fortinet All Blogs
G
Google Developers Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
Engineering at Meta
Engineering at Meta
博客园_首页
B
Blog RSS Feed
D
Docker
M
MIT News - Artificial intelligence
爱范儿
爱范儿
I
InfoQ

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: clarify boolean membership assertions · openclaw/op...
steipete · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -495,7 +495,12 @@ describe("Discord model picker rendering", () => {

495495

throw new Error("models view did not render a provider select");

496496

}

497497

expect(providerSelect.options?.length).toBe(2);

498-

expect(providerSelect.options?.find((option) => option.value === "openai")?.default).toBe(true);

498+

expect(providerSelect.options).toContainEqual(

499+

expect.objectContaining({

500+

value: "openai",

501+

default: true,

502+

}),

503+

);

499504

const parsedProviderState = parseDiscordModelPickerCustomId(providerSelect.custom_id ?? "");

500505

expect(parsedProviderState?.action).toBe("provider");

501506

@@ -506,7 +511,12 @@ describe("Discord model picker rendering", () => {

506511

throw new Error("models view did not render a model select");

507512

}

508513

expect(modelSelect.options?.length).toBe(3);

509-

expect(modelSelect.options?.find((option) => option.value === "o3")?.default).toBe(true);

514+

expect(modelSelect.options).toContainEqual(

515+

expect.objectContaining({

516+

value: "o3",

517+

default: true,

518+

}),

519+

);

510520
511521

const parsedModelSelectState = parseDiscordModelPickerCustomId(modelSelect.custom_id ?? "");

512522

expect(parsedModelSelectState?.action).toBe("model");

@@ -577,7 +587,12 @@ describe("Discord model picker rendering", () => {

577587

expect(runtimeSelect.options?.find((option) => option.value === "pi")?.label).toBe(

578588

"OpenClaw Pi Default",

579589

);

580-

expect(runtimeSelect.options?.find((option) => option.value === "codex")?.default).toBe(true);

590+

expect(runtimeSelect.options).toContainEqual(

591+

expect.objectContaining({

592+

value: "codex",

593+

default: true,

594+

}),

595+

);

581596
582597

const submitButton = rows[3]?.components?.at(-1);

583598

const submitState = requireValue(

Original file line numberDiff line numberDiff line change

@@ -37,7 +37,12 @@ describe("QQBot framework slash commands", () => {

3737

expect.arrayContaining(["bot-approve", "bot-clear-storage", "bot-logs", "bot-streaming"]),

3838

);

3939

for (const commandName of ["bot-approve", "bot-clear-storage", "bot-logs", "bot-streaming"]) {

40-

expect(commands.find((command) => command.name === commandName)?.c2cOnly).toBe(true);

40+

expect(commands).toContainEqual(

41+

expect.objectContaining({

42+

name: commandName,

43+

c2cOnly: true,

44+

}),

45+

);

4146

}

4247

});

4348

@@ -60,7 +65,12 @@ describe("QQBot framework slash commands", () => {

6065

const commands = registry.getFrameworkCommands();

6166
6267

expect(commands.map((command) => command.name)).toEqual(["private-admin", "shared-admin"]);

63-

expect(commands.find((command) => command.name === "private-admin")?.c2cOnly).toBe(true);

68+

expect(commands).toContainEqual(

69+

expect.objectContaining({

70+

name: "private-admin",

71+

c2cOnly: true,

72+

}),

73+

);

6474

expect(commands.find((command) => command.name === "shared-admin")?.c2cOnly).toBeUndefined();

6575

});

6676
Original file line numberDiff line numberDiff line change

@@ -157,8 +157,18 @@ describe("buildWorkspaceSkillStatus", () => {

157157

expect(report.agentId).toBe("specialist");

158158

expect(report.agentSkillFilter).toEqual(["alpha"]);

159159

expect(report.skills.find((skill) => skill.name === "alpha")?.blockedByAgentFilter).toBe(false);

160-

expect(report.skills.find((skill) => skill.name === "alpha")?.modelVisible).toBe(true);

161-

expect(report.skills.find((skill) => skill.name === "beta")?.blockedByAgentFilter).toBe(true);

160+

expect(report.skills).toContainEqual(

161+

expect.objectContaining({

162+

name: "alpha",

163+

modelVisible: true,

164+

}),

165+

);

166+

expect(report.skills).toContainEqual(

167+

expect.objectContaining({

168+

name: "beta",

169+

blockedByAgentFilter: true,

170+

}),

171+

);

162172

expect(report.skills.find((skill) => skill.name === "beta")?.modelVisible).toBe(false);

163173

});

164174
Original file line numberDiff line numberDiff line change

@@ -59,7 +59,7 @@ describe("inter-session lastRoute preservation (fixes #54441)", () => {

5959

isInterSession: true,

6060

});

6161

// No external route existed — falls through to normal resolution (webchat or undefined).

62-

expect(result === "webchat" || result === undefined).toBe(true);

62+

expect(["webchat", undefined]).toContain(result);

6363

});

6464
6565

it("inter-session on session with no persisted lastTo preserves session route", () => {

@@ -73,7 +73,7 @@ describe("inter-session lastRoute preservation (fixes #54441)", () => {

7373

isInterSession: true,

7474

});

7575

// No external route — falls through to normal resolution

76-

expect(result === "session:somekey" || result === undefined).toBe(true);

76+

expect(["session:somekey", undefined]).toContain(result);

7777

});

7878

});

7979