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/16883
Daniel9b07a78b1667
diff --git a/kernel/model/history.go b/kernel/model/history.goindex 11da3f07d3..151b1bede4 100644--- a/kernel/model/history.go+++ b/kernel/model/history.go@@ -681,6 +681,11 @@ func clearOutdatedHistoryDir(historyDir string) {continue}+ if dirInfo.ModTime().Unix() < ago {+ removes = append(removes, filepath.Join(historyDir, dir.Name()))+ continue+ }+var nameTime int64if dirName := dirInfo.Name(); len(dirName) > len("2006-01-02-150405") {if t, parseErr := time.Parse("2006-01-02-150405", dirName[:len("2006-01-02-150405")]); nil == parseErr {@@ -688,7 +693,7 @@ func clearOutdatedHistoryDir(historyDir string) {}}- if dirInfo.ModTime().Unix() < ago || (0 != nameTime && nameTime < ago) {+ if 0 != nameTime && nameTime < ago {removes = append(removes, filepath.Join(historyDir, dir.Name()))}}