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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
小众软件
小众软件
D
Docker
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
博客园 - 叶小钗
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
IT之家
IT之家
博客园 - 司徒正美
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Check Point 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
fix(ui): hide heartbeat acknowledgements · openclaw/openc...
BunsDev · 2026-05-05 · via Recent Commits to openclaw:main

@@ -50,9 +50,9 @@ describe("buildChatItems", () => {

5050

it("collapses consecutive duplicate text messages into one rendered item with a count", () => {

5151

const groups = messageGroups({

5252

messages: [

53-

{ role: "assistant", content: [{ type: "text", text: "HEARTBEAT_OK" }], timestamp: 1 },

54-

{ role: "assistant", content: [{ type: "text", text: "HEARTBEAT_OK" }], timestamp: 2 },

55-

{ role: "assistant", content: [{ type: "text", text: "HEARTBEAT_OK" }], timestamp: 3 },

53+

{ role: "assistant", content: [{ type: "text", text: "Same update" }], timestamp: 1 },

54+

{ role: "assistant", content: [{ type: "text", text: "Same update" }], timestamp: 2 },

55+

{ role: "assistant", content: [{ type: "text", text: "Same update" }], timestamp: 3 },

5656

],

5757

});

5858

@@ -61,6 +61,96 @@ describe("buildChatItems", () => {

6161

expect(groups[0].messages[0]).toMatchObject({ duplicateCount: 3 });

6262

});

636364+

it("suppresses assistant HEARTBEAT_OK acknowledgements before rendering history", () => {

65+

const groups = messageGroups({

66+

messages: [

67+

{ role: "assistant", content: [{ type: "text", text: "HEARTBEAT_OK" }], timestamp: 1 },

68+

{ role: "assistant", content: "HEARTBEAT_OK", timestamp: 2 },

69+

{ role: "user", content: [{ type: "text", text: "HEARTBEAT_OK" }], timestamp: 3 },

70+

{ role: "assistant", content: [{ type: "text", text: "Visible reply" }], timestamp: 4 },

71+

],

72+

});

73+74+

expect(groups).toHaveLength(2);

75+

expect(groups[0].role).toBe("user");

76+

expect(groups[1].role).toBe("assistant");

77+

expect(groups[1].messages[0].message).toMatchObject({

78+

content: [{ type: "text", text: "Visible reply" }],

79+

});

80+

});

81+82+

it("suppresses assistant HEARTBEAT_OK acknowledgements that carry hidden thinking blocks", () => {

83+

const groups = messageGroups({

84+

messages: [

85+

{

86+

role: "assistant",

87+

content: [

88+

{ type: "thinking", thinking: "Checking scheduled work." },

89+

{

90+

type: "text",

91+

text: "HEARTBEAT_OK",

92+

textSignature: JSON.stringify({ v: 1, phase: "final_answer" }),

93+

},

94+

],

95+

timestamp: 1,

96+

},

97+

{

98+

role: "assistant",

99+

content: [

100+

{ id: "rs_1", type: "reasoning" },

101+

{ type: "text", text: "HEARTBEAT_OK" },

102+

],

103+

timestamp: 2,

104+

},

105+

{

106+

role: "assistant",

107+

content: [

108+

{ type: "thinking", thinking: "Useful hidden reasoning." },

109+

{ type: "text", text: "Visible reply" },

110+

],

111+

timestamp: 3,

112+

},

113+

],

114+

});

115+116+

expect(groups).toHaveLength(1);

117+

expect(groups[0].messages).toHaveLength(1);

118+

expect(groups[0].messages[0].message).toMatchObject({

119+

content: [

120+

{ type: "thinking", thinking: "Useful hidden reasoning." },

121+

{ type: "text", text: "Visible reply" },

122+

],

123+

});

124+

});

125+126+

it("keeps HEARTBEAT_OK turns that carry visible non-text content", () => {

127+

const canvasBlock = createAssistantCanvasBlock({ suffix: "heartbeat_visible_content" });

128+

const groups = messageGroups({

129+

messages: [

130+

{

131+

role: "assistant",

132+

content: [{ type: "text", text: "HEARTBEAT_OK" }, canvasBlock],

133+

timestamp: 1,

134+

},

135+

],

136+

});

137+138+

expect(groups).toHaveLength(1);

139+

expect(groups[0].messages).toHaveLength(1);

140+

expect(firstMessageContent(groups[0]).some((block) => isCanvasBlock(block))).toBe(true);

141+

});

142+143+

it("suppresses active HEARTBEAT_OK streams before rendering", () => {

144+

const items = buildChatItems(

145+

createProps({

146+

stream: "HEARTBEAT_OK",

147+

streamStartedAt: 1,

148+

}),

149+

);

150+151+

expect(items).toEqual([]);

152+

});

153+64154

it("does not collapse duplicate text messages separated by another message", () => {

65155

const groups = messageGroups({

66156

messages: [