mirror of https://github.com/openclaw/openclaw.git
* fix(memory): prefer --mask over --glob for qmd collection pattern flag
qmd 2.0.1 silently ignores the --glob flag when creating collections,
causing all patterns (e.g. MEMORY.md, memory.md) to fall back to the
default **/*.md glob. This leads to collection conflicts when multiple
collections target the same workspace directory with different patterns.
The existing flag negotiation logic in addCollection() tries --glob
first (when collectionPatternFlag is null), and since qmd accepts the
flag without error, OpenClaw never falls back to --mask. The result is
that memory-root-{agent} gets created with **/*.md instead of MEMORY.md,
and memory-alt-{agent} fails with a duplicate path+pattern conflict.
Fix: default collectionPatternFlag to '--mask' so the working flag is
tried first. The fallback to --glob is preserved for older qmd versions
that may not support --mask.
* docs(changelog): note qmd collection flag fix
---------
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
|
||
|---|---|---|
| .. | ||
| memory | ||
| cli.runtime.ts | ||
| cli.test.ts | ||
| cli.ts | ||
| cli.types.ts | ||
| flush-plan.ts | ||
| prompt-section.ts | ||
| runtime-provider.ts | ||
| tools.citations.test.ts | ||
| tools.citations.ts | ||
| tools.runtime.ts | ||
| tools.shared.ts | ||
| tools.test-helpers.ts | ||
| tools.test.ts | ||
| tools.ts | ||