An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Persist box ID in index_node queue entry to preserve OCR routing across restarts #18034
Daniel70573ba50294
diff --git a/kernel/sql/index_queue.go b/kernel/sql/index_queue.goindex f2022fefe4..99d8813183 100644--- a/kernel/sql/index_queue.go+++ b/kernel/sql/index_queue.go@@ -128,7 +128,7 @@ func dbOpToIndexEntry(op *dbQueueOperation) *indexEntry {case "delete_assets":return &indexEntry{Action: "delete_assets", Hashes: op.removeAssetHashes}case "index_node":- return &indexEntry{Action: "index_node", ID: op.id}+ return &indexEntry{Action: "index_node", ID: op.id, Box: op.box}default:return nil}@@ -314,7 +314,7 @@ func indexEntryToOp(e indexEntry, luteEngine *lute.Lute, prefix string) *dbQueuecase "delete_assets":return &dbQueueOperation{removeAssetHashes: e.Hashes, inQueueTime: time.Now(), action: "delete_assets"}case "index_node":- return &dbQueueOperation{id: e.ID, inQueueTime: time.Now(), action: "index_node"}+ return &dbQueueOperation{id: e.ID, box: e.Box, inQueueTime: time.Now(), action: "index_node"}}return nil}