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

推荐订阅源

Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
M
MIT News - Artificial intelligence
S
SegmentFault 最新的问题
博客园 - 叶小钗
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
U
Unit 42
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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: preserve media completion message-tool delivery (#82...
steipete · 2026-05-15 · via Recent Commits to openclaw:main

@@ -1411,6 +1411,80 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

14111411

accountId: "acct-1",

14121412

to: "channel:C123",

14131413

threadId: undefined,

1414+

sourceReplyDeliveryMode: "message_tool_only",

1415+

});

1416+

expect(sendMessage).not.toHaveBeenCalled();

1417+

});

1418+1419+

it("falls back to a forced message-tool handoff when the active requester run cannot accept one", async () => {

1420+

const callGateway = createGatewayMock({

1421+

result: {

1422+

payloads: [],

1423+

messagingToolSentTargets: [

1424+

{

1425+

tool: "message",

1426+

provider: "slack",

1427+

accountId: "acct-1",

1428+

to: "channel:C123",

1429+

text: "The track is ready.",

1430+

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

1431+

},

1432+

],

1433+

},

1434+

});

1435+

const queueEmbeddedPiMessageWithOutcome = vi.fn((sessionId: string) => ({

1436+

queued: false as const,

1437+

sessionId,

1438+

reason: "source_reply_delivery_mode_mismatch" as const,

1439+

gatewayHealth: "live" as const,

1440+

}));

1441+

const sendMessage = createSendMessageMock();

1442+

const result = await deliverSlackChannelAnnouncement({

1443+

callGateway,

1444+

sendMessage,

1445+

sessionId: "requester-session-channel",

1446+

isActive: true,

1447+

expectsCompletionMessage: true,

1448+

directIdempotencyKey: "announce-channel-media-message-tool-active-mismatch",

1449+

sourceTool: "music_generate",

1450+

queueEmbeddedPiMessageWithOutcome,

1451+

internalEvents: [

1452+

{

1453+

type: "task_completion",

1454+

source: "music_generation",

1455+

childSessionKey: "music_generate:task-123",

1456+

childSessionId: "task-123",

1457+

announceType: "music generation task",

1458+

taskLabel: "night-drive synthwave",

1459+

status: "ok",

1460+

statusLabel: "completed successfully",

1461+

result: "Generated 1 track.\nMEDIA:/tmp/generated-night-drive.mp3",

1462+

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

1463+

replyInstruction:

1464+

"Tell the user the music is ready. If visible source delivery requires the message tool, send it there with the generated media attached.",

1465+

},

1466+

],

1467+

});

1468+1469+

expectRecordFields(result, {

1470+

delivered: true,

1471+

path: "direct",

1472+

});

1473+

expect(queueEmbeddedPiMessageWithOutcome).toHaveBeenCalledWith(

1474+

"requester-session-channel",

1475+

"child done",

1476+

expect.objectContaining({

1477+

steeringMode: "all",

1478+

sourceReplyDeliveryMode: "message_tool_only",

1479+

}),

1480+

);

1481+

expectGatewayAgentParams(callGateway, {

1482+

deliver: false,

1483+

channel: "slack",

1484+

accountId: "acct-1",

1485+

to: "channel:C123",

1486+

threadId: undefined,

1487+

sourceReplyDeliveryMode: "message_tool_only",

14141488

});

14151489

expect(sendMessage).not.toHaveBeenCalled();

14161490

});

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

14781552

accountId: "acct-1",

14791553

to: origin.to,

14801554

threadId: undefined,

1555+

sourceReplyDeliveryMode: "message_tool_only",

14811556

});

14821557

expect(sendMessage).not.toHaveBeenCalled();

14831558

},