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

推荐订阅源

腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
I
InfoQ
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
G
Google Developers Blog
L
LangChain Blog
博客园_首页
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
IT之家
IT之家
量子位
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网

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: tolerate stale channel plugin config · openclaw/open...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -266,6 +266,104 @@ describe("config plugin validation", () => {

266266

}

267267

});

268268269+

it("warns instead of failing for stale channel config backed by missing plugin refs", async () => {

270+

const res = validateInSuite({

271+

agents: { list: [{ id: "pi" }] },

272+

channels: {

273+

"missing-chat": { token: "stale" },

274+

},

275+

plugins: {

276+

allow: ["missing-chat"],

277+

entries: { "missing-chat": { enabled: true } },

278+

},

279+

});

280+281+

expect(res.ok).toBe(true);

282+

if (!res.ok) {

283+

return;

284+

}

285+

expect(res.warnings).toContainEqual({

286+

path: "channels.missing-chat",

287+

message:

288+

"unknown channel id: missing-chat (stale channel plugin config ignored; run openclaw doctor --fix to remove stale config, or install the plugin)",

289+

});

290+

expect(res.warnings).toContainEqual({

291+

path: "plugins.allow",

292+

message:

293+

"plugin not found: missing-chat (stale config entry ignored; remove it from plugins config)",

294+

});

295+

expect(res.warnings).toContainEqual({

296+

path: "plugins.entries.missing-chat",

297+

message:

298+

"plugin not found: missing-chat (stale config entry ignored; remove it from plugins config)",

299+

});

300+

});

301+302+

it("keeps unknown channel typos fatal when there is no stale plugin evidence", async () => {

303+

const res = validateInSuite({

304+

agents: { list: [{ id: "pi" }] },

305+

channels: {

306+

telegarm: { botToken: "typo" },

307+

},

308+

plugins: {

309+

allow: ["telegram"],

310+

},

311+

});

312+313+

expect(res.ok).toBe(false);

314+

if (res.ok) {

315+

return;

316+

}

317+

expect(res.issues).toContainEqual({

318+

path: "channels.telegarm",

319+

message: "unknown channel id: telegarm",

320+

});

321+

expect(res.warnings).not.toContainEqual(expect.objectContaining({ path: "channels.telegarm" }));

322+

});

323+324+

it("uses persisted installed-plugin records as stale channel evidence", async () => {

325+

const installedPluginIndexPath = path.join(suiteHome, ".openclaw", "plugins", "installs.json");

326+

await mkdirSafe(path.dirname(installedPluginIndexPath));

327+

await fs.writeFile(

328+

installedPluginIndexPath,

329+

JSON.stringify(

330+

{

331+

installRecords: {

332+

"missing-sms": {

333+

source: "npm",

334+

spec: "missing-sms@1.0.0",

335+

installedAt: "2026-04-12T00:00:00.000Z",

336+

},

337+

},

338+

plugins: [],

339+

},

340+

null,

341+

2,

342+

),

343+

"utf-8",

344+

);

345+

try {

346+

const res = validateInSuite({

347+

agents: { list: [{ id: "pi" }] },

348+

channels: {

349+

"missing-sms": { token: "stale" },

350+

},

351+

});

352+353+

expect(res.ok).toBe(true);

354+

if (!res.ok) {

355+

return;

356+

}

357+

expect(res.warnings).toContainEqual({

358+

path: "channels.missing-sms",

359+

message:

360+

"unknown channel id: missing-sms (stale channel plugin config ignored; run openclaw doctor --fix to remove stale config, or install the plugin)",

361+

});

362+

} finally {

363+

await fs.rm(installedPluginIndexPath, { force: true });

364+

}

365+

});

366+269367

it("warns with actionable guidance when a runtime command name is used in plugins.allow", async () => {

270368

const res = validateInSuite({

271369

agents: { list: [{ id: "pi" }] },