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

推荐订阅源

P
Proofpoint News Feed
博客园_首页
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
G
Google Developers Blog
Last Week in AI
Last Week in AI

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 UI view assertions · openclaw/openclaw@9c5a150
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -59,9 +59,8 @@ describe("OpenClawApp Talk controls", () => {

5959

expect(startMock).toHaveBeenCalledOnce();

6060

expect(stopMock).not.toHaveBeenCalled();

6161

expect(app.realtimeTalkStatus).toBe("connecting");

62-

expect(app.realtimeTalkSession).toMatchObject({

63-

start: startMock,

64-

stop: stopMock,

65-

});

62+

const session = app.realtimeTalkSession as { start?: unknown; stop?: unknown } | undefined;

63+

expect(session?.start).toBe(startMock);

64+

expect(session?.stop).toBe(stopMock);

6665

});

6766

});

Original file line numberDiff line numberDiff line change

@@ -41,14 +41,13 @@ describe("RealtimeTalkSession consult handoff", () => {

4141

submit,

4242

});

4343
44-

expect(request).toHaveBeenCalledWith(

45-

"talk.client.toolCall",

46-

expect.objectContaining({

47-

sessionKey: "agent:main:main",

48-

name: "openclaw_agent_consult",

49-

args: { question: "Are the basement lights off?" },

50-

}),

51-

);

44+

const toolCall = request.mock.calls[0] as

45+

| [string, { sessionKey?: string; name?: string; args?: { question?: string } }]

46+

| undefined;

47+

expect(toolCall?.[0]).toBe("talk.client.toolCall");

48+

expect(toolCall?.[1]?.sessionKey).toBe("agent:main:main");

49+

expect(toolCall?.[1]?.name).toBe("openclaw_agent_consult");

50+

expect(toolCall?.[1]?.args).toEqual({ question: "Are the basement lights off?" });

5251

expect(submit).toHaveBeenCalledWith("call-1", { result: "Basement lights are off." });

5352

});

5453

});

Original file line numberDiff line numberDiff line change

@@ -740,13 +740,13 @@ describe("chat attachment picker", () => {

740740

input!.dispatchEvent(new Event("change", { bubbles: true }));

741741
742742

await vi.waitFor(() => {

743-

expect(onAttachmentsChange).toHaveBeenCalledWith([

744-

expect.objectContaining({

745-

fileName: "brief.pdf",

746-

mimeType: "application/pdf",

747-

sizeBytes: file.size,

748-

}),

749-

]);

743+

const attachments = onAttachmentsChange.mock.calls[0]?.[0] as

744+

| Array<{ fileName?: string; mimeType?: string; sizeBytes?: number }>

745+

| undefined;

746+

expect(attachments).toHaveLength(1);

747+

expect(attachments?.[0]?.fileName).toBe("brief.pdf");

748+

expect(attachments?.[0]?.mimeType).toBe("application/pdf");

749+

expect(attachments?.[0]?.sizeBytes).toBe(file.size);

750750

});

751751
752752

const nextAttachments = onAttachmentsChange.mock.calls[0]?.[0] ?? [];

Original file line numberDiff line numberDiff line change

@@ -746,20 +746,19 @@ describe("cron view", () => {

746746

"cron-delivery-to-suggestions",

747747

"cron-delivery-account-suggestions",

748748

]);

749-

expect(

750-

Array.from(container.querySelectorAll("input[list]")).map((node) =>

751-

node.getAttribute("list"),

752-

),

753-

).toEqual(

754-

expect.arrayContaining([

755-

"cron-agent-suggestions",

756-

"cron-model-suggestions",

757-

"cron-thinking-suggestions",

758-

"cron-tz-suggestions",

759-

"cron-delivery-to-suggestions",

760-

"cron-delivery-account-suggestions",

761-

]),

749+

const inputLists = Array.from(container.querySelectorAll("input[list]")).map((node) =>

750+

node.getAttribute("list"),

762751

);

752+

for (const expectedList of [

753+

"cron-agent-suggestions",

754+

"cron-model-suggestions",

755+

"cron-thinking-suggestions",

756+

"cron-tz-suggestions",

757+

"cron-delivery-to-suggestions",

758+

"cron-delivery-account-suggestions",

759+

]) {

760+

expect(inputLists).toContain(expectedList);

761+

}

763762

expect(container.querySelectorAll("input[list]")).toHaveLength(6);

764763

});

765764

});

Original file line numberDiff line numberDiff line change

@@ -508,9 +508,11 @@ describe("dreaming view", () => {

508508

const labels = [...container.querySelectorAll(".dreams-diary__day-chip")].map((node) =>

509509

node.textContent?.replace(/\s+/g, "").trim(),

510510

);

511-

expect(labels.filter((label): label is string => Boolean(label))).toEqual(

512-

expect.arrayContaining([expect.stringMatching(/^\d+\/\d+$/)]),

513-

);

511+

expect(

512+

labels

513+

.filter((label): label is string => Boolean(label))

514+

.some((label) => /^\d+\/\d+$/.test(label)),

515+

).toBe(true);

514516

setDreamSubTab("scene");

515517

});

516518