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: The referenced block under the folded heading cannot be hovered to view Fix https://github.com/siyuan-note/siyuan/issues/9582
Daniel2802efdfb374
diff --git a/kernel/model/file.go b/kernel/model/file.goindex 092d308580..6318a51bbb 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -722,8 +722,12 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s}if "1" == n.IALAttr("heading-fold") {- unlinks = append(unlinks, n)- return ast.WalkContinue+ // 折叠标题下被引用的块无法悬浮查看+ // The referenced block under the folded heading cannot be hovered to view https://github.com/siyuan-note/siyuan/issues/9582+ if 0 != mode && id != n.ID {+ unlinks = append(unlinks, n)+ return ast.WalkContinue+ }}if "" != n.ID {diff --git a/kernel/model/heading.go b/kernel/model/heading.goindex 0726411949..38a7528ca1 100644--- a/kernel/model/heading.go+++ b/kernel/model/heading.go@@ -54,7 +54,6 @@ func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) {return ast.WalkContinue}- n.SetIALAttr("fold", "1")n.SetIALAttr("heading-fold", "1")return ast.WalkContinue})