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

推荐订阅源

Engineering at Meta
Engineering at Meta
The GitHub Blog
The GitHub Blog
博客园_首页
T
The Blog of Author Tim Ferriss
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
I
InfoQ
量子位
J
Java Code Geeks
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
Webroot Blog
Webroot Blog
Martin Fowler
Martin Fowler
D
Docker
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
罗磊的独立博客
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
Cyberwarzone
Cyberwarzone
P
Privacy & Cybersecurity Law Blog
Last Week in AI
Last Week in AI
爱范儿
爱范儿
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
V
V2EX
Simon Willison's Weblog
Simon Willison's Weblog
AI
AI
Y
Y Combinator Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
V
Visual Studio Blog
H
Heimdal Security Blog
S
Secure Thoughts
B
Blog RSS Feed
雷峰网
雷峰网
T
Tenable Blog
C
Check Point Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
Recent Commits to openclaw:main
Recent Commits to openclaw:main

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: tighten feishu outbound comment assertions · openclaw/openclaw@7b3805f
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -186,6 +186,20 @@ function sendStructuredCardCall(index = 0): Record<string, any> | undefined {

186186

return calls[index]?.[0];

187187

}

188188189+

function commentThreadParams(index = 0): Record<string, any> | undefined {

190+

const calls = deliverCommentThreadTextMock.mock.calls as unknown as Array<

191+

[unknown, Record<string, any>]

192+

>;

193+

return calls[index]?.[1];

194+

}

195+196+

function cleanupReactionCall(index = 0): Record<string, any> | undefined {

197+

const calls = cleanupAmbientCommentTypingReactionMock.mock.calls as unknown as Array<

198+

[Record<string, any>]

199+

>;

200+

return calls[index]?.[0];

201+

}

202+189203

function expectFeishuResult(result: unknown, messageId: string) {

190204

const typedResult = result as { channel?: string; messageId?: string } | undefined;

191205

expect(typedResult?.channel).toBe("feishu");

@@ -530,25 +544,19 @@ describe("feishuOutbound.sendPayload native cards", () => {

530544

});

531545532546

const card = sendCardFeishuMock.mock.calls[0][0].card;

533-

expect(card.body.elements).toEqual(

534-

expect.arrayContaining([

535-

{ tag: "markdown", content: 'Choose &lt;at id="ou_1"&gt;' },

536-

{

537-

tag: "markdown",

538-

content:

539-

"<font color='grey'>&lt;/font&gt;&lt;at id=\"ou_2\"&gt;Injected&lt;/at&gt;</font>",

540-

},

541-

{

542-

tag: "action",

543-

actions: [

544-

expect.objectContaining({

545-

text: { tag: "plain_text", content: "Open" },

546-

url: "https://example.com/path",

547-

}),

548-

],

549-

},

550-

]),

547+

expect(card.body.elements[0]).toEqual({

548+

tag: "markdown",

549+

content: 'Choose &lt;at id="ou_1"&gt;',

550+

});

551+

expect(card.body.elements[1]).toEqual({

552+

tag: "markdown",

553+

content: "<font color='grey'>&lt;/font&gt;&lt;at id=\"ou_2\"&gt;Injected&lt;/at&gt;</font>",

554+

});

555+

const actionElement = card.body.elements.find(

556+

(element: { tag?: string }) => element.tag === "action",

551557

);

558+

expect(actionElement?.actions[0]?.text).toEqual({ tag: "plain_text", content: "Open" });

559+

expect(actionElement?.actions[0]?.url).toBe("https://example.com/path");

552560

expect(JSON.stringify(card)).not.toContain("javascript:");

553561

});

554562

@@ -602,10 +610,12 @@ describe("feishuOutbound.sendPayload native cards", () => {

602610

{

603611

tag: "action",

604612

actions: [

605-

expect.objectContaining({

613+

{

614+

tag: "button",

606615

text: { tag: "plain_text", content: "Good link" },

616+

type: "default",

607617

url: "https://example.com",

608-

}),

618+

},

609619

],

610620

},

611621

]);

@@ -629,23 +639,13 @@ describe("feishuOutbound.sendPayload native cards", () => {

629639

},

630640

});

631641632-

expect(sendMediaFeishuMock).toHaveBeenCalledWith(

633-

expect.objectContaining({

634-

to: "chat_1",

635-

mediaUrl: "/tmp/image.png",

636-

mediaLocalRoots: ["/tmp"],

637-

accountId: "main",

638-

}),

639-

);

640-

expect(sendCardFeishuMock).toHaveBeenCalledWith(

641-

expect.objectContaining({

642-

to: "chat_1",

643-

accountId: "main",

644-

}),

645-

);

646-

expect(result).toEqual(

647-

expect.objectContaining({ channel: "feishu", messageId: "native_card_msg" }),

648-

);

642+

expect(sendMediaCall()?.to).toBe("chat_1");

643+

expect(sendMediaCall()?.mediaUrl).toBe("/tmp/image.png");

644+

expect(sendMediaCall()?.mediaLocalRoots).toEqual(["/tmp"]);

