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

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
Last Week in AI
Last Week in AI
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
WordPress大学
WordPress大学
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
罗磊的独立博客
The Cloudflare Blog
V
V2EX
月光博客
月光博客
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
博客园 - 【当耐特】
T
Tailwind CSS 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(agents): keep grouped subagent completions · openclaw...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

@@ -722,6 +722,62 @@ describe("deliverSubagentAnnouncement completion delivery", () => {

722722

);

723723

});

724724725+

it("keeps all grouped child results in direct completion fallback", async () => {

726+

const callGateway = createGatewayMock({

727+

result: {

728+

payloads: [],

729+

},

730+

});

731+

const sendMessage = createSendMessageMock();

732+

const result = await deliverSlackThreadAnnouncement({

733+

callGateway,

734+

sendMessage,

735+

sessionId: "requester-session-4",

736+

isActive: false,

737+

expectsCompletionMessage: true,

738+

directIdempotencyKey: "announce-thread-fallback-grouped-results",

739+

internalEvents: [

740+

{

741+

type: "task_completion",

742+

source: "subagent",

743+

childSessionKey: "agent:worker:subagent:first",

744+

childSessionId: "child-session-1",

745+

announceType: "subagent task",

746+

taskLabel: "first task",

747+

status: "ok",

748+

statusLabel: "completed successfully",

749+

result: "first child result",

750+

replyInstruction: "Summarize the result.",

751+

},

752+

{

753+

type: "task_completion",

754+

source: "subagent",

755+

childSessionKey: "agent:worker:subagent:second",

756+

childSessionId: "child-session-2",

757+

announceType: "subagent task",

758+

taskLabel: "second task",

759+

status: "ok",

760+

statusLabel: "completed successfully",

761+

result: "second child result",

762+

replyInstruction: "Summarize the result.",

763+

},

764+

],

765+

});

766+767+

expect(result).toEqual(

768+

expect.objectContaining({

769+

delivered: true,

770+

path: "direct-thread-fallback",

771+

}),

772+

);

773+

expect(sendMessage).toHaveBeenCalledWith(

774+

expect.objectContaining({

775+

content: "first task:\nfirst child result\n\nsecond task:\nsecond child result",

776+

idempotencyKey: "announce-thread-fallback-grouped-results",

777+

}),

778+

);

779+

});

780+725781

it("keeps concise requester rewrites primary even when child output is long", async () => {

726782

const callGateway = createGatewayMock({

727783

result: {

@@ -1265,4 +1321,33 @@ describe("extractThreadCompletionFallbackText", () => {

12651321

]),

12661322

).toBe("sample task");

12671323

});

1324+1325+

it("combines multiple task completion results for grouped announce fallback", () => {

1326+

expect(

1327+

extractThreadCompletionFallbackText([

1328+

{

1329+

type: "task_completion",

1330+

source: "subagent",

1331+

childSessionKey: "agent:worker:subagent:first",

1332+

announceType: "subagent task",

1333+

taskLabel: "first task",

1334+

status: "ok",

1335+

statusLabel: "completed successfully",

1336+

result: "first child result",

1337+

replyInstruction: "Summarize the result.",

1338+

},

1339+

{

1340+

type: "task_completion",

1341+

source: "subagent",

1342+

childSessionKey: "agent:worker:subagent:second",

1343+

announceType: "subagent task",

1344+

taskLabel: "second task",

1345+

status: "ok",

1346+

statusLabel: "completed successfully",

1347+

result: "second child result",

1348+

replyInstruction: "Summarize the result.",

1349+

},

1350+

]),

1351+

).toBe("first task:\nfirst child result\n\nsecond task:\nsecond child result");

1352+

});

12681353

});