Skip to content

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

:art: Improve clearing workspace temp

Daniel23e42b4453a6
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index d16e338eeb..8d7e74de77 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -1240,6 +1240,7 @@ func clearWorkspaceTemp() {
os.RemoveAll(filepath.Join(util.TempDir, "repo"))
os.RemoveAll(filepath.Join(util.TempDir, "os"))
os.RemoveAll(filepath.Join(util.TempDir, "base64"))
+ os.RemoveAll(filepath.Join(util.TempDir, "ai"))
// 退出时自动删除超过 7 天的安装包 https://github.com/siyuan-note/siyuan/issues/6128
install := filepath.Join(util.TempDir, "install")