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

推荐订阅源

U
Unit 42
T
The Blog of Author Tim Ferriss
H
Help Net Security
博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
博客园 - 聂微东
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
B
Blog
Engineering at Meta
Engineering at Meta
V
V2EX
Hugging Face - Blog
Hugging Face - 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 Discord verbose tool progress delivery (#80042) · ope...
anyech · 2026-05-18 · via Recent Commits to openclaw:main

@@ -119,6 +119,7 @@ describe("deliverDiscordReply", () => {

119119

textLimit: 2000,

120120

replyToId: "reply-1",

121121

replyToMode: "all",

122+

kind: "final",

122123

});

123124124125

const params = firstDeliverParams();

@@ -151,10 +152,30 @@ describe("deliverDiscordReply", () => {

151152

runtime,

152153

cfg,

153154

textLimit: 2000,

155+

kind: "final",

154156

}),

155157

).rejects.toThrow("discord final reply produced no delivered message for channel:101");

156158

});

157159160+

it("preserves explicit tool progress payloads at the tool delivery boundary", async () => {

161+

await deliverDiscordReply({

162+

replies: [{ text: "🛠️ Exec: `echo visible`" }],

163+

target: "channel:101",

164+

token: "token",

165+

accountId: "default",

166+

runtime,

167+

cfg,

168+

textLimit: 2000,

169+

kind: "tool",

170+

});

171+172+

expect(sendDurableMessageBatchMock).toHaveBeenCalledWith(

173+

expect.objectContaining({

174+

payloads: [{ text: "🛠️ Exec: `echo visible`" }],

175+

}),

176+

);

177+

});

178+158179

it("strips internal execution trace lines at the final Discord send boundary", async () => {

159180

await deliverDiscordReply({

160181

replies: [

@@ -177,6 +198,7 @@ describe("deliverDiscordReply", () => {

177198

runtime,

178199

cfg,

179200

textLimit: 2000,

201+

kind: "final",

180202

});

181203182204

expect(firstDeliverParams().payloads).toEqual([{ text: "Visible reply." }]);

@@ -196,6 +218,7 @@ describe("deliverDiscordReply", () => {

196218

runtime,

197219

cfg,

198220

textLimit: 2000,

221+

kind: "final",

199222

});

200223201224

expect(firstDeliverParams().payloads).toEqual([

@@ -235,6 +258,7 @@ describe("deliverDiscordReply", () => {

235258

runtime,

236259

cfg,

237260

textLimit: 2000,

261+

kind: "final",

238262

});

239263240264

expect(firstDeliverParams().payloads).toEqual([{ channelData, text: undefined }]);

@@ -264,6 +288,7 @@ describe("deliverDiscordReply", () => {

264288

runtime,

265289

cfg,

266290

textLimit: 2000,

291+

kind: "final",

267292

});

268293269294

expect(firstDeliverParams().payloads).toEqual([{ presentation, text: undefined }]);

@@ -280,6 +305,7 @@ describe("deliverDiscordReply", () => {

280305

runtime,

281306

cfg,

282307

textLimit: 2000,

308+

kind: "final",

283309

});

284310285311

expect(firstDeliverParams().payloads).toEqual([{ text }]);

@@ -301,6 +327,7 @@ describe("deliverDiscordReply", () => {

301327

runtime,

302328

cfg,

303329

textLimit: 2000,

330+

kind: "final",

304331

});

305332306333

expect(firstDeliverParams().payloads).toEqual([{ text }]);

@@ -334,6 +361,7 @@ describe("deliverDiscordReply", () => {

334361

maxLinesPerMessage: 7,

335362

tableMode: "off",

336363

chunkMode: "newline",

364+

kind: "final",

337365

});

338366339367

expect(firstDeliverParams().cfg).toBe(baseCfg);

@@ -363,6 +391,7 @@ describe("deliverDiscordReply", () => {

363391

textLimit: 2000,

364392

replyToMode: "off",

365393

mediaLocalRoots: ["/tmp/openclaw-media"],

394+

kind: "final",

366395

});

367396368397

const params = firstDeliverParams();

@@ -381,6 +410,7 @@ describe("deliverDiscordReply", () => {

381410

cfg,

382411

textLimit: 2000,

383412

replyToId: "reply-1",

413+

kind: "final",

384414

});

385415386416

const deps = firstDeliverParams().deps!;

@@ -429,6 +459,7 @@ describe("deliverDiscordReply", () => {

429459

replyToId: "reply-1",

430460

sessionKey: "agent:main:subagent:child",

431461

threadBindings,

462+

kind: "final",

432463

});

433464434465

const params = firstDeliverParams();