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: 数据同步后冲突文件未生成文件历史索引 Fix https://github.com/siyuan-note/siyuan/issues/7303
Liang Ding228b40b0e8d9
diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex 10033b4995..f53f4ae969 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -1074,6 +1074,7 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dejif 0 < len(mergeResult.Conflicts) && Conf.Sync.GenerateConflictDoc {// 云端同步发生冲突时生成副本 https://github.com/siyuan-note/siyuan/issues/5687+ historyDir := filepath.Join(util.HistoryDir, mergeResult.Time.Format("2006-01-02-150405")+"-sync")luteEngine := NewLute()for _, file := range mergeResult.Conflicts {if !strings.HasSuffix(file.Path, ".sy") {@@ -1097,6 +1098,7 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dejresetTree(tree, "Conflicted")createTreeTx(tree)+ indexHistoryDir(filepath.Base(historyDir), luteEngine)}}