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: 退出时自动删除超过 7 天的安装包 Fix https://github.com/siyuan-note/siyuan/issues/6128
Liang Ding890bc3188d16
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 92e2131f07..cf6235d4da 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -614,10 +614,10 @@ func clearWorkspaceTemp() {os.RemoveAll(filepath.Join(util.TempDir, "repo"))os.RemoveAll(filepath.Join(util.TempDir, "os"))- // 退出时自动删除超过 30 天的安装包 https://github.com/siyuan-note/siyuan/issues/5957+ // 退出时自动删除超过 7 天的安装包 https://github.com/siyuan-note/siyuan/issues/6128install := filepath.Join(util.TempDir, "install")if gulu.File.IsDir(install) {- monthAgo := time.Now().Add(-time.Hour * 24 * 30)+ monthAgo := time.Now().Add(-time.Hour * 24 * 7)entries, err := os.ReadDir(install)if nil != err {logging.LogErrorf("read dir [%s] failed: %s", install, err)