Commit f4ffc8a
committed
session/Cleanup: remove stale entries from vector index
Store.Cleanup() primary path (with index) bypassed Store.Delete() and
directly removed files + index entries — but never called Vec.Remove().
This left orphaned vectors in the vector store on every /prune command.
They were silently skipped during search (Load fails -> continue), but
accumulated garbage in vectors.gob.
Now calls Vec.Remove(id) alongside file removal, matching the fallback
path (which correctly used Store.Delete() -> Vec.Remove()).1 parent 9e3ef5e commit f4ffc8a
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
503 | 507 | | |
504 | 508 | | |
505 | 509 | | |
| |||
0 commit comments