Skip to content

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

:bug: Automatic cleanup of the local data repo may accidentally delete snapshots https://github.com/siyuan-note/siyuan/issues/13203

Daniel84aea8cd2f0d
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index 875c47e9e7..6680622914 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -153,7 +153,7 @@ func autoPurgeRepo(cron bool) {
}
retentionIndexIDs = gulu.Str.RemoveDuplicatedElem(retentionIndexIDs)
- if 1 > len(retentionIndexIDs) {
+ if 16 > len(retentionIndexIDs) {
logging.LogInfof("no index to purge [ellapsed=%.2fs]", time.Since(now).Seconds())
return
}