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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security 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(doctor): restore group config drift migrations (#7746...
scoootscooob · 2026-05-05 · via Recent Commits to openclaw:main

@@ -182,7 +182,56 @@ describe("legacy migrate audio transcription", () => {

182182

});

183183184184

describe("legacy migrate mention routing", () => {

185-

it("does not rewrite removed routing.groupChat.requireMention migrations", () => {

185+

it("moves legacy routing group chat settings into current channel and message config", () => {

186+

const res = migrateLegacyConfigForTest({

187+

routing: {

188+

allowFrom: ["+15550001111"],

189+

groupChat: {

190+

requireMention: false,

191+

historyLimit: 12,

192+

mentionPatterns: ["@openclaw"],

193+

},

194+

},

195+

channels: {

196+

whatsapp: {},

197+

telegram: {

198+

groups: {

199+

"*": { requireMention: true },

200+

},

201+

},

202+

imessage: {},

203+

},

204+

});

205+206+

const migratedConfig = res.config as Record<string, unknown> | null;

207+

expect(migratedConfig?.routing).toBeUndefined();

208+

expect(res.config?.channels?.whatsapp?.allowFrom).toEqual(["+15550001111"]);

209+

expect(res.config?.channels?.whatsapp?.groups).toEqual({

210+

"*": { requireMention: false },

211+

});

212+

expect(res.config?.channels?.telegram?.groups).toEqual({

213+

"*": { requireMention: true },

214+

});

215+

expect(res.config?.channels?.imessage?.groups).toEqual({

216+

"*": { requireMention: false },

217+

});

218+

expect(res.config?.messages?.groupChat).toEqual({

219+

historyLimit: 12,

220+

mentionPatterns: ["@openclaw"],

221+

});

222+

expect(res.changes).toEqual(

223+

expect.arrayContaining([

224+

"Moved routing.allowFrom → channels.whatsapp.allowFrom.",

225+

'Moved routing.groupChat.requireMention → channels.whatsapp.groups."*".requireMention.',

226+

'Removed routing.groupChat.requireMention (channels.telegram.groups."*" already set).',

227+

'Moved routing.groupChat.requireMention → channels.imessage.groups."*".requireMention.',

228+

"Moved routing.groupChat.historyLimit → messages.groupChat.historyLimit.",

229+

"Moved routing.groupChat.mentionPatterns → messages.groupChat.mentionPatterns.",

230+

]),

231+

);

232+

});

233+234+

it("removes legacy routing requireMention when no compatible channel exists", () => {

186235

const res = migrateLegacyConfigForTest({

187236

routing: {

188237

groupChat: {

@@ -191,11 +240,14 @@ describe("legacy migrate mention routing", () => {

191240

},

192241

});

193242194-

expect(res.changes).toEqual([]);

195-

expect(res.config).toBeNull();

243+

const migratedConfig = res.config as Record<string, unknown> | null;

244+

expect(migratedConfig?.routing).toBeUndefined();

245+

expect(res.changes).toEqual([

246+

"Removed routing.groupChat.requireMention (no configured WhatsApp, Telegram, or iMessage channel found).",

247+

]);

196248

});

197249198-

it("does not rewrite removed channels.telegram.requireMention migrations", () => {

250+

it("moves channels.telegram.requireMention into the wildcard group default", () => {

199251

const res = migrateLegacyConfigForTest({

200252

channels: {

201253

telegram: {

@@ -204,8 +256,14 @@ describe("legacy migrate mention routing", () => {

204256

},

205257

});

206258207-

expect(res.changes).toEqual([]);

208-

expect(res.config).toBeNull();

259+

expect(res.config?.channels?.telegram).toEqual({

260+

groups: {

261+

"*": { requireMention: false },

262+

},

263+

});

264+

expect(res.changes).toContain(

265+

'Moved channels.telegram.requireMention → channels.telegram.groups."*".requireMention.',

266+

);

209267

});

210268

});

211269