Memory/QMD: warn when scope denies search

This commit is contained in:
Vignesh Natarajan
2026-02-07 19:42:34 -08:00
committed by Vignesh
parent 6aedc54bd7
commit 7f7d49aef0
4 changed files with 70 additions and 0 deletions

View File

@@ -184,6 +184,8 @@ out to QMD for retrieval. Key points:
- `scope`: same schema as [`session.sendPolicy`](/gateway/configuration#session).
Default is DM-only (`deny` all, `allow` direct chats); loosen it to surface QMD
hits in groups/channels.
- When `scope` denies a search, OpenClaw logs a warning with the derived
`channel`/`chatType` so empty results are easier to debug.
- Snippets sourced outside the workspace show up as
`qmd/<collection>/<relative-path>` in `memory_search` results; `memory_get`
understands that prefix and reads from the configured QMD collection root.