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

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

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
test: tighten media-only reply assertions · openclaw/open...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -279,20 +279,13 @@ describe("runPreparedReply media-only handling", () => {

279279

}),

280280

);

281281282-

expect(runReplyAgent).toHaveBeenCalledWith(

283-

expect.objectContaining({

284-

followupRun: expect.objectContaining({

285-

run: expect.objectContaining({

286-

bashElevated: {

287-

enabled: true,

288-

allowed: true,

289-

defaultLevel: "on",

290-

fullAccessAvailable: true,

291-

},

292-

}),

293-

}),

294-

}),

295-

);

282+

const call = requireRunReplyAgentCall();

283+

expect(call.followupRun.run.bashElevated).toEqual({

284+

enabled: true,

285+

allowed: true,

286+

defaultLevel: "on",

287+

fullAccessAvailable: true,

288+

});

296289

});

297290298291

it("propagates non-visible assistant silence for group runs", async () => {

@@ -368,15 +361,13 @@ describe("runPreparedReply media-only handling", () => {

368361

}),

369362

);

370363371-

expect(buildDirectChatContext).toHaveBeenCalledWith(

372-

expect.objectContaining({

373-

sessionCtx: expect.objectContaining({

374-

Provider: "telegram",

375-

ChatType: "direct",

376-

}),

377-

sourceReplyDeliveryMode: "message_tool_only",

378-

}),

379-

);

364+

expect(buildDirectChatContext).toHaveBeenCalledTimes(1);

365+

const directContextParams = vi.mocked(buildDirectChatContext).mock.calls[0]?.[0] as

366+

| { sessionCtx?: { Provider?: string; ChatType?: string }; sourceReplyDeliveryMode?: string }

367+

| undefined;

368+

expect(directContextParams?.sessionCtx?.Provider).toBe("telegram");

369+

expect(directContextParams?.sessionCtx?.ChatType).toBe("direct");

370+

expect(directContextParams?.sourceReplyDeliveryMode).toBe("message_tool_only");

380371

});

381372382373

it.each(["direct", "dm"] as const)(

@@ -1271,16 +1262,21 @@ describe("runPreparedReply media-only handling", () => {

12711262

);

1272126312731264

const call = vi.mocked(runReplyAgent).mock.calls.at(-1)?.[0];

1274-

expect(buildGroupChatContext).toHaveBeenCalledWith(

1275-

expect.objectContaining({

1276-

sessionCtx: expect.objectContaining({

1277-

Provider: "discord",

1278-

Surface: "discord",

1279-

ChatType: "channel",

1280-

GroupChannel: "#ops",

1281-

}),

1282-

}),

1283-

);

1265+

expect(buildGroupChatContext).toHaveBeenCalledTimes(1);

1266+

const groupContextParams = vi.mocked(buildGroupChatContext).mock.calls[0]?.[0] as

1267+

| {

1268+

sessionCtx?: {

1269+

Provider?: string;

1270+

Surface?: string;

1271+

ChatType?: string;

1272+

GroupChannel?: string;

1273+

};

1274+

}

1275+

| undefined;

1276+

expect(groupContextParams?.sessionCtx?.Provider).toBe("discord");

1277+

expect(groupContextParams?.sessionCtx?.Surface).toBe("discord");

1278+

expect(groupContextParams?.sessionCtx?.ChatType).toBe("channel");

1279+

expect(groupContextParams?.sessionCtx?.GroupChannel).toBe("#ops");

12841280

expect(call?.followupRun.run.extraSystemPromptStatic).toBe("group:discord:channel:#ops");

12851281

});

12861282