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

推荐订阅源

爱范儿
爱范儿
WordPress大学
WordPress大学
C
Check Point Blog
GbyAI
GbyAI
U
Unit 42
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hugging Face - Blog
Hugging Face - Blog
Vercel News
Vercel News
博客园 - 【当耐特】
美团技术团队
小众软件
小众软件
S
SegmentFault 最新的问题
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio 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 subagent dm completion delivery (#88182) · openclaw/o...
joshavant · 2026-05-30 · via Recent Commits to openclaw:main

@@ -1215,6 +1215,56 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

12151215

);

12161216

});

121712171218+

it("directly delivers direct-message subagent text when the announce agent omits the result", async () => {

1219+

const callGateway = createGatewayMock({

1220+

result: {

1221+

payloads: [{ text: "TG88042_NO_REOUTPUT" }],

1222+

},

1223+

});

1224+

const sendMessage = createSendMessageMock();

1225+1226+

const result = await deliverDiscordDirectMessageCompletion({

1227+

callGateway,

1228+

sendMessage,

1229+

internalEvents: [

1230+

{

1231+

type: "task_completion",

1232+

source: "subagent",

1233+

childSessionKey: "agent:worker:subagent:child",

1234+

childSessionId: "child-session-id",

1235+

announceType: "subagent task",

1236+

taskLabel: "direct completion smoke",

1237+

status: "ok",

1238+

statusLabel: "completed successfully",

1239+

result: "TG88042_CHILD",

1240+

replyInstruction: "Summarize the result.",

1241+

},

1242+

],

1243+

});

1244+1245+

expectRecordFields(result, {

1246+

delivered: true,

1247+

path: "direct",

1248+

});

1249+

expect(sendMessage).toHaveBeenCalledWith(

1250+

expect.objectContaining({

1251+

channel: "discord",

1252+

accountId: "acct-1",

1253+

to: "dm:U123",

1254+

content: "TG88042_CHILD",

1255+

idempotencyKey: "announce-dm-fallback-empty:text-direct",

1256+

}),

1257+

);

1258+

expectGatewayAgentParams(callGateway, {

1259+

deliver: false,

1260+

channel: "discord",

1261+

accountId: "acct-1",

1262+

to: "dm:U123",

1263+

threadId: undefined,

1264+

sourceReplyDeliveryMode: "message_tool_only",

1265+

});

1266+

});

1267+12181268

it("does not directly deliver failed subagent placeholder output", async () => {

12191269

const callGateway = createGatewayMock({

12201270

result: {

@@ -4176,14 +4226,18 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

41764226

});

41774227

});

417842284179-

it("keeps automatic final delivery for direct subagent completions", async () => {

4229+

it("requires message-tool delivery for direct subagent completions", async () => {

41804230

const callGateway = createGatewayMock({

41814231

result: {

4182-

payloads: [{ text: "The subagent is done." }],

4232+

payloads: [{ text: "The subagent is done: child completion output" }],

4233+

didSendViaMessagingTool: true,

4234+

messagingToolSentTexts: ["The subagent is done: child completion output"],

41834235

},

41844236

});

4237+

const sendMessage = createSendMessageMock();

41854238

const result = await deliverDiscordDirectMessageCompletion({

41864239

callGateway,

4240+

sendMessage,

41874241

sourceTool: "subagent_announce",

41884242

internalEvents: [

41894243

{

@@ -4206,12 +4260,14 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

42064260

path: "direct",

42074261

});

42084262

expectGatewayAgentParams(callGateway, {

4209-

deliver: true,

4263+

deliver: false,

42104264

channel: "discord",

42114265

accountId: "acct-1",

42124266

to: "dm:U123",

42134267

threadId: undefined,

4268+

sourceReplyDeliveryMode: "message_tool_only",

42144269

});

4270+

expect(sendMessage).not.toHaveBeenCalled();

42154271

});

4216427242174273

it("falls back to the external requester route when completion origin is internal", async () => {