fix(memory): default qmd searchMode to search + scope search/vsearch to collections

This commit is contained in:
vignesh07
2026-02-13 22:44:56 -08:00
committed by Vignesh
parent a50638eead
commit e38ed4f640
5 changed files with 21 additions and 32 deletions

View File

@@ -262,9 +262,10 @@ export class QmdMemoryManager implements MemorySearchManager {
}
const qmdSearchCommand = this.qmd.searchMode;
const args = this.buildSearchArgs(qmdSearchCommand, trimmed, limit);
if (qmdSearchCommand === "query") {
args.push(...collectionFilterArgs);
}
// Always scope to managed collections (default + custom). Even for `search`/`vsearch`,
// pass collection filters; if a given QMD build rejects these flags, we fall back to `query`.
args.push(...collectionFilterArgs);
let stdout: string;
let stderr: string;
try {