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

推荐订阅源

博客园 - 司徒正美
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
WordPress大学
WordPress大学
罗磊的独立博客
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security
S
SegmentFault 最新的问题
C
Check Point Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
Engineering at Meta
Engineering at Meta
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
D
DataBreaches.Net
雷峰网
雷峰网
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(agents): recognize bare-ok broadcast sends · openclaw...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -205,6 +205,21 @@ describe("isDeliveredMessagingToolResult", () => {

205205

result: { results: [{ channel: "googlechat", to: "space-1", ok: true }] },

206206

}),

207207

).toBe(false);

208+

expect(

209+

isDeliveredMessagingToolResult({

210+

args: { action: "broadcast" },

211+

result: {

212+

results: [

213+

{

214+

channel: "googlechat",

215+

to: "space-1",

216+

ok: true,

217+

payload: { ok: true, to: "spaces/AAA" },

218+

},

219+

],

220+

},

221+

}),

222+

).toBe(true);

208223

});

209224
210225

it("rejects successful broadcast wrappers around suppressed sends", () => {

@@ -222,6 +237,15 @@ describe("isDeliveredMessagingToolResult", () => {

222237

result: { results: [{ ok: true, result: { deliveryStatus: "suppressed" } }] },

223238

}),

224239

).toBe(false);

240+

expect(

241+

isDeliveredMessagingToolResult({

242+

toolName: "message",

243+

args: { action: "broadcast" },

244+

result: {

245+

results: [{ ok: true, payload: { ok: true, deliveryStatus: "suppressed" } }],

246+

},

247+

}),

248+

).toBe(false);

225249

});

226250
227251

it("accepts failed broadcast entries with partial-delivery evidence", () => {

Original file line numberDiff line numberDiff line change

@@ -24,6 +24,7 @@ const RESULT_ENVELOPE_KEYS = [

2424

"sendResult",

2525

"toolResult",

2626

];

27+

const BROADCAST_SEND_ENVELOPE_KEYS = ["payload", "result", "sendResult", "toolResult"];

2728

const PARTIAL_DELIVERY_ENVELOPE_KEYS = [...RESULT_ENVELOPE_KEYS, "error", "cause"];

2829

const SESSIONS_SEND_DELIVERY_STATUSES = new Set(["accepted", "ok"]);

2930

const CONVERSATION_CREATE_ACTIONS = new Set([

@@ -233,6 +234,20 @@ function deliveryEnvelopeIndicatesNoOp(value: unknown, depth = 0): boolean {

233234

return RESULT_ENVELOPE_KEYS.some((key) => deliveryEnvelopeIndicatesNoOp(record[key], depth + 1));

234235

}

235236
237+

function broadcastEntryHasSuccessfulBareOkSend(

238+

record: Record<string, unknown>,

239+

depth: number,

240+

): boolean {

241+

return BROADCAST_SEND_ENVELOPE_KEYS.some((key) => {

242+

const value = record[key];

243+

return (

244+

deliveryEnvelopeIndicatesOk(value, depth + 1) &&

245+

!deliveryEnvelopeIndicatesNonDelivery(value, depth + 1) &&

246+

!deliveryEnvelopeIndicatesNoOp(value, depth + 1)

247+

);

248+

});

249+

}

250+
236251

function deliveryEnvelopeIndicatesSuccessfulBroadcast(value: unknown, depth = 0): boolean {

237252

if (!value || typeof value !== "object" || depth > 4) {

238253

return false;

@@ -246,7 +261,8 @@ function deliveryEnvelopeIndicatesSuccessfulBroadcast(value: unknown, depth = 0)

246261

(item as Record<string, unknown>).ok === true &&

247262

!deliveryEnvelopeIndicatesNonDelivery(item) &&

248263

!deliveryEnvelopeIndicatesNoOp(item) &&

249-

deliveryEnvelopeIndicatesDelivered(item, depth + 1),

264+

(deliveryEnvelopeIndicatesDelivered(item, depth + 1) ||

265+

broadcastEntryHasSuccessfulBareOkSend(item as Record<string, unknown>, depth + 1)),

250266

);

251267

}

252268

const record = value as Record<string, unknown>;