Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 支持列出和切换最近打开的文档 https://github.com/siyuan-note/siyuan/issues/3293

Liang Ding8400173cbaae
diff --git a/kernel/model/storage.go b/kernel/model/storage.go
index 5027246b79..4d3520f13f 100644
--- a/kernel/model/storage.go
+++ b/kernel/model/storage.go
@@ -95,7 +95,7 @@ func SetRecentDoc(doc *RecentDoc) (err error) {
recentDocs = append([]*RecentDoc{doc}, recentDocs...)
}
if 32 < len(recentDocs) {
- recentDocs = recentDocs[:64]
+ recentDocs = recentDocs[:32]
}
err = setRecentDocs(recentDocs)