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: Document content not updated after snapshot rollback https://github.com/siyuan-note/siyuan/issues/17026
Danield007668d1014
diff --git a/kernel/cache/tree.go b/kernel/cache/tree.goindex 836d2149a6..4645436b07 100644--- a/kernel/cache/tree.go+++ b/kernel/cache/tree.go@@ -52,3 +52,7 @@ func SetTreeData(rootID string, raw []byte) {func RemoveTreeData(rootID string) {treeCache.Del(rootID)}++func ClearTreeCache() {+ treeCache.Clear()+}diff --git a/kernel/model/box.go b/kernel/model/box.goindex d294b7d218..7530c6be6c 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -797,6 +797,10 @@ func VacuumDataIndex() {}func FullReindex() {+ cache.ClearTreeCache()+ cache.ClearDocsIAL()+ cache.ClearBlocksIAL()+task.AppendTask(task.DatabaseIndexFull, fullReindex)task.AppendTask(task.DatabaseIndexRef, IndexRefs)go func() {@@ -804,8 +808,6 @@ func FullReindex() {ResetVirtualBlockRefCache()}()task.AppendTaskWithTimeout(task.DatabaseIndexEmbedBlock, 30*time.Second, autoIndexEmbedBlock)- cache.ClearDocsIAL()- cache.ClearBlocksIAL()task.AppendTask(task.ReloadUI, util.ReloadUI)}