Commit 43672fd
committed
fix(plugin): sanitize prompt fallback in before_prompt_build to prevent query pollution
The prompt fallback path bypassed sanitizeUserTextForCapture, allowing
Sender metadata blocks and timestamps to be sent as search queries to
the OpenViking API, causing irrelevant memories to rank highly.
Made-with: Cursor1 parent 4e8951d commit 43672fd
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
884 | 885 | | |
885 | 886 | | |
886 | 887 | | |
887 | | - | |
| 888 | + | |
888 | 889 | | |
889 | 890 | | |
890 | 891 | | |
| |||
0 commit comments