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/7129
Liang Dinge2fc3f442cbf
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex b27c07d53c..a1389eca5f 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -696,20 +696,7 @@ func clearCorruptedNotebooks() {boxDirPath := filepath.Join(util.DataDir, dir.Name())boxConfPath := filepath.Join(boxDirPath, ".siyuan", "conf.json")if !gulu.File.IsExist(boxConfPath) {- if IsUserGuide(dir.Name()) {- filelock.Remove(boxDirPath)- continue- }- to := filepath.Join(util.WorkspaceDir, "corrupted", time.Now().Format("2006-01-02-150405"), dir.Name())- if copyErr := filelock.Copy(boxDirPath, to); nil != copyErr {- logging.LogErrorf("copy corrupted box [%s] failed: %s", boxDirPath, copyErr)- continue- }- if removeErr := filelock.Remove(boxDirPath); nil != removeErr {- logging.LogErrorf("remove corrupted box [%s] failed: %s", boxDirPath, removeErr)- continue- }- logging.LogWarnf("moved corrupted box [%s] to [%s]", boxDirPath, to)+ logging.LogWarnf("found a corrupted box [%s]", boxDirPath)continue}}