fix #92582: Bug: doctor falsely warns local memory embeddings are not… · openclaw/openclaw@ce0142f
mikasa0818
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -237,6 +237,47 @@ describe("noteMemorySearchHealth", () => {
|
237 | 237 | expect(note).not.toHaveBeenCalled(); |
238 | 238 | }); |
239 | 239 | |
| 240 | +it("does not warn when local provider readiness probe was intentionally skipped", async () => { |
| 241 | +resolveMemorySearchConfig.mockReturnValue({ |
| 242 | +provider: "local", |
| 243 | +local: { modelPath: "hf:some-org/some-model-GGUF/model.gguf" }, |
| 244 | +remote: {}, |
| 245 | +}); |
| 246 | + |
| 247 | +await noteMemorySearchHealth(cfg, { |
| 248 | +gatewayMemoryProbe: { |
| 249 | +checked: false, |
| 250 | +ready: false, |
| 251 | +error: |
| 252 | +"memory embedding readiness not checked; run `openclaw memory status --deep` to probe", |
| 253 | +skipped: true, |
| 254 | +}, |
| 255 | +}); |
| 256 | + |
| 257 | +expect(note).not.toHaveBeenCalled(); |
| 258 | +}); |
| 259 | + |
| 260 | +it("warns when local provider skipped readiness but configured local model is missing", async () => { |
| 261 | +resolveMemorySearchConfig.mockReturnValue({ |
| 262 | +provider: "local", |
| 263 | +local: { modelPath: "/definitely/missing/openclaw-memory-model.gguf" }, |
| 264 | +remote: {}, |
| 265 | +}); |
| 266 | + |
| 267 | +await noteMemorySearchHealth(cfg, { |
| 268 | +gatewayMemoryProbe: { |
| 269 | +checked: false, |
| 270 | +ready: false, |
| 271 | +error: |
| 272 | +"memory embedding readiness not checked; run `openclaw memory status --deep` to probe", |
| 273 | +skipped: true, |
| 274 | +}, |
| 275 | +}); |
| 276 | + |
| 277 | +expect(note).toHaveBeenCalledTimes(1); |
| 278 | +expect(firstNoteMessage()).toContain('Memory search provider is set to "local"'); |
| 279 | +}); |
| 280 | + |
240 | 281 | it("warns when local provider readiness probe is inconclusive", async () => { |
241 | 282 | resolveMemorySearchConfig.mockReturnValue({ |
242 | 283 | provider: "local", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。