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

推荐订阅源

F
Fortinet All Blogs
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Exploit Database - CXSecurity.com
Help Net Security
Help Net Security
腾讯CDC
Project Zero
Project Zero
C
CXSECURITY Database RSS Feed - CXSecurity.com
IT之家
IT之家
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Darknet – Hacking Tools, Hacker News & Cyber Security
L
LINUX DO - 最新话题
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Threatpost
N
News | PayPal Newsroom
C
Cybersecurity and Infrastructure Security Agency CISA
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
SegmentFault 最新的问题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
B
Blog RSS Feed
Forbes - Security
Forbes - Security
P
Privacy & Cybersecurity Law Blog
Attack and Defense Labs
Attack and Defense Labs
V2EX - 技术
V2EX - 技术
P
Proofpoint News Feed
I
Intezer
Application and Cybersecurity Blog
Application and Cybersecurity Blog
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
T
Tenable Blog
MyScale Blog
MyScale Blog
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
W
WeLiveSecurity
D
DataBreaches.Net
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
罗磊的独立博客
The Last Watchdog
The Last Watchdog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Vulnerabilities – Threatpost
美团技术团队
Microsoft Security Blog
Microsoft Security 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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: clear slack preview fallback broad matchers · openclaw/openclaw@a84014d
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -122,6 +122,48 @@ function requireCapturedItemEventHandler() {

122122

return handler;

123123

}

124124125+

function requireRecord(value: unknown, label: string): Record<string, unknown> {

126+

expect(typeof value).toBe("object");

127+

expect(value).not.toBeNull();

128+

if (typeof value !== "object" || value === null) {

129+

throw new Error(`${label} was not an object`);

130+

}

131+

return value as Record<string, unknown>;

132+

}

133+134+

function expectRecordFields(record: Record<string, unknown>, fields: Record<string, unknown>) {

135+

for (const [key, value] of Object.entries(fields)) {

136+

expect(record[key]).toEqual(value);

137+

}

138+

}

139+140+

function requireMockCall(mock: unknown, index: number, label: string): unknown[] {

141+

const call = (mock as { mock?: { calls?: unknown[][] } }).mock?.calls?.[index];

142+

expect(call).toBeDefined();

143+

if (!call) {

144+

throw new Error(`missing ${label} call ${index + 1}`);

145+

}

146+

return call;

147+

}

148+149+

function expectMockCallArgFields(

150+

mock: unknown,

151+

index: number,

152+

label: string,

153+

fields: Record<string, unknown>,

154+

) {

155+

expectRecordFields(requireRecord(requireMockCall(mock, index, label)[0], label), fields);

156+

}

157+158+

function expectDeliverReplyCall(index: number, text: string, fields?: Record<string, unknown>) {

159+

const params = requireRecord(

160+

requireMockCall(deliverRepliesMock, index, "deliver replies")[0],

161+

"deliver replies params",

162+

);

163+

expectRecordFields(params, { replyThreadTs: THREAD_TS, ...fields });

164+

expect(params.replies).toEqual([{ text }]);

165+

}

166+125167

const noop = () => {};

126168

const noopAsync = async () => {};

127169

@@ -696,12 +738,7 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

696738697739

expect(finalizeSlackPreviewEditMock).toHaveBeenCalledTimes(1);

698740

expect(deliverRepliesMock).toHaveBeenCalledTimes(1);

699-

expect(deliverRepliesMock).toHaveBeenCalledWith(

700-

expect.objectContaining({

701-

replyThreadTs: THREAD_TS,

702-

replies: [expect.objectContaining({ text: FINAL_REPLY_TEXT })],

703-

}),

704-

);

741+

expectDeliverReplyCall(0, FINAL_REPLY_TEXT);

705742

});

706743707744

it("finalizes fast draft preview text without sending a duplicate normal reply", async () => {

@@ -720,13 +757,11 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

720757721758

expect(draftStream.flush).toHaveBeenCalledTimes(1);

722759

expect(draftStream.seal).toHaveBeenCalledTimes(1);

723-

expect(finalizeSlackPreviewEditMock).toHaveBeenCalledWith(

724-

expect.objectContaining({

725-

channelId: "C123",

726-

messageId: "171234.567",

727-

text: "✅",

728-

}),

729-

);

760+

expectMockCallArgFields(finalizeSlackPreviewEditMock, 0, "preview edit params", {

761+

channelId: "C123",

762+

messageId: "171234.567",

763+

text: "✅",

764+

});

730765

expect(deliverRepliesMock).not.toHaveBeenCalled();

731766

expect(draftStream.clear).not.toHaveBeenCalled();

732767

});

