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

推荐订阅源

WordPress大学
WordPress大学
J
Java Code Geeks
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
博客园 - 【当耐特】
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 司徒正美

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 dispatch tool progress assertions · opencla...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -1441,12 +1441,10 @@ describe("dispatchReplyFromConfig", () => {

1441144114421442

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

144314431444-

expect(replyMediaPathMocks.createReplyMediaPathNormalizer).toHaveBeenCalledWith(

1445-

expect.objectContaining({

1446-

cfg,

1447-

messageProvider: "webchat",

1448-

}),

1449-

);

1444+

const normalizerOptions = replyMediaPathMocks.createReplyMediaPathNormalizer.mock

1445+

.calls[0]?.[0] as { cfg?: unknown; messageProvider?: unknown } | undefined;

1446+

expect(normalizerOptions?.cfg).toBe(cfg);

1447+

expect(normalizerOptions?.messageProvider).toBe("webchat");

14501448

expect(dispatcher.sendToolResult).not.toHaveBeenCalled();

14511449

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

14521450

});

@@ -1472,9 +1470,7 @@ describe("dispatchReplyFromConfig", () => {

14721470

};

1473147114741472

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

1475-

expect(dispatcher.sendToolResult).toHaveBeenCalledWith(

1476-

expect.objectContaining({ text: "🔧 exec: ls" }),

1477-

);

1473+

expect(firstToolResultPayload(dispatcher)?.text).toBe("🔧 exec: ls");

14781474

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

14791475

expect(dispatcher.sendFinalReply).toHaveBeenCalledTimes(1);

14801476

});

@@ -1509,18 +1505,17 @@ describe("dispatchReplyFromConfig", () => {

15091505

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

1510150615111507

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

1512-

expect(firstToolResultPayload(dispatcher)).toEqual(

1513-

expect.objectContaining({

1514-

text: "Approval required.\n\n```txt\n/approve 117ba06d allow-once\n```",

1515-

channelData: {

1516-

execApproval: {

1517-

approvalId: "117ba06d-1111-2222-3333-444444444444",

1518-

approvalSlug: "117ba06d",

1519-

allowedDecisions: ["allow-once", "allow-always", "deny"],

1520-

},

1521-

},

1522-

}),

1508+

const toolPayload = firstToolResultPayload(dispatcher);

1509+

expect(toolPayload?.text).toBe(

1510+

"Approval required.\n\n```txt\n/approve 117ba06d allow-once\n```",

15231511

);

1512+

expect(toolPayload?.channelData).toStrictEqual({

1513+

execApproval: {

1514+

approvalId: "117ba06d-1111-2222-3333-444444444444",

1515+

approvalSlug: "117ba06d",

1516+

allowedDecisions: ["allow-once", "allow-always", "deny"],

1517+

},

1518+

});

15241519

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "NO_REPLY" });

15251520

});

15261521

@@ -1544,9 +1539,7 @@ describe("dispatchReplyFromConfig", () => {

15441539

};

1545154015461541

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

1547-

expect(dispatcher.sendToolResult).toHaveBeenCalledWith(

1548-

expect.objectContaining({ text: "🔧 exec: ls" }),

1549-

);

1542+

expect(firstToolResultPayload(dispatcher)?.text).toBe("🔧 exec: ls");

15501543

expect(dispatcher.sendFinalReply).toHaveBeenCalledTimes(1);

15511544

});

15521545

@@ -1576,10 +1569,7 @@ describe("dispatchReplyFromConfig", () => {

15761569

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

1577157015781571

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(2);

1579-

expect(dispatcher.sendToolResult).toHaveBeenNthCalledWith(

1580-

1,

1581-

expect.objectContaining({ text: "🔧 tools/sessions_send" }),

1582-

);

1572+

expect(firstToolResultPayload(dispatcher)?.text).toBe("🔧 tools/sessions_send");

15831573

const sent = (dispatcher.sendToolResult as Mock).mock.calls[1]?.[0] as ReplyPayload | undefined;

15841574

expect(sent?.mediaUrl).toBe("https://example.com/tts-native.opus");

15851575

expect(sent?.text).toBeUndefined();

@@ -1622,16 +1612,13 @@ describe("dispatchReplyFromConfig", () => {

1622161216231613

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

162416141625-

expect(dispatcher.sendToolResult).toHaveBeenNthCalledWith(

1626-

1,

1627-

expect.objectContaining({

1628-

text: "Inspect code, patch it, run tests.\n\n1. Inspect code\n2. Patch code\n3. Run tests",

1629-

}),

1630-

);

1631-

expect(dispatcher.sendToolResult).toHaveBeenNthCalledWith(

1632-

2,

1633-

expect.objectContaining({ text: "Working: awaiting approval: pnpm test" }),

1615+

expect(firstToolResultPayload(dispatcher)?.text).toBe(

1616+

"Inspect code, patch it, run tests.\n\n1. Inspect code\n2. Patch code\n3. Run tests",

16341617

);

1618+

const secondToolPayload = (dispatcher.sendToolResult as Mock).mock.calls[1]?.[0] as

1619+

| ReplyPayload

1620+

| undefined;

1621+

expect(secondToolPayload?.text).toBe("Working: awaiting approval: pnpm test");

16351622

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(2);

16361623

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

16371624

});

@@ -1667,10 +1654,7 @@ describe("dispatchReplyFromConfig", () => {

1667165416681655

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

166916561670-

expect(dispatcher.sendToolResult).toHaveBeenNthCalledWith(

1671-

1,

1672-

expect.objectContaining({ text: "Working: 1 added, 2 modified" }),

1673-

);

1657+

expect(firstToolResultPayload(dispatcher)?.text).toBe("Working: 1 added, 2 modified");

16741658

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

16751659

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

16761660

});