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

推荐订阅源

博客园 - 聂微东
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
博客园 - 司徒正美
博客园 - Franky
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
量子位
博客园 - 叶小钗
博客园_首页
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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: require message tool for generated media completions...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -1199,6 +1199,7 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

11991199

const result = await deliverDiscordDirectMessageCompletion({

12001200

callGateway,

12011201

sendMessage,

1202+

sourceTool: "music_generate",

12021203

internalEvents: [

12031204

{

12041205

type: "task_completion",

@@ -1219,14 +1220,15 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

12191220

expectRecordFields(result, {

12201221

delivered: false,

12211222

path: "direct",

1222-

error: "completion agent did not produce a visible reply",

1223+

error: "completion agent did not deliver through the message tool",

12231224

});

12241225

expectGatewayAgentParams(callGateway, {

1225-

deliver: true,

1226+

deliver: false,

12261227

channel: "discord",

12271228

accountId: "acct-1",

12281229

to: "dm:U123",

12291230

threadId: undefined,

1231+

sourceReplyDeliveryMode: "message_tool_only",

12301232

});

12311233

expect(sendMessage).not.toHaveBeenCalled();

12321234

});

@@ -1243,6 +1245,7 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

12431245

const result = await deliverDiscordDirectMessageCompletion({

12441246

callGateway,

12451247

sendMessage,

1248+

sourceTool: "music_generate",

12461249

internalEvents: [

12471250

{

12481251

type: "task_completion",

@@ -1265,14 +1268,27 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

12651268

path: "direct",

12661269

});

12671270

expect(callGateway).toHaveBeenCalledTimes(1);

1271+

expectGatewayAgentParams(callGateway, {

1272+

deliver: false,

1273+

channel: "discord",

1274+

accountId: "acct-1",

1275+

to: "dm:U123",

1276+

threadId: undefined,

1277+

sourceReplyDeliveryMode: "message_tool_only",

1278+

});

12681279

expect(sendMessage).not.toHaveBeenCalled();

12691280

});

127012811271-

it("delivers generated media completions through the announce agent in automatic DMs", async () => {

1282+

it("requires generated media completion DMs to use the message tool", async () => {

12721283

const callGateway = createGatewayMock({

12731284

result: {

1274-

payloads: [

1285+

payloads: [],

1286+

messagingToolSentTargets: [

12751287

{

1288+

tool: "message",

1289+

provider: "discord",

1290+

accountId: "acct-1",

1291+

to: "dm:U123",

12761292

text: "The track is ready.",

12771293

mediaUrls: ["/tmp/generated-night-drive.mp3"],

12781294

},

@@ -1307,11 +1323,63 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

13071323

path: "direct",

13081324

});

13091325

expectGatewayAgentParams(callGateway, {

1310-

deliver: true,

1326+

deliver: false,

13111327

channel: "discord",

13121328

accountId: "acct-1",

13131329

to: "dm:U123",

13141330

threadId: undefined,

1331+

sourceReplyDeliveryMode: "message_tool_only",

1332+

});

1333+

expect(sendMessage).not.toHaveBeenCalled();

1334+

});

1335+1336+

it("accepts failed generated media completion notices through the message tool", async () => {

1337+

const callGateway = createGatewayMock({

1338+

result: {

1339+

payloads: [],

1340+

messagingToolSentTargets: [

1341+

{

1342+

tool: "message",

1343+

provider: "discord",

1344+

accountId: "acct-1",

1345+

to: "dm:U123",

1346+

text: "Music generation failed: provider failed.",

1347+

},

1348+

],

1349+

},

1350+

});

1351+

const sendMessage = createSendMessageMock();

1352+

const result = await deliverDiscordDirectMessageCompletion({

1353+

callGateway,

1354+

sendMessage,

1355+

sourceTool: "music_generate",

1356+

internalEvents: [

1357+

{

1358+

type: "task_completion",

1359+

source: "music_generation",

1360+

childSessionKey: "music_generate:task-123",

1361+

childSessionId: "task-123",

1362+

announceType: "music generation task",

1363+

taskLabel: "night-drive synthwave",

1364+

status: "error",

1365+

statusLabel: "failed",

1366+

result: "provider failed",

1367+

replyInstruction: "Deliver the failure through the message tool.",

1368+

},

1369+

],

1370+

});

1371+1372+

expectRecordFields(result, {

1373+

delivered: true,

1374+

path: "direct",

1375+

});

1376+

expectGatewayAgentParams(callGateway, {

1377+

deliver: false,

1378+

channel: "discord",

1379+

accountId: "acct-1",

1380+

to: "dm:U123",

1381+

threadId: undefined,

1382+

sourceReplyDeliveryMode: "message_tool_only",

13151383

});

13161384

expect(sendMessage).not.toHaveBeenCalled();

13171385

});

@@ -1358,7 +1426,7 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

13581426

expectRecordFields(result, {

13591427

delivered: false,

13601428

path: "direct",

1361-

error: "completion agent did not deliver generated media",

1429+

error: "completion agent did not deliver through the message tool",

13621430

});

13631431

expect(sendMessage).not.toHaveBeenCalled();

13641432

});