@@ -767,17 +802,17 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

767802

threadTs: THREAD_TS,

768803

status: "",

769804

});

770-

expect(reactSlackMessageMock).toHaveBeenCalledWith(

771-

"C123",

772-

"171234.111",

773-

"hourglass_flowing_sand",

774-

expect.objectContaining({ token: "xoxb-test" }),

775-

);

776-

expect(removeSlackReactionMock).toHaveBeenCalledWith(

777-

"C123",

778-

"171234.111",

779-

"hourglass_flowing_sand",

780-

expect.objectContaining({ token: "xoxb-test" }),

805+

const reactCall = requireMockCall(reactSlackMessageMock, 0, "react Slack message");

806+

expect(reactCall[0]).toBe("C123");

807+

expect(reactCall[1]).toBe("171234.111");

808+

expect(reactCall[2]).toBe("hourglass_flowing_sand");

809+

expect(requireRecord(reactCall[3], "react Slack message options").token).toBe("xoxb-test");

810+

const removeReactionCall = requireMockCall(removeSlackReactionMock, 0, "remove Slack reaction");

811+

expect(removeReactionCall[0]).toBe("C123");

812+

expect(removeReactionCall[1]).toBe("171234.111");

813+

expect(removeReactionCall[2]).toBe("hourglass_flowing_sand");

814+

expect(requireRecord(removeReactionCall[3], "remove Slack reaction options").token).toBe(

815+

"xoxb-test",

781816

);

782817

});

783818

@@ -797,12 +832,10 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

797832

);

798833799834

expect(capturedReplyOptions?.disableBlockStreaming).toBe(true);

800-

expect(capturedStatusReactionOptions).toEqual(

801-

expect.objectContaining({

802-

enabled: true,

803-

initialEmoji: "eyes",

804-

}),

805-

);

835+

expectRecordFields(requireRecord(capturedStatusReactionOptions, "status reaction options"), {

836+

enabled: true,

837+

initialEmoji: "eyes",

838+

});

806839

expect(statusReactionControllerMock.setQueued).toHaveBeenCalledTimes(1);

807840

expect(statusReactionControllerMock.setDone).toHaveBeenCalledTimes(1);

808841

});

@@ -969,13 +1002,11 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

9691002

}),

9701003

);

9711004972-

expect(startSlackStreamMock).toHaveBeenCalledWith(

973-

expect.objectContaining({

974-

channel: "C123",

975-

threadTs: "171234.111",

976-

text: FINAL_REPLY_TEXT,

977-

}),

978-

);

1005+

expectMockCallArgFields(startSlackStreamMock, 0, "Slack stream start params", {

1006+

channel: "C123",

1007+

threadTs: "171234.111",

1008+

text: FINAL_REPLY_TEXT,

1009+

});

9791010

expect(deliverRepliesMock).not.toHaveBeenCalled();

9801011

});

9811012

@@ -989,11 +1020,9 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

9891020

await dispatchPreparedSlackMessage(createPreparedSlackMessage());

99010219911022

expect(startSlackStreamMock).toHaveBeenCalledTimes(1);

992-

expect(startSlackStreamMock).toHaveBeenCalledWith(

993-

expect.objectContaining({

994-

text: FINAL_REPLY_TEXT,

995-

}),

996-

);

1023+

expectMockCallArgFields(startSlackStreamMock, 0, "Slack stream start params", {

1024+

text: FINAL_REPLY_TEXT,

1025+

});

9971026

expect(appendSlackStreamMock).not.toHaveBeenCalled();

9981027

expect(deliverRepliesMock).not.toHaveBeenCalled();

9991028

});

@@ -1008,20 +1037,8 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

1008103710091038

expect(finalizeSlackPreviewEditMock).toHaveBeenCalledTimes(1);

10101039

expect(deliverRepliesMock).toHaveBeenCalledTimes(2);

1011-

expect(deliverRepliesMock).toHaveBeenNthCalledWith(

1012-

1,

1013-

expect.objectContaining({

1014-

replyThreadTs: THREAD_TS,

1015-

replies: [expect.objectContaining({ text: SAME_TEXT })],

1016-

}),

1017-

);

1018-

