openclaw/extensions/memory-core
qingminlong de27d8306e
fix(memory): keep QMD file hints after stale docid misses (issue #113041) (#113515)
* fix(memory): keep qmd file hints after docid misses

* fix(memory): 不要将 hint-only 的 QMD 文档位置缓存到 docid 缓存中

当本地 docid 索引查询无结果时,使用 QMD 文件提示回退来解析文档位置。
但之前的代码将 hint-only 的结果也缓存到了 docPathCache 中,这导致
索引恢复后依然使用旧的回退位置。

修改:
1. qmd-document-resolver.ts: 分离索引查询结果和 hint 回退结果,
   只缓存来自索引查询的 pickDocLocation 结果。
2. qmd-manager.test.ts: 添加索引恢复回归测试,验证索引为空时
   使用 hint 回退,索引恢复后使用索引中的记录而不是缓存的回退位置。

Co-Authored-By: Claude <noreply@anthropic.com>

* test(memory): expect qmd hint provenance

* chore(memory): clarify QMD hint cache behavior

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2026-08-05 19:56:03 -07:00
..
src fix(memory): keep QMD file hints after stale docid misses (issue #113041) (#113515) 2026-08-05 19:56:03 -07:00
api.ts fix(memory): keep wiki search inside protected recall visibility (#118265) 2026-08-02 18:22:17 -07:00
cli-metadata.test.ts fix(memory): honor keyed agents in standalone operations (#118310) 2026-08-03 11:18:39 -05:00
cli-metadata.ts fix(memory): honor keyed agents in standalone operations (#118310) 2026-08-03 11:18:39 -05:00
cli.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
doctor-contract-api.test.ts fix(memory): permanent legacy sidecar migration warning for empty placeholder OpenClaw creates (#114661) 2026-08-02 07:51:20 -07:00
doctor-contract-api.ts fix(memory): keep degraded status actionable (#116074) 2026-07-29 16:58:57 -04:00
index.test.ts improve(gateway): defer inactive plugin runtime imports (#119733) 2026-08-06 07:38:24 +08:00
index.ts improve(gateway): defer inactive plugin runtime imports (#119733) 2026-08-06 07:38:24 +08:00
manager-runtime.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
openclaw.plugin.json fix(ui): stabilize memory engine selection (#115750) 2026-07-29 11:37:39 +02:00
package.json fix(memory): keep wiki search inside protected recall visibility (#118265) 2026-08-02 18:22:17 -07:00
runtime-api.ts refactor(plugin-sdk): inject memory local service per call 2026-07-12 06:33:57 +08:00
tsconfig.json refactor(plugins): inherit shared package boundary settings (#117474) 2026-08-01 09:11:09 -07:00