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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator 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(auto-reply): clean up no-reply migration paths · open...
steipete · 2026-05-16 · via Recent Commits to openclaw:main

@@ -1,7 +1,6 @@

11

import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";

22

import { describe, expect, it } from "vitest";

33

import type { ReplyPayload } from "../../auto-reply/types.js";

4-

import type { OpenClawConfig } from "../../config/types.openclaw.js";

54

import { typedCases } from "../../test-utils/typed-cases.js";

65

import {

76

createOutboundPayloadPlan,

@@ -15,7 +14,6 @@ import {

1514

projectOutboundPayloadPlanForOutbound,

1615

summarizeOutboundPayloadForTransport,

1716

} from "./payloads.js";

18-

import { registerPendingSpawnedChildrenQuery } from "./pending-spawn-query.js";

19172018

function resolveMirrorProjection(payloads: readonly ReplyPayload[]) {

2119

const normalized = normalizeReplyPayloadsForDelivery(payloads);

@@ -191,45 +189,20 @@ describe("normalizeReplyPayloadsForDelivery", () => {

191189

});

192190193191

it("drops bare silent replies for direct conversations", () => {

194-

const cfg: OpenClawConfig = {

195-

agents: {

196-

defaults: {

197-

silentReply: {

198-

group: "allow",

199-

internal: "allow",

200-

},

201-

},

202-

},

203-

};

204-205-

const sessionKey = "agent:main:telegram:direct:123";

206192

expect(

207193

projectOutboundPayloadPlanForDelivery(

208194

createOutboundPayloadPlan([{ text: "NO_REPLY" }], {

209-

cfg,

210-

sessionKey,

195+

sessionKey: "agent:main:telegram:direct:123",

211196

surface: "telegram",

212197

}),

213198

),

214199

).toStrictEqual([]);

215200

});

216201217-

it("drops bare silent replies for groups when policy allows silence", () => {

218-

const cfg: OpenClawConfig = {

219-

agents: {

220-

defaults: {

221-

silentReply: {

222-

group: "allow",

223-

internal: "allow",

224-

},

225-

},

226-

},

227-

};

228-202+

it("drops bare silent replies for groups", () => {

229203

expect(

230204

projectOutboundPayloadPlanForDelivery(

231205

createOutboundPayloadPlan([{ text: "NO_REPLY" }], {

232-

cfg,

233206

sessionKey: "agent:main:telegram:group:123",

234207

surface: "telegram",

235208

}),

@@ -238,20 +211,8 @@ describe("normalizeReplyPayloadsForDelivery", () => {

238211

});

239212240213

it("does not add silent-reply chatter when visible content is already being delivered", () => {

241-

const cfg: OpenClawConfig = {

242-

agents: {

243-

defaults: {

244-

silentReply: {

245-

group: "allow",

246-

internal: "allow",

247-

},

248-

},

249-

},

250-

};

251-252214

const delivery = projectOutboundPayloadPlanForDelivery(

253215

createOutboundPayloadPlan([{ text: "NO_REPLY" }, { text: "visible reply" }], {

254-

cfg,

255216

sessionKey: "agent:main:telegram:direct:123",

256217

surface: "telegram",

257218

}),

@@ -260,50 +221,6 @@ describe("normalizeReplyPayloadsForDelivery", () => {

260221

expect(delivery[0]?.text).toBe("visible reply");

261222

});

262223263-

describe("pending spawned subagent children", () => {

264-

const cfg: OpenClawConfig = {

265-

agents: {

266-

defaults: {

267-

silentReply: { group: "allow", internal: "allow" },

268-

},

269-

},

270-

};

271-

const planSilent = (sessionKey: string, hasPendingSpawnedChildren?: boolean) =>

272-

projectOutboundPayloadPlanForDelivery(

273-

createOutboundPayloadPlan([{ text: "NO_REPLY" }], {

274-

cfg,

275-

sessionKey,

276-

surface: "telegram",

277-

hasPendingSpawnedChildren,

278-

}),

279-

);

280-281-

it("drops bare silent replies when the context flag is set", () => {

282-

expect(planSilent("agent:main:telegram:direct:123", true)).toStrictEqual([]);

283-

});

284-285-

it("drops bare silent replies via the registered runtime query", () => {

286-

const sessionKey = "agent:main:telegram:direct:456";

287-

const previousQuery = registerPendingSpawnedChildrenQuery((key) => key === sessionKey);

288-

try {

289-

expect(planSilent(sessionKey)).toStrictEqual([]);

290-

} finally {

291-

registerPendingSpawnedChildrenQuery(previousQuery);

292-

}

293-

});

294-295-

it("still drops bare silent replies when the query throws", () => {

296-

const previousQuery = registerPendingSpawnedChildrenQuery(() => {

297-

throw new Error("registry unavailable");

298-

});

299-

try {

300-

expect(planSilent("agent:main:telegram:direct:789")).toStrictEqual([]);

301-

} finally {

302-

registerPendingSpawnedChildrenQuery(previousQuery);

303-

}

304-

});

305-

});

306-307224

it("is idempotent for already-normalized delivery payloads", () => {

308225

const once = normalizeReplyPayloadsForDelivery([

309226

{