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: 文档数据文件名不符合 ID 格式时自动移动到 corrupted 文件夹下 Fix https://github.com/siyuan-note/siyuan/issues/7343
Liang Ding698f130ffaa0
diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.goindex f31fc43274..a01c4feeb4 100644--- a/kernel/model/index_fix.go+++ b/kernel/model/index_fix.go@@ -128,6 +128,12 @@ func resetDuplicateTrees() {duplicatedPaths := map[string]string{}for p, absPath := range paths {name := path.Base(p)+ if !ast.IsNodeIDPattern(strings.TrimSuffix(name, ".sy")) {+ logging.LogWarnf("invalid .sy file name [%s]", p)+ box.moveCorruptedData(absPath)+ continue+ }+if !names[name] {names[name] = truecontinue