645+

expect(sendMediaCall()?.accountId).toBe("main");

646+

expect(sendCardCall()?.to).toBe("chat_1");

647+

expect(sendCardCall()?.accountId).toBe("main");

648+

expectFeishuResult(result, "native_card_msg");

649649

});

650650651651

it("keeps text/media fallback behavior for non-card payloads, including local image text", async () => {

@@ -661,18 +661,12 @@ describe("feishuOutbound.sendPayload native cards", () => {

661661

});

662662663663

expect(sendCardFeishuMock).not.toHaveBeenCalled();

664-

expect(sendMediaFeishuMock).toHaveBeenCalledWith(

665-

expect.objectContaining({

666-

to: "chat_1",

667-

mediaUrl: file,

668-

mediaLocalRoots: [dir],

669-

accountId: "main",

670-

}),

671-

);

664+

expect(sendMediaCall()?.to).toBe("chat_1");

665+

expect(sendMediaCall()?.mediaUrl).toBe(file);

666+

expect(sendMediaCall()?.mediaLocalRoots).toEqual([dir]);

667+

expect(sendMediaCall()?.accountId).toBe("main");

672668

expect(sendMessageFeishuMock).not.toHaveBeenCalled();

673-

expect(result).toEqual(

674-

expect.objectContaining({ channel: "feishu", messageId: "media_msg" }),

675-

);

669+

expectFeishuResult(result, "media_msg");

676670

} finally {

677671

await fs.rm(dir, { recursive: true, force: true });

678672

}

@@ -693,13 +687,8 @@ describe("feishuOutbound.sendPayload native cards", () => {

693687

});

694688695689

expect(sendCardFeishuMock).not.toHaveBeenCalled();

696-

expect(deliverCommentThreadTextMock).toHaveBeenCalledWith(

697-

expect.anything(),

698-

expect.objectContaining({

699-

content: "Review this\n\n- Approve",

700-

}),

701-

);

702-

expect(result).toEqual(expect.objectContaining({ channel: "feishu", messageId: "reply_msg" }));

690+

expect(commentThreadParams()?.content).toBe("Review this\n\n- Approve");

691+

expectFeishuResult(result, "reply_msg");

703692

});

704693

});

705694

@@ -716,17 +705,12 @@ describe("feishuOutbound comment-thread routing", () => {

716705

accountId: "main",

717706

});

718707719-

expect(deliverCommentThreadTextMock).toHaveBeenCalledWith(

720-

expect.anything(),

721-

expect.objectContaining({

722-

file_token: "doxcn123",

723-

file_type: "docx",

724-

comment_id: "7623358762119646411",

725-

content: "handled in thread",

726-

}),

727-

);

708+

expect(commentThreadParams()?.file_token).toBe("doxcn123");

709+

expect(commentThreadParams()?.file_type).toBe("docx");

710+

expect(commentThreadParams()?.comment_id).toBe("7623358762119646411");

711+

expect(commentThreadParams()?.content).toBe("handled in thread");

728712

expect(sendMessageFeishuMock).not.toHaveBeenCalled();

729-

expect(result).toEqual(expect.objectContaining({ channel: "feishu", messageId: "reply_msg" }));

713+

expectFeishuResult(result, "reply_msg");

730714

});

731715732716

it("routes comment-thread code-block replies through deliverCommentThreadText instead of IM cards", async () => {

@@ -737,18 +721,13 @@ describe("feishuOutbound comment-thread routing", () => {

737721

accountId: "main",

738722

});

739723740-

expect(deliverCommentThreadTextMock).toHaveBeenCalledWith(

741-

expect.anything(),

742-

expect.objectContaining({

743-

file_token: "doxcn123",

744-

file_type: "docx",

745-

comment_id: "7623358762119646411",

746-

content: "```ts\nconst x = 1\n```",

747-

}),

748-

);

724+

expect(commentThreadParams()?.file_token).toBe("doxcn123");

725+

expect(commentThreadParams()?.file_type).toBe("docx");

726+

expect(commentThreadParams()?.comment_id).toBe("7623358762119646411");

727+

expect(commentThreadParams()?.content).toBe("```ts\nconst x = 1\n```");

749728

expect(sendStructuredCardFeishuMock).not.toHaveBeenCalled();

750729

expect(sendMarkdownCardFeishuMock).not.toHaveBeenCalled();

751-

expect(result).toEqual(expect.objectContaining({ channel: "feishu", messageId: "reply_msg" }));

730+

expectFeishuResult(result, "reply_msg");

752731

});

753732754733

