An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 支持列出和切换最近打开的文档 https://github.com/siyuan-note/siyuan/issues/3293
Liang Ding3b1b62fb7ef2
diff --git a/kernel/model/storage.go b/kernel/model/storage.goindex 0851989e47..813bb72dc5 100644--- a/kernel/model/storage.go+++ b/kernel/model/storage.go@@ -80,17 +80,14 @@ func SetRecentDoc(doc *RecentDoc) (err error) {return}- update := falsefor i, c := range recentDocs {if c.RootID == doc.RootID {- recentDocs[i] = doc- update = true+ recentDocs = append(recentDocs[:i], recentDocs[i+1:]...)break}}- if !update {- recentDocs = append([]*RecentDoc{doc}, recentDocs...)- }++ recentDocs = append([]*RecentDoc{doc}, recentDocs...)if 32 < len(recentDocs) {recentDocs = recentDocs[:32]}