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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain 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(plugins): surface configured runtime plugin doctor wa...
Zavianx · 2026-05-17 · via Recent Commits to openclaw:main

@@ -138,6 +138,263 @@ describe("plugins cli list", () => {

138138

expect(output).not.toContain("No plugin issues detected.");

139139

});

140140141+

it("reports missing configured Codex runtime plugin in doctor output", async () => {

142+

const sourceConfig = {

143+

agents: {

144+

defaults: {

145+

models: {

146+

"openai/gpt-5.5": {

147+

agentRuntime: { id: "codex" },

148+

},

149+

},

150+

},

151+

},

152+

};

153+

loadConfig.mockReturnValue(sourceConfig);

154+

readConfigFileSnapshot.mockResolvedValueOnce({

155+

path: "/tmp/openclaw-config.json5",

156+

exists: true,

157+

raw: "{}",

158+

parsed: sourceConfig,

159+

resolved: sourceConfig,

160+

sourceConfig,

161+

runtimeConfig: sourceConfig,

162+

config: sourceConfig,

163+

valid: true,

164+

hash: "mock",

165+

issues: [],

166+

warnings: [],

167+

legacyIssues: [],

168+

});

169+

buildPluginDiagnosticsReport.mockReturnValue({

170+

plugins: [],

171+

diagnostics: [],

172+

});

173+174+

await runPluginsCommand(["plugins", "doctor"]);

175+176+

const output = runtimeLogs.join("\n");

177+

expect(output).toContain("Plugin configuration:");

178+

expect(output).toContain('Configured runtime "codex" requires the Codex plugin');

179+

expect(output).toContain("openclaw doctor --fix");

180+

expect(output).toContain("openclaw plugins install @openclaw/codex");

181+

expect(output).toContain(

182+

"No plugin install-tree issues detected; configuration warnings remain.",

183+

);

184+

expect(output).not.toContain("No plugin issues detected.");

185+

});

186+187+

it("reports missing configured ACPX runtime plugin in doctor output", async () => {

188+

const sourceConfig = {

189+

acp: {

190+

backend: "acpx",

191+

},

192+

};

193+

loadConfig.mockReturnValue(sourceConfig);

194+

buildPluginDiagnosticsReport.mockReturnValue({

195+

plugins: [],

196+

diagnostics: [],

197+

});

198+199+

await runPluginsCommand(["plugins", "doctor"]);

200+201+

const output = runtimeLogs.join("\n");

202+

expect(output).toContain("Plugin configuration:");

203+

expect(output).toContain('Configured runtime "acpx" requires the ACPX Runtime plugin');

204+

expect(output).toContain("openclaw doctor --fix");

205+

expect(output).toContain("openclaw plugins install @openclaw/acpx");

206+

expect(output).not.toContain("No plugin issues detected.");

207+

});

208+209+

it("reports blocked configured ACPX runtime with ACP-specific guidance", async () => {

210+

const sourceConfig = {

211+

acp: {

212+

backend: "acpx",

213+

},

214+

plugins: {

215+

entries: {

216+

acpx: { enabled: false },

217+

},

218+

},

219+

};

220+

loadConfig.mockReturnValue(sourceConfig);

221+

buildPluginDiagnosticsReport.mockReturnValue({

222+

plugins: [],

223+

diagnostics: [],

224+

});

225+226+

await runPluginsCommand(["plugins", "doctor"]);

227+228+

const output = runtimeLogs.join("\n");

229+

expect(output).toContain('Configured runtime "acpx" requires the ACPX Runtime plugin');

230+

expect(output).toContain("Set plugins.entries.acpx.enabled=true");

231+

expect(output).toContain("disable ACP/acpx in acp config");

232+

expect(output).not.toContain('runtime policy to "pi"');

233+

expect(output).not.toContain("openclaw plugins install @openclaw/acpx");

234+

expect(output).not.toContain("No plugin issues detected.");

235+

});

236+237+

it("reports disabled configured ACPX runtime with ACP-specific guidance", async () => {

238+

const sourceConfig = {

239+

acp: {

240+

backend: "acpx",

241+

},

242+

};

243+

loadConfig.mockReturnValue(sourceConfig);

244+

buildPluginDiagnosticsReport.mockReturnValue({

245+

plugins: [createPluginRecord({ id: "acpx", enabled: false, status: "disabled" })],

246+

diagnostics: [],

247+

});

248+249+

await runPluginsCommand(["plugins", "doctor"]);

250+251+

const output = runtimeLogs.join("\n");

252+

expect(output).toContain('Configured runtime "acpx" requires the ACPX Runtime plugin');

253+

expect(output).toContain('Enable the "acpx" plugin');

254+

expect(output).toContain("disable ACP/acpx in acp config");

255+

expect(output).not.toContain('runtime policy to "pi"');

256+

expect(output).not.toContain("openclaw plugins install @openclaw/acpx");

257+

expect(output).not.toContain("No plugin issues detected.");

258+

});

259+260+

