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

推荐订阅源

博客园 - Franky
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
博客园 - 司徒正美
D
Docker
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
J
Java Code Geeks
Jina AI
Jina AI
博客园 - 【当耐特】
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio 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
refactor: move cron output policy to channel plugins · op...
steipete · 2026-04-22 · via Recent Commits to openclaw:main

@@ -31,7 +31,7 @@ const channelPluginMocks = vi.hoisted(() => ({

3131

| ((params: { kind: "tool" | "block" | "final"; text?: string }) => boolean)

3232

| undefined,

3333

getChannelPlugin: vi.fn((channelId: string) => {

34-

if (channelId !== "discord" && channelId !== "telegram") {

34+

if (channelId !== "visiblechat") {

3535

return undefined;

3636

}

3737

return {

@@ -76,8 +76,8 @@ function createCoordinator(onReplyStart?: (...args: unknown[]) => Promise<void>)

7676

return createAcpDispatchDeliveryCoordinator({

7777

cfg: createAcpTestConfig(),

7878

ctx: buildTestCtx({

79-

Provider: "discord",

80-

Surface: "discord",

79+

Provider: "visiblechat",

80+

Surface: "visiblechat",

8181

SessionKey: "agent:codex-acp:session-1",

8282

}),

8383

dispatcher: createDispatcher(),

@@ -87,33 +87,33 @@ function createCoordinator(onReplyStart?: (...args: unknown[]) => Promise<void>)

8787

});

8888

}

898990-

function createDiscordAcpCoordinator(cfg: OpenClawConfig) {

90+

function createVisibleChatAcpCoordinator(cfg: OpenClawConfig) {

9191

return createAcpDispatchDeliveryCoordinator({

9292

cfg,

9393

ctx: buildTestCtx({

94-

Provider: "discord",

95-

Surface: "discord",

94+

Provider: "visiblechat",

95+

Surface: "visiblechat",

9696

SessionKey: "agent:codex-acp:session-1",

9797

}),

9898

dispatcher: createDispatcher(),

9999

inboundAudio: false,

100100

shouldRouteToOriginating: true,

101-

originatingChannel: "discord",

101+

originatingChannel: "visiblechat",

102102

originatingTo: "channel:thread-1",

103103

});

104104

}

105105106-

async function expectDiscordBlockRoutesToAccount(

106+

async function expectVisibleChatBlockRoutesToAccount(

107107

cfg: OpenClawConfig,

108108

accountId: string | undefined,

109109

): Promise<void> {

110-

const coordinator = createDiscordAcpCoordinator(cfg);

110+

const coordinator = createVisibleChatAcpCoordinator(cfg);

111111112112

await coordinator.deliver("block", { text: "hello" }, { skipTts: true });

113113114114

expect(deliveryMocks.routeReply).toHaveBeenCalledWith(

115115

expect.objectContaining({

116-

channel: "discord",

116+

channel: "visiblechat",

117117

to: "channel:thread-1",

118118

accountId,

119119

}),

@@ -142,8 +142,8 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

142142

const coordinator = createAcpDispatchDeliveryCoordinator({

143143

cfg: createAcpTestConfig(),

144144

ctx: buildTestCtx({

145-

Provider: "discord",

146-

Surface: "discord",

145+

Provider: "visiblechat",

146+

Surface: "visiblechat",

147147

SessionKey: "agent:codex-acp:session-1",

148148

}),

149149

dispatcher,

@@ -178,8 +178,8 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

178178

const coordinator = createAcpDispatchDeliveryCoordinator({

179179

cfg: createAcpTestConfig(),

180180

ctx: buildTestCtx({

181-

Provider: "telegram",

182-

Surface: "telegram",

181+

Provider: "visiblechat",

182+

Surface: "visiblechat",

183183

SessionKey: "agent:codex-acp:session-1",

184184

}),

185185

dispatcher: createDispatcher(),

@@ -196,11 +196,11 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

196196

expect(coordinator.getRoutedCounts().block).toBe(0);

197197

});

198198199-

it("prefers provider over surface when detecting direct telegram visibility", async () => {

199+

it("prefers provider over surface when detecting direct channel visibility", async () => {

200200

const coordinator = createAcpDispatchDeliveryCoordinator({

201201

cfg: createAcpTestConfig(),

202202

ctx: buildTestCtx({

203-

Provider: "telegram",

203+

Provider: "visiblechat",

204204

Surface: "webchat",

205205

SessionKey: "agent:codex-acp:session-1",

206206

}),

@@ -220,8 +220,8 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

220220

const coordinator = createAcpDispatchDeliveryCoordinator({

221221

cfg: createAcpTestConfig(),

222222

ctx: buildTestCtx({

223-

Provider: "whatsapp",

224-

Surface: "whatsapp",

223+

Provider: "plainchat",

224+

Surface: "plainchat",

225225

SessionKey: "agent:codex-acp:session-1",

226226

}),

227227

dispatcher: createDispatcher(),

@@ -238,7 +238,7 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

238238

expect(coordinator.getRoutedCounts().block).toBe(0);

239239

});

240240241-

it("treats direct discord block text as visible", async () => {

241+

it("treats direct plugin-owned block text as visible", async () => {

242242

const coordinator = createCoordinator();

243243244244

await coordinator.deliver("block", { text: "hello" }, { skipTts: true });

@@ -266,7 +266,7 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

266266

expect(coordinator.hasFailedVisibleTextDelivery()).toBe(false);

267267

});

268268269-

it("tracks failed visible telegram block delivery separately", async () => {

269+

it("tracks failed visible block delivery separately", async () => {

270270

const dispatcher: ReplyDispatcher = {

271271

sendToolResult: vi.fn(() => true),

272272

sendBlockReply: vi.fn(() => false),

@@ -279,8 +279,8 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

279279

const coordinator = createAcpDispatchDeliveryCoordinator({

280280

cfg: createAcpTestConfig(),

281281

ctx: buildTestCtx({

282-

Provider: "telegram",

283-

Surface: "telegram",

282+

Provider: "visiblechat",

283+

Surface: "visiblechat",

284284

SessionKey: "agent:codex-acp:session-1",

285285

}),

286286

dispatcher,

@@ -351,8 +351,8 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

351351

const coordinator = createAcpDispatchDeliveryCoordinator({

352352

cfg: createAcpTestConfig(),

353353

ctx: buildTestCtx({

354-

Provider: "discord",

355-

Surface: "discord",

354+

Provider: "visiblechat",

355+

Surface: "visiblechat",

356356

SessionKey: "agent:codex-acp:session-1",

357357

}),

358358

dispatcher,

@@ -377,16 +377,16 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

377377

const coordinator = createAcpDispatchDeliveryCoordinator({

378378

cfg: createAcpTestConfig(),

379379

ctx: buildTestCtx({

380-

Provider: "telegram",

381-

Surface: "telegram",

380+

Provider: "visiblechat",

381+

Surface: "visiblechat",

382382

SessionKey: "agent:codex-acp:session-1",

383383

}),

384384

dispatcher,

385385

inboundAudio: false,

386386

suppressUserDelivery: true,

387387

shouldRouteToOriginating: true,

388-

originatingChannel: "telegram",

389-

originatingTo: "telegram:123",

388+

originatingChannel: "visiblechat",

389+

originatingTo: "visiblechat:123",

390390

});

391391392392

const blockDelivered = await coordinator.deliver("block", { text: "working on it" });

@@ -402,10 +402,10 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

402402

});

403403404404

it("routes ACP replies through the configured default account when AccountId is omitted", async () => {

405-

await expectDiscordBlockRoutesToAccount(

405+

await expectVisibleChatBlockRoutesToAccount(

406406

createAcpTestConfig({

407407

channels: {

408-

discord: {

408+

visiblechat: {

409409

defaultAccount: "work",

410410

},

411411

},

@@ -415,21 +415,21 @@ describe("createAcpDispatchDeliveryCoordinator", () => {

415415

});

416416417417

it("routes ACP replies when cfg.channels is missing", async () => {

418-

await expectDiscordBlockRoutesToAccount({} as OpenClawConfig, undefined);

418+

await expectVisibleChatBlockRoutesToAccount({} as OpenClawConfig, undefined);

419419

});

420420421-

it("treats routed discord block text as visible", async () => {

421+

it("treats routed plugin-owned block text as visible", async () => {

422422

const coordinator = createAcpDispatchDeliveryCoordinator({

423423

cfg: createAcpTestConfig(),

424424

ctx: buildTestCtx({

425-

Provider: "discord",

426-

Surface: "discord",

425+

Provider: "visiblechat",

426+

Surface: "visiblechat",

427427

SessionKey: "agent:codex-acp:session-1",

428428

}),

429429

dispatcher: createDispatcher(),

430430

inboundAudio: false,

431431

shouldRouteToOriginating: true,

432-

originatingChannel: "discord",

432+

originatingChannel: "visiblechat",

433433

originatingTo: "channel:thread-1",

434434

});

435435