fix(sync,rag): keep restored rows, reconcile after tombstone pruning, reject partial knowledge docs, surface RAG indexing failures

This commit is contained in:
Yun Chan 2026-09-28 02:16:14 +09:00
parent bbaf1e0a99
commit 3a46437f28
13 changed files with 1630 additions and 448 deletions

View file

@ -332,7 +332,10 @@ export const IPC_CHANNELS = {
REINDEX: 'rag:reindex',
// Main → Renderer events
INDEX_PROGRESS: 'rag:indexProgress',
/** 색인 실행이 끝났다(성공·실패 무관). 실패면 INDEX_FAILED 가 먼저 온다 — 결과는 문서의 indexed 로 본다. */
INDEX_COMPLETE: 'rag:indexComplete',
/** 색인 실패 { documentId, fileName, code, message } (임베딩 모델 없음·서버 없음 등) */
INDEX_FAILED: 'rag:indexFailed',
QUERY_RESULT: 'rag:queryResult',
},