it("routes comment-thread replies through deliverCommentThreadText even when renderMode=card", async () => {

@@ -759,18 +738,13 @@ describe("feishuOutbound comment-thread routing", () => {

759738

accountId: "main",

760739

});

761740762-

expect(deliverCommentThreadTextMock).toHaveBeenCalledWith(

763-

expect.anything(),

764-

expect.objectContaining({

765-

file_token: "doxcn123",

766-

file_type: "docx",

767-

comment_id: "7623358762119646411",

768-

content: "handled in thread",

769-

}),

770-

);

741+

expect(commentThreadParams()?.file_token).toBe("doxcn123");

742+

expect(commentThreadParams()?.file_type).toBe("docx");

743+

expect(commentThreadParams()?.comment_id).toBe("7623358762119646411");

744+

expect(commentThreadParams()?.content).toBe("handled in thread");

771745

expect(sendStructuredCardFeishuMock).not.toHaveBeenCalled();

772746

expect(sendMarkdownCardFeishuMock).not.toHaveBeenCalled();

773-

expect(result).toEqual(expect.objectContaining({ channel: "feishu", messageId: "reply_msg" }));

747+

expectFeishuResult(result, "reply_msg");

774748

});

775749776750

it("falls back to a text-only comment reply for media payloads", async () => {

@@ -782,14 +756,9 @@ describe("feishuOutbound comment-thread routing", () => {

782756

accountId: "main",

783757

});

784758785-

expect(deliverCommentThreadTextMock).toHaveBeenCalledWith(

786-

expect.anything(),

787-

expect.objectContaining({

788-

content: "see attachment\n\nhttps://example.com/file.png",

789-

}),

790-

);

759+

expect(commentThreadParams()?.content).toBe("see attachment\n\nhttps://example.com/file.png");

791760

expect(sendMediaFeishuMock).not.toHaveBeenCalled();

792-

expect(result).toEqual(expect.objectContaining({ channel: "feishu", messageId: "reply_msg" }));

761+

expectFeishuResult(result, "reply_msg");

793762

});

794763795764

it("preserves comment-thread routing when deliverCommentThreadText falls back to add_comment", async () => {

@@ -806,21 +775,11 @@ describe("feishuOutbound comment-thread routing", () => {

806775

accountId: "main",

807776

});

808777809-

expect(deliverCommentThreadTextMock).toHaveBeenCalledWith(

810-

expect.anything(),

811-

expect.objectContaining({

812-

file_token: "doxcn123",

813-

file_type: "docx",

814-

comment_id: "7623358762119646411",

815-

content: "whole-comment follow-up",

816-

}),

817-

);

818-

expect(result).toEqual(

819-

expect.objectContaining({

820-

channel: "feishu",

821-

messageId: "reply_from_add_comment",

822-

}),

823-

);

778+

expect(commentThreadParams()?.file_token).toBe("doxcn123");

779+

expect(commentThreadParams()?.file_type).toBe("docx");

780+

expect(commentThreadParams()?.comment_id).toBe("7623358762119646411");

781+

expect(commentThreadParams()?.content).toBe("whole-comment follow-up");

782+

expectFeishuResult(result, "reply_from_add_comment");

824783

});

825784826785

it("does not wait for ambient comment typing cleanup before sending comment-thread replies", async () => {

@@ -844,13 +803,11 @@ describe("feishuOutbound comment-thread routing", () => {

844803845804

expect(status).toBe("done");

846805

expect(deliverCommentThreadTextMock).toHaveBeenCalled();

847-

expect(cleanupAmbientCommentTypingReactionMock).toHaveBeenCalledWith({

848-

client: expect.anything(),

849-

deliveryContext: {

850-

channel: "feishu",

851-

to: "comment:docx:doxcn123:7623358762119646411",

852-

threadId: "reply_ambient_1",

853-

},

806+

expect(cleanupReactionCall()?.client).toBeDefined();

807+

expect(cleanupReactionCall()?.deliveryContext).toEqual({

808+

channel: "feishu",

809+

to: "comment:docx:doxcn123:7623358762119646411",

810+

threadId: "reply_ambient_1",

854811

});

855812856813

resolveCleanup?.(false);

@@ -872,14 +829,10 @@ describe("feishuOutbound.sendText replyToId forwarding", () => {

872829

accountId: "main",

873830

});

874831875-

expect(sendMessageFeishuMock).toHaveBeenCalledWith(

876-

expect.objectContaining({

877-

to: "chat_1",

878-

text: "hello",

879-

replyToMessageId: "om_reply_target",

880-

accountId: "main",

881-

}),

882-

);

832+

expect(sendMessageCall()?.to).toBe("chat_1");

833+

expect(sendMessageCall()?.text).toBe("hello");

834+

expect(sendMessageCall()?.replyToMessageId).toBe("om_reply_target");

835+

expect(sendMessageCall()?.accountId).toBe("main");

883836

});

884837885838

it("forwards replyToId to sendStructuredCardFeishu when renderMode=card", async () => {

@@ -891,11 +844,7 @@ describe("feishuOutbound.sendText replyToId forwarding", () => {

891844

accountId: "main",

892845

});

893846894-

expect(sendStructuredCardFeishuMock).toHaveBeenCalledWith(

895-

expect.objectContaining({

896-

replyToMessageId: "om_reply_target",

897-

}),

898-

);

847+

expect(sendStructuredCardCall()?.replyToMessageId).toBe("om_reply_target");

899848

});

900849901850

it("does not pass replyToMessageId when replyToId is absent", async () => {