An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve indexing histories queue
Daniel812068fe6009
diff --git a/kernel/sql/queue_history.go b/kernel/sql/queue_history.goindex 493ea94705..63a585d481 100644--- a/kernel/sql/queue_history.go+++ b/kernel/sql/queue_history.go@@ -130,6 +130,10 @@ func DeleteOutdatedHistories(before int64) {}func IndexHistoriesQueue(histories []*History) {+ if 1 > len(histories) {+ return+ }+historyDBQueueLock.Lock()defer historyDBQueueLock.Unlock()