Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: The interface is no longer reloaded after data synchronization https://github.com/siyuan-note/siyuan/issues/8098

Liang Dingd68a637ad25f
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index 12a2a0287e..fd25e24dc5 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1059,8 +1059,6 @@ func bootSyncRepo() (err error) {
logging.LogErrorf("boot background sync repo failed: %s", syncErr)
return
}
- syncingFiles = sync.Map{}
- syncingStorages = false
}()
}
return
@@ -1232,6 +1230,9 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dej
LoadAssetsTexts()
}
+ syncingFiles = sync.Map{}
+ syncingStorages = false
+
cache.ClearDocsIAL() // 同步后文档树文档图标没有更新 https://github.com/siyuan-note/siyuan/issues/4939
if needFullReindex(upsertTrees) { // 改进同步后全量重建索引判断 https://github.com/siyuan-note/siyuan/issues/5764
FullReindex()