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: https://github.com/siyuan-note/siyuan/issues/11149
Daniel0312e968a11f
diff --git a/kernel/model/tree.go b/kernel/model/tree.goindex 10c50b0ec7..65e180ab4a 100644--- a/kernel/model/tree.go+++ b/kernel/model/tree.go@@ -244,6 +244,10 @@ func searchTreeInFilesystem(rootID string) {treePath = strings.TrimPrefix(treePath, string(os.PathSeparator))treePath = strings.TrimPrefix(treePath, boxID)treePath = filepath.ToSlash(treePath)+ if nil == Conf.Box(boxID) {+ // 如果笔记本不存在或者已经关闭,则不处理 https://github.com/siyuan-note/siyuan/issues/11149+ return+ }tree, err := filesys.LoadTree(boxID, treePath, util.NewLute())if nil != err {@@ -251,11 +255,6 @@ func searchTreeInFilesystem(rootID string) {return}- if nil == Conf.Box(boxID) {- // 如果笔记本不存在或者已经关闭,则不处理 https://github.com/siyuan-note/siyuan/issues/11149- return- }-treenode.IndexBlockTree(tree)sql.IndexTreeQueue(tree)logging.LogInfof("reindexed tree by filesystem [rootID=%s]", rootID)