fix(automerge): scrub iteration 1
fixed: agentMemory.recall threshold reverted from `>1` to `>0` so single-stem queries (e.g. "deploy" vs "deploy script fails") return relevant matches.
This commit is contained in:
@@ -158,7 +158,7 @@ export const agentMemory = {
|
||||
return { m, score: score + tagScore };
|
||||
});
|
||||
return scored
|
||||
.filter((x) => x.score > 1)
|
||||
.filter((x) => x.score > 0)
|
||||
.sort((a, b) => b.score - a.score || (b.m.created_at || "").localeCompare(a.m.created_at || ""))
|
||||
.slice(0, limit)
|
||||
.map((x) => x.m);
|
||||
|
||||
Reference in New Issue
Block a user