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

推荐订阅源

博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
Microsoft Azure Blog
Microsoft Azure Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
Y
Y Combinator Blog
D
DataBreaches.Net
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements

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(replies): preserve rich outbound content · openclaw/o...
vincentkoc · 2026-05-14 · via Recent Commits to openclaw:main

@@ -36,6 +36,20 @@ describe("createBlockReplyPayloadKey", () => {

3636

expect(a).not.toBe(b);

3737

});

383839+

it("produces different keys for payloads with different presentation content", () => {

40+

const a = createBlockReplyPayloadKey({

41+

presentation: {

42+

blocks: [{ type: "buttons", buttons: [{ label: "Approve", value: "approve" }] }],

43+

},

44+

});

45+

const b = createBlockReplyPayloadKey({

46+

presentation: {

47+

blocks: [{ type: "buttons", buttons: [{ label: "Reject", value: "reject" }] }],

48+

},

49+

});

50+

expect(a).not.toBe(b);

51+

});

52+3953

it("trims whitespace from text for key comparison", () => {

4054

const a = createBlockReplyPayloadKey({ text: " hello " });

4155

const b = createBlockReplyPayloadKey({ text: "hello" });

@@ -51,6 +65,29 @@ describe("createBlockReplyContentKey", () => {

5165

expect(a).toBe(b);

5266

expect(a).toBe(c);

5367

});

68+69+

it("keeps rich content in the reply-independent content key", () => {

70+

const a = createBlockReplyContentKey({

71+

presentation: {

72+

blocks: [{ type: "buttons", buttons: [{ label: "Approve", value: "approve" }] }],

73+

},

74+

replyToId: "post-1",

75+

});

76+

const b = createBlockReplyContentKey({

77+

presentation: {

78+

blocks: [{ type: "buttons", buttons: [{ label: "Approve", value: "approve" }] }],

79+

},

80+

replyToId: "post-2",

81+

});

82+

const c = createBlockReplyContentKey({

83+

presentation: {

84+

blocks: [{ type: "buttons", buttons: [{ label: "Reject", value: "reject" }] }],

85+

},

86+

replyToId: "post-1",

87+

});

88+

expect(a).toBe(b);

89+

expect(a).not.toBe(c);

90+

});

5491

});

55925693

describe("createBlockReplyPipeline dedup with threading", () => {

@@ -106,6 +143,30 @@ describe("createBlockReplyPipeline dedup with threading", () => {

106143

]);

107144

});

108145146+

it("keeps separate deliveries for distinct rich-only payloads", async () => {

147+

const sent: Array<{ presentation?: unknown }> = [];

148+

const pipeline = createBlockReplyPipeline({

149+

onBlockReply: async (payload) => {

150+

sent.push({ presentation: payload.presentation });

151+

},

152+

timeoutMs: 5000,

153+

});

154+155+

pipeline.enqueue({

156+

presentation: {

157+

blocks: [{ type: "buttons", buttons: [{ label: "Approve", value: "approve" }] }],

158+

},

159+

});

160+

pipeline.enqueue({

161+

presentation: {

162+

blocks: [{ type: "buttons", buttons: [{ label: "Reject", value: "reject" }] }],

163+

},

164+

});

165+

await pipeline.flush({ force: true });

166+167+

expect(sent).toHaveLength(2);

168+

});

169+109170

it("does not track media when text-only blocks are delivered", async () => {

110171

const pipeline = createBlockReplyPipeline({

111172

onBlockReply: async () => {},