fix(config): keep blocked memory slots fatal · openclaw/openclaw@0204c52
2026-05-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -357,6 +357,53 @@ describe("config plugin validation", () => {
|
357 | 357 | expectPathMessage(res.warnings, "plugins.entries.memory-lancedb", message); |
358 | 358 | }); |
359 | 359 | |
| 360 | +it("keeps blocked official external memory slot plugins fatal", () => { |
| 361 | +const res = validateConfigObjectWithPlugins( |
| 362 | +{ |
| 363 | +agents: { list: [{ id: "pi" }] }, |
| 364 | +plugins: { |
| 365 | +slots: { memory: "memory-lancedb" }, |
| 366 | +entries: { "memory-lancedb": { enabled: true } }, |
| 367 | +}, |
| 368 | +}, |
| 369 | +{ |
| 370 | +env: suiteEnv(), |
| 371 | +pluginMetadataSnapshot: { |
| 372 | +manifestRegistry: { |
| 373 | +plugins: [], |
| 374 | +diagnostics: [ |
| 375 | +{ |
| 376 | +level: "warn", |
| 377 | +pluginId: "memory-lancedb", |
| 378 | +message: "blocked plugin candidate: fixture safety block", |
| 379 | +}, |
| 380 | +], |
| 381 | +}, |
| 382 | +}, |
| 383 | +}, |
| 384 | +); |
| 385 | + |
| 386 | +expect(res.ok).toBe(false); |
| 387 | +if (res.ok) { |
| 388 | +return; |
| 389 | +} |
| 390 | +expectPathMessageIncludes( |
| 391 | +res.issues, |
| 392 | +"plugins.slots.memory", |
| 393 | +"plugin present but blocked: memory-lancedb", |
| 394 | +); |
| 395 | +expectPathMessageIncludes( |
| 396 | +res.warnings, |
| 397 | +"plugins.entries.memory-lancedb", |
| 398 | +"plugin present but blocked: memory-lancedb", |
| 399 | +); |
| 400 | +expect( |
| 401 | +res.warnings?.some((warning) => |
| 402 | +warning.message.includes("plugin not installed: memory-lancedb"), |
| 403 | +), |
| 404 | +).toBe(false); |
| 405 | +}); |
| 406 | + |
360 | 407 | it.runIf(process.platform !== "win32")( |
361 | 408 | "reports configured blocked plugins without stale not-found wording", |
362 | 409 | async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。