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: 修改带命名的文档名锚文本会更新为文档名 https://github.com/siyuan-note/siyuan/issues/6259
Liang Ding95d2b7f67c74
diff --git a/kernel/model/file.go b/kernel/model/file.goindex 305500e4ca..25b453d63c 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -1275,12 +1275,14 @@ func RenameDoc(boxID, p, title string) (err error) {title = "Untitled"}+ refText := getNodeRefText(tree.Root)evt := util.NewCmdResult("rename", 0, util.PushModeBroadcast, util.PushModeNone)evt.Data = map[string]interface{}{- "box": boxID,- "id": tree.Root.ID,- "path": p,- "title": title,+ "box": boxID,+ "id": tree.Root.ID,+ "path": p,+ "title": title,+ "refText": refText,}util.PushEvent(evt)