Skip to content

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

:art: 退出时清理工作空间临时文件

Liang Ding218a053c9fb1
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 6d602a7031..07e695006d 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -541,6 +541,8 @@ func clearWorkspaceTemp() {
os.RemoveAll(filepath.Join(util.TempDir, "bazaar"))
os.RemoveAll(filepath.Join(util.TempDir, "export"))
os.RemoveAll(filepath.Join(util.TempDir, "import"))
+ os.RemoveAll(filepath.Join(util.TempDir, "repo"))
+ os.RemoveAll(filepath.Join(util.TempDir, "os"))
os.RemoveAll(filepath.Join(util.WorkspaceDir, "incremental")) // `工作空间/incremental/` 文件夹移动到 `工作空间/temp/incremental/` https://github.com/siyuan-note/siyuan/issues/5119
tmps, err := filepath.Glob(filepath.Join(util.TempDir, "*.tmp"))