Skip to content

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

:bug: Editor not automatically refreshed after rolling back document https://github.com/siyuan-note/siyuan/issues/13419

Daniel914f6314c095
diff --git a/kernel/util/path.go b/kernel/util/path.go
index 0669d05d16..a9617da845 100644
--- a/kernel/util/path.go
+++ b/kernel/util/path.go
@@ -38,6 +38,9 @@ var (
)
func GetTreeID(treePath string) string {
+ if strings.Contains(treePath, "\\") {
+ return strings.TrimSuffix(filepath.Base(treePath), ".sy")
+ }
return strings.TrimSuffix(path.Base(treePath), ".sy")
}