expect(deliverRepliesMock).toHaveBeenNthCalledWith(

1019-

2,

1020-

expect.objectContaining({

1021-

replyThreadTs: THREAD_TS,

1022-

replies: [expect.objectContaining({ text: SAME_TEXT })],

1023-

}),

1024-

);

1040+

expectDeliverReplyCall(0, SAME_TEXT);

1041+

expectDeliverReplyCall(1, SAME_TEXT);

10251042

});

1026104310271044

it("keeps multi-part block replies in the first reply thread after the plan is consumed", async () => {

@@ -1038,20 +1055,8 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

10381055

);

1039105610401057

expect(deliverRepliesMock).toHaveBeenCalledTimes(2);

1041-

expect(deliverRepliesMock).toHaveBeenNthCalledWith(

1042-

1,

1043-

expect.objectContaining({

1044-

replyThreadTs: THREAD_TS,

1045-

replies: [expect.objectContaining({ text: "first block" })],

1046-

}),

1047-

);

1048-

expect(deliverRepliesMock).toHaveBeenNthCalledWith(

1049-

2,

1050-

expect.objectContaining({

1051-

replyThreadTs: THREAD_TS,

1052-

replies: [expect.objectContaining({ text: "second block" })],

1053-

}),

1054-

);

1058+

expectDeliverReplyCall(0, "first block");

1059+

expectDeliverReplyCall(1, "second block");

10551060

});

1056106110571062

it("does not flush draft previews for media finals before normal delivery", async () => {

@@ -1122,12 +1127,7 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

1122112711231128

expect(postMessageMock).not.toHaveBeenCalled();

11241129

expect(deliverRepliesMock).toHaveBeenCalledTimes(1);

1125-

expect(deliverRepliesMock).toHaveBeenCalledWith(

1126-

expect.objectContaining({

1127-

replyThreadTs: THREAD_TS,

1128-

replies: [expect.objectContaining({ text: FINAL_REPLY_TEXT })],

1129-

}),

1130-

);

1130+

expectDeliverReplyCall(0, FINAL_REPLY_TEXT);

11311131

expect(session.stopped).toBe(true);

11321132

});

11331133

@@ -1154,12 +1154,7 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

1154115411551155

expect(postMessageMock).not.toHaveBeenCalled();

11561156

expect(deliverRepliesMock).toHaveBeenCalledTimes(1);

1157-

expect(deliverRepliesMock).toHaveBeenCalledWith(

1158-

expect.objectContaining({

1159-

replyThreadTs: THREAD_TS,

1160-

replies: [expect.objectContaining({ text: "first buffered\nsecond flushes" })],

1161-

}),

1162-

);

1157+

expectDeliverReplyCall(0, "first buffered\nsecond flushes");

11631158

expect(stopSlackStreamMock).not.toHaveBeenCalled();

11641159

});

11651160

@@ -1183,13 +1178,7 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

1183117811841179

expect(postMessageMock).not.toHaveBeenCalled();

11851180

expect(deliverRepliesMock).toHaveBeenCalledTimes(1);

1186-

expect(deliverRepliesMock).toHaveBeenCalledWith(

1187-

expect.objectContaining({

1188-

replyThreadTs: THREAD_TS,

1189-

textLimit: 4000,

1190-

replies: [expect.objectContaining({ text: oversized })],

1191-

}),

1192-

);

1181+

expectDeliverReplyCall(0, oversized, { textLimit: 4000 });

11931182

expect(session.stopped).toBe(true);

11941183

});

11951184

@@ -1221,12 +1210,7 @@ describe("dispatchPreparedSlackMessage preview fallback", () => {

12211210

// Chunked fallback sent the FULL pendingText, not just the failing

12221211

// payload (so the earlier buffered chunk is not dropped).

12231212

expect(deliverRepliesMock).toHaveBeenCalledTimes(1);

1224-

expect(deliverRepliesMock).toHaveBeenCalledWith(

1225-

expect.objectContaining({

1226-

replyThreadTs: THREAD_TS,

1227-

replies: [expect.objectContaining({ text: "first buffered\nsecond payload" })],

1228-

}),

1229-

);

1213+

expectDeliverReplyCall(0, "first buffered\nsecond payload");

12301214

// Session was marked fallback-delivered by deliverPendingStreamFallback,

12311215

// so finalize skips stopSlackStream.

12321216

expect(session.pendingText).toBe("");