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/16046
Daniel4f39f2a29e77
diff --git a/kernel/model/box.go b/kernel/model/box.goindex 16768373c1..ffcf8bdcb6 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -102,17 +102,22 @@ func ListNotebooks() (ret []*Box, err error) {continue}- if !ast.IsNodeIDPattern(dir.Name()) {+ id := dir.Name()+ if !ast.IsNodeIDPattern(id) {continue}boxConf := conf.NewBoxConf()- boxDirPath := filepath.Join(util.DataDir, dir.Name())+ boxDirPath := filepath.Join(util.DataDir, id)boxConfPath := filepath.Join(boxDirPath, ".siyuan", "conf.json")isExistConf := filelock.IsExist(boxConfPath)if !isExistConf {- // 数据同步时展开文档树操作可能导致数据丢失 https://github.com/siyuan-note/siyuan/issues/7129- logging.LogWarnf("found a corrupted box [%s]", boxDirPath)+ if !IsUserGuide(id) {+ // 数据同步时展开文档树操作可能导致数据丢失 https://github.com/siyuan-note/siyuan/issues/7129+ logging.LogWarnf("found a corrupted box [%s]", boxDirPath)+ } else {+ continue+ }} else {data, readErr := filelock.ReadFile(boxConfPath)if nil != readErr {@@ -126,7 +131,6 @@ func ListNotebooks() (ret []*Box, err error) {}}- id := dir.Name()icon := boxConf.Iconif strings.Contains(icon, ".") { // 说明是自定义图标// XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034