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 Dingcb4865a79551
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index e169976dbe..12a2a0287e 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -49,6 +49,7 @@ import (
"github.com/siyuan-note/siyuan/kernel/cache"
"github.com/siyuan-note/siyuan/kernel/conf"
"github.com/siyuan-note/siyuan/kernel/filesys"
+ "github.com/siyuan-note/siyuan/kernel/sql"
"github.com/siyuan-note/siyuan/kernel/task"
"github.com/siyuan-note/siyuan/kernel/treenode"
"github.com/siyuan-note/siyuan/kernel/util"
@@ -1244,6 +1245,7 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dej
upsertRootIDs, removeRootIDs := incReindex(upserts, removes)
elapsed := time.Since(start)
go func() {
+ sql.WaitForWritingDatabase()
util.WaitForUILoaded()
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {