memory isolation fix and session grouping in client

This commit is contained in:
Storme-bit
2026-04-19 02:09:12 -07:00
parent 56355d232b
commit 9c903a56ae
7 changed files with 238 additions and 96 deletions

View File

@@ -180,7 +180,8 @@ After extraction, each entity is:
the entity is new (`COALESCE(entities.notes, excluded.notes)` prevents
overwriting existing notes with speculative updates)
2. Embedded via the embedding service and upserted into the `entities`
Qdrant collection with `{ name, type, notes }` as payload
Qdrant collection with `{ name, type, notes, projectId }` as payload
`projectId` scopes entities to their project for isolated retrieval
The Qdrant payload stores enough information to reconstruct entity context
at retrieval time without a SQLite roundtrip.