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: Recent docs not updated after renaming Fix https://github.com/siyuan-note/siyuan/issues/7827
Liang Ding8d461d9481c8
diff --git a/kernel/model/storage.go b/kernel/model/storage.goindex f9c16ad0c6..a1aef1d07d 100644--- a/kernel/model/storage.go+++ b/kernel/model/storage.go@@ -19,6 +19,7 @@ package modelimport ("errors""os"+ "path""path/filepath""sync"@@ -145,7 +146,8 @@ func getRecentDocs() (ret []*RecentDoc, err error) {var notExists []stringfor _, doc := range tmp {- if nil != treenode.GetBlockTree(doc.RootID) {+ if bt := treenode.GetBlockTree(doc.RootID); nil != bt {+ doc.Title = path.Base(bt.HPath) // Recent docs not updated after renaming https://github.com/siyuan-note/siyuan/issues/7827ret = append(ret, doc)} else {notExists = append(notExists, doc.RootID)