Skip to content

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

:art: Remove legacy incorrect history data

Daniel16dd27d65619
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index c2cac4b807..a7a6fb1bc5 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -986,6 +986,7 @@ func clearWorkspaceTemp() {
os.RemoveAll(filepath.Join(util.DataDir, ".siyuan", "history"))
os.RemoveAll(filepath.Join(util.WorkspaceDir, "backup"))
os.RemoveAll(filepath.Join(util.WorkspaceDir, "sync"))
+ os.RemoveAll(filepath.Join(util.DataDir, "%")) // v3.0.6 生成的错误历史文件夹
logging.LogInfof("cleared workspace temp")
}