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

推荐订阅源

博客园 - 叶小钗
爱范儿
爱范儿
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
博客园 - 聂微东
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
罗磊的独立博客
Jina AI
Jina AI

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: route Telegram topic media completions · openclaw/op...
fuller-stack · 2026-05-18 · via Recent Commits to openclaw:main

@@ -211,12 +211,21 @@ async function deliverTelegramDirectMessageCompletion(params: {

211211

internalEvents?: AgentInternalEvent[];

212212

isActive?: boolean;

213213

queueEmbeddedPiMessageWithOutcome?: QueueEmbeddedPiMessageWithOutcome;

214+

requesterSessionKey?: string;

215+

sourceTool?: string;

216+

origin?: {

217+

channel: "telegram";

218+

to: string;

219+

accountId?: string;

220+

threadId?: string | number;

221+

};

214222

}) {

215-

const origin = {

223+

const origin = params.origin ?? {

216224

channel: "telegram",

217225

to: "123456789",

218226

accountId: "bot-1",

219227

};

228+

const requesterSessionKey = params.requesterSessionKey ?? "agent:main:telegram:123456789";

220229

__testing.setDepsForTest({

221230

callGateway: params.callGateway,

222231

getRequesterSessionActivity: () => ({

@@ -230,8 +239,8 @@ async function deliverTelegramDirectMessageCompletion(params: {

230239

});

231240232241

return deliverSubagentAnnouncement({

233-

requesterSessionKey: "agent:main:telegram:123456789",

234-

targetRequesterSessionKey: "agent:main:telegram:123456789",

242+

requesterSessionKey,

243+

targetRequesterSessionKey: requesterSessionKey,

235244

triggerMessage: "child done",

236245

steerMessage: "child done",

237246

requesterOrigin: origin,

@@ -243,6 +252,7 @@ async function deliverTelegramDirectMessageCompletion(params: {

243252

bestEffortDeliver: true,

244253

directIdempotencyKey: "announce-telegram-dm-fallback",

245254

internalEvents: params.internalEvents,

255+

sourceTool: params.sourceTool,

246256

});

247257

}

248258

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

16031613

expect(sendMessage).not.toHaveBeenCalled();

16041614

});

160516151616+

it("stringifies Telegram topic ids for generated video completion handoff", async () => {

1617+

const callGateway = createGatewayMock({

1618+

payloads: [],

1619+

didSendViaMessagingTool: true,

1620+

messagingToolSentMediaUrls: ["/tmp/generated-corgi.mp4"],

1621+

});

1622+

const sendMessage = createSendMessageMock();

1623+

const result = await deliverTelegramDirectMessageCompletion({

1624+

callGateway,

1625+

sendMessage,

1626+

requesterSessionKey: "agent:main:telegram:group:-1003970070733:topic:1",

1627+

origin: {

1628+

channel: "telegram",

1629+

to: "telegram:-1003970070733",

1630+

accountId: "bot-1",

1631+

threadId: 1,

1632+

},

1633+

sourceTool: "video_generate",

1634+

internalEvents: [

1635+

{

1636+

type: "task_completion",

1637+

source: "video_generation",

1638+

childSessionKey: "video_generate:task-123",

1639+

childSessionId: "task-123",

1640+

announceType: "video generation task",

1641+

taskLabel: "anime corgi skateboard",

1642+

status: "ok",

1643+

statusLabel: "completed successfully",

1644+

result: "Generated 1 video.\nMEDIA:/tmp/generated-corgi.mp4",

1645+

mediaUrls: ["/tmp/generated-corgi.mp4"],

1646+

replyInstruction: "Deliver the generated video through the message tool.",

1647+

},

1648+

],

1649+

});

1650+1651+

expectRecordFields(result, {

1652+

delivered: true,

1653+

path: "direct",

1654+

});

1655+

expectGatewayAgentParams(callGateway, {

1656+

deliver: false,

1657+

channel: "telegram",

1658+

accountId: "bot-1",

1659+

to: "telegram:-1003970070733",

1660+

threadId: "1",

1661+

sourceReplyDeliveryMode: "message_tool_only",

1662+

});

1663+

expect(sendMessage).not.toHaveBeenCalled();

1664+

});

1665+16061666

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

16071667

const callGateway = createGatewayMock({

16081668

result: {