it("does not report implicit OpenAI Codex preference as configured runtime", async () => {

261+

const sourceConfig = {

262+

agents: {

263+

defaults: {

264+

model: "openai/gpt-5.5",

265+

},

266+

},

267+

};

268+

loadConfig.mockReturnValue(sourceConfig);

269+

buildPluginDiagnosticsReport.mockReturnValue({

270+

plugins: [],

271+

diagnostics: [],

272+

});

273+274+

await runPluginsCommand(["plugins", "doctor"]);

275+276+

const output = runtimeLogs.join("\n");

277+

expect(output).not.toContain('Configured runtime "codex"');

278+

expect(output).toContain("No plugin issues detected.");

279+

});

280+281+

it("does not report configured Codex runtime when the plugin is enabled", async () => {

282+

const sourceConfig = {

283+

agents: {

284+

defaults: {

285+

models: {

286+

"openai/gpt-5.5": {

287+

agentRuntime: { id: "codex" },

288+

},

289+

},

290+

},

291+

},

292+

};

293+

loadConfig.mockReturnValue(sourceConfig);

294+

buildPluginDiagnosticsReport.mockReturnValue({

295+

plugins: [createPluginRecord({ id: "codex" })],

296+

diagnostics: [],

297+

});

298+299+

await runPluginsCommand(["plugins", "doctor"]);

300+301+

expect(runtimeLogs).toContain("No plugin issues detected.");

302+

});

303+304+

it("reports configured Codex runtime when the plugin record is disabled", async () => {

305+

const sourceConfig = {

306+

agents: {

307+

defaults: {

308+

models: {

309+

"openai/gpt-5.5": {

310+

agentRuntime: { id: "codex" },

311+

},

312+

},

313+

},

314+

},

315+

};

316+

loadConfig.mockReturnValue(sourceConfig);

317+

buildPluginDiagnosticsReport.mockReturnValue({

318+

plugins: [createPluginRecord({ id: "codex", enabled: false, status: "disabled" })],

319+

diagnostics: [],

320+

});

321+322+

await runPluginsCommand(["plugins", "doctor"]);

323+324+

const output = runtimeLogs.join("\n");

325+

expect(output).toContain('Configured runtime "codex" requires the Codex plugin');

326+

expect(output).toContain('but "codex" is disabled');

327+

expect(output).toContain('Enable the "codex" plugin');

328+

expect(output).not.toContain("openclaw plugins install @openclaw/codex");

329+

expect(output).not.toContain("No plugin issues detected.");

330+

});

331+332+

it("reports blocked configured Codex runtime without install advice", async () => {

333+

const sourceConfig = {

334+

plugins: {

335+

deny: ["codex"],

336+

},

337+

agents: {

338+

defaults: {

339+

models: {

340+

"openai/gpt-5.5": {

341+

agentRuntime: { id: "codex" },

342+

},

343+

},

344+

},

345+

},

346+

};

347+

loadConfig.mockReturnValue(sourceConfig);

348+

buildPluginDiagnosticsReport.mockReturnValue({

349+

plugins: [],

350+

diagnostics: [],

351+

});

352+353+

await runPluginsCommand(["plugins", "doctor"]);

354+355+

const output = runtimeLogs.join("\n");

356+

expect(output).toContain('Configured runtime "codex" requires the Codex plugin');

357+

expect(output).toContain('but "codex" is blocked by plugin configuration');

358+

expect(output).toContain('Remove "codex" from plugins.deny');

359+

expect(output).not.toContain('Run "openclaw doctor --fix" to install');

360+

expect(output).not.toContain("openclaw plugins install @openclaw/codex");

361+

expect(output).not.toContain("No plugin issues detected.");

362+

});

363+364+

it("reports disabled configured Codex runtime entry without install advice", async () => {

365+

const sourceConfig = {

366+

plugins: {

367+

entries: {

368+

codex: { enabled: false },

369+

},

370+

},

371+

agents: {

372+

defaults: {

373+

models: {

374+

"openai/gpt-5.5": {

375+

agentRuntime: { id: "codex" },

376+

},

377+

},

378+

},

379+

},

380+

};

381+

loadConfig.mockReturnValue(sourceConfig);

382+

buildPluginDiagnosticsReport.mockReturnValue({

383+

plugins: [],

384+

diagnostics: [],

385+

});

386+387+

await runPluginsCommand(["plugins", "doctor"]);

388+389+

const output = runtimeLogs.join("\n");

390+

expect(output).toContain('Configured runtime "codex" requires the Codex plugin');

391+

expect(output).toContain('but "codex" is blocked by plugin configuration');

392+

expect(output).toContain("Set plugins.entries.codex.enabled=true");

393+

expect(output).not.toContain('Run "openclaw doctor --fix" to install');

394+

expect(output).not.toContain("openclaw plugins install @openclaw/codex");

395+

expect(output).not.toContain("No plugin issues detected.");

396+

});

397+141398

it("reports config-selected plugin source shadowing in doctor output", async () => {

142399

buildPluginDiagnosticsReport.mockReturnValue({

143400

plugins: [