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

推荐订阅源

J
Java Code Geeks
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
A
About on SuperTechFans
Vercel News
Vercel News
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
V
Visual Studio Blog
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
美团技术团队

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
fix(feishu): keep group_topic message-tool replies inside...
ai-hpc · 2026-05-09 · via Recent Commits to openclaw:main

@@ -578,6 +578,149 @@ describe("feishuPlugin actions", () => {

578578

});

579579

});

580580581+

it("auto-threads `send` text against the inbound trigger in group_topic sessions", async () => {

582+

sendMessageFeishuMock.mockResolvedValueOnce({ messageId: "om_topic", chatId: "oc_group_1" });

583+584+

await feishuPlugin.actions?.handleAction?.({

585+

action: "send",

586+

params: { to: "chat:oc_group_1", text: "topic reply" },

587+

cfg,

588+

accountId: undefined,

589+

sessionKey: "feishu:group:oc_group_1:topic:om_inbound",

590+

toolContext: { currentMessageId: "om_inbound" },

591+

} as never);

592+593+

expect(sendMessageFeishuMock).toHaveBeenCalledWith({

594+

cfg,

595+

to: "chat:oc_group_1",

596+

text: "topic reply",

597+

accountId: undefined,

598+

replyToMessageId: "om_inbound",

599+

replyInThread: true,

600+

});

601+

});

602+603+

it("auto-threads `send` cards against the inbound trigger in group_topic sessions", async () => {

604+

sendCardFeishuMock.mockResolvedValueOnce({ messageId: "om_topic_card", chatId: "oc_group_1" });

605+606+

await feishuPlugin.actions?.handleAction?.({

607+

action: "send",

608+

params: {

609+

to: "chat:oc_group_1",

610+

presentation: {

611+

title: "Topic update",

612+

blocks: [{ type: "text", text: "topic reply" }],

613+

},

614+

},

615+

cfg,

616+

accountId: undefined,

617+

sessionKey: "feishu:group:oc_group_1:topic:om_inbound",

618+

toolContext: { currentMessageId: "om_inbound" },

619+

} as never);

620+621+

expect(sendCardFeishuMock).toHaveBeenCalledWith(

622+

expect.objectContaining({

623+

replyToMessageId: "om_inbound",

624+

replyInThread: true,

625+

}),

626+

);

627+

});

628+629+

it("auto-threads `send` media against the inbound trigger in group_topic sessions", async () => {

630+

feishuOutboundSendMediaMock.mockResolvedValueOnce({

631+

channel: "feishu",

632+

messageId: "om_topic_media",

633+

details: { messageId: "om_topic_media", chatId: "oc_group_1" },

634+

});

635+636+

await feishuPlugin.actions?.handleAction?.({

637+

action: "send",

638+

params: {

639+

to: "chat:oc_group_1",

640+

message: "topic reply",

641+

media: "/tmp/image.png",

642+

},

643+

cfg,

644+

accountId: undefined,

645+

sessionKey: "feishu:group:oc_group_1:topic:om_inbound",

646+

toolContext: { currentMessageId: "om_inbound" },

647+

mediaLocalRoots: ["/tmp"],

648+

} as never);

649+650+

expect(feishuOutboundSendMediaMock).toHaveBeenCalledWith(

651+

expect.objectContaining({

652+

threadId: "om_inbound",

653+

}),

654+

);

655+

expect(feishuOutboundSendMediaMock).toHaveBeenCalledWith(

656+

expect.not.objectContaining({ replyToId: expect.anything() }),

657+

);

658+

});

659+660+

it("auto-threads `send` in group_topic_sender sessions too", async () => {

661+

sendMessageFeishuMock.mockResolvedValueOnce({ messageId: "om_topic", chatId: "oc_group_1" });

662+663+

await feishuPlugin.actions?.handleAction?.({

664+

action: "send",

665+

params: { to: "chat:oc_group_1", text: "topic reply" },

666+

cfg,

667+

accountId: undefined,

668+

sessionKey: "feishu:group:oc_group_1:topic:om_inbound:sender:ou_user",

669+

toolContext: { currentMessageId: "om_inbound" },

670+

} as never);

671+672+

expect(sendMessageFeishuMock).toHaveBeenCalledWith(

673+

expect.objectContaining({

674+

replyToMessageId: "om_inbound",

675+

replyInThread: true,

676+

}),

677+

);

678+

});

679+680+

it("does not auto-thread `send` in plain group sessions (no topic)", async () => {

681+

sendMessageFeishuMock.mockResolvedValueOnce({ messageId: "om_plain", chatId: "oc_group_1" });

682+683+

await feishuPlugin.actions?.handleAction?.({

684+

action: "send",

685+

params: { to: "chat:oc_group_1", text: "plain group reply" },

686+

cfg,

687+

accountId: undefined,

688+

sessionKey: "feishu:group:oc_group_1",

689+

toolContext: { currentMessageId: "om_inbound" },

690+

} as never);

691+692+

expect(sendMessageFeishuMock).toHaveBeenCalledWith({

693+

cfg,

694+

to: "chat:oc_group_1",

695+

text: "plain group reply",

696+

accountId: undefined,

697+

replyToMessageId: undefined,

698+

replyInThread: false,

699+

});

700+

});

701+702+

it("does not auto-thread `send` in group_topic when no inbound currentMessageId is available", async () => {

703+

sendMessageFeishuMock.mockResolvedValueOnce({ messageId: "om_topic", chatId: "oc_group_1" });

704+705+

await feishuPlugin.actions?.handleAction?.({

706+

action: "send",

707+

params: { to: "chat:oc_group_1", text: "topic reply" },

708+

cfg,

709+

accountId: undefined,

710+

sessionKey: "feishu:group:oc_group_1:topic:om_inbound",

711+

toolContext: {},

712+

} as never);

713+714+

expect(sendMessageFeishuMock).toHaveBeenCalledWith({

715+

cfg,

716+

to: "chat:oc_group_1",

717+

text: "topic reply",

718+

accountId: undefined,

719+

replyToMessageId: undefined,

720+

replyInThread: false,

721+

});

722+

});

723+581724

it("creates pins", async () => {

582725

createPinFeishuMock.mockResolvedValueOnce({ messageId: "om_pin", chatId: "oc_group_1" });

583726