Commit graph

3 commits

Author SHA1 Message Date
Yun Chan
6fef05a39f fix(rag): don't carry a query, upload or indexing run across an account switch
The chunk store reads whatever database is open at call time, so a query that
was awaiting the model returned an answer built from the previous account's
documents, and a large file being read was inserted into the new account's
knowledge base and synced there. Each operation now remembers the account
scope it started in and stops if it changed.
2026-10-21 11:23:21 +09:00
Yun Chan
c46713536d fix(rag): stop superseded indexing runs and refuse to wipe chunks on an empty reindex
- Each document gets an indexing run number; a reindex, synced replacement or
  delete makes the older run stop instead of embedding stale chunks, reporting
  'indexed' early and leaving a progress bar for a deleted document
- Reindexing a file that is now empty throws like addDocument instead of
  replacing the stored chunks with nothing
2026-10-21 00:24:38 +09:00
Yun Chan
3a46437f28 fix(sync,rag): keep restored rows, reconcile after tombstone pruning, reject partial knowledge docs, surface RAG indexing failures 2026-09-28 02:16:14 +09:00