Commit 45b0172
fix(memory): relax trivial filter threshold + update broken tests
The < 2 units threshold was too strict: valid 2-word queries like
"enterprise bug" were blocked. Change to:
- units < 2 → trivial (single word/CJK char)
- content chars < 4 → trivial (too short regardless of units)
This allows "fix bug" (2 units, 6 chars) and "好的继续" (4 units, 4 chars)
while still filtering "bug" (1 unit), "好的" (2 units but 2 chars), etc.
Also update memory-search-semantic tests which used single-word
queries ("bug") — change to "download bug" to match real-world usage.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b1729a1 commit 45b0172
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments