Skip to content

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

:art: 生成重复/冲突文档时移除 `scroll` 浏览位置属性 Fix https://github.com/siyuan-note/siyuan/issues/6016

Liang Ding268f83cf9ed9
diff --git a/kernel/model/tree.go b/kernel/model/tree.go
index 6e8f319b40..16f2708b63 100644
--- a/kernel/model/tree.go
+++ b/kernel/model/tree.go
@@ -45,6 +45,7 @@ func resetTree(tree *parse.Tree, titleSuffix string) {
titleSuffix = "(" + titleSuffix + ")"
tree.Root.SetIALAttr("id", tree.ID)
tree.Root.SetIALAttr("title", tree.Root.IALAttr("title")+" "+titleSuffix)
+ tree.Root.RemoveIALAttr("scroll")
p := path.Join(path.Dir(tree.Path), tree.ID) + ".sy"
tree.Path = p
tree.HPath = tree.HPath + " " + titleSuffix