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: 自动校验数据库索引 https://github.com/siyuan-note/siyuan/issues/7016
Liang Ding48548de9be6b
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 92dc9be467..4992a1b412 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -20,6 +20,7 @@ import ("bytes""errors""fmt"+ "os""path""path/filepath""strings"@@ -1295,6 +1296,10 @@ func reindexTree(rootID string, i, size int) {tree, err := LoadTree(root.BoxID, root.Path)if nil != err {+ if os.IsNotExist(err) {+ // 文件系统上没有找到该 .sy 文件,则订正块树+ treenode.RemoveBlockTreesByRootID(rootID)+ }return}