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/7435
Liang Ding2994a9b1d7fc
diff --git a/kernel/model/heading.go b/kernel/model/heading.goindex 2e6762b88c..458f034dd4 100644--- a/kernel/model/heading.go+++ b/kernel/model/heading.go@@ -224,10 +224,15 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath stcontentPivot.Unlink()}- // 推送给前端移除旧文档+ box := Conf.Box(srcTree.Box)+ if removeErr := box.Remove(srcTree.Path); nil != removeErr {+ logging.LogWarnf("remove tree [%s] failed: %s", srcTree.Path, removeErr)+ }+ box.removeSort([]string{srcTree.ID})+ RemoveRecentDoc([]string{srcTree.ID})evt := util.NewCmdResult("removeDoc", 0, util.PushModeBroadcast)evt.Data = map[string]interface{}{- "ids": []string{srcTree.Root.ID},+ "ids": []string{srcTree.ID},}util.PushEvent(evt)