Sep 11
Setting "retentionDays" to -1 silently deletes the entire history
-1 is what the per-type settings use for "Forever", so it's the natural value to try for the global one. Instead the sweep appears to do date math on it, putting the cutoff a day ahead and deleting every item on next launch. A large finite value like 36500 works fine, so clamping it or adding a real "Forever" option would avoid the data loss.
Completed

Thanks for the detailed report and for tracing it down to the date math. I checked this against ClipBook 2, and the issue doesn’t occur there: - There’s no single global retentionDays setting anymore. Each type (Texts, Rich Texts, Images, Files & Folders, Links, Emails, Colors) has its own retention period in Settings → Storage. If you add a retentionDays key by hand, ClipBook 2 ignores it. - On those per-type settings, -1 means “Unlimited”. ClipBook 2 checks for it before any date math, so a type set to Unlimited never expires and nothing gets deleted. You can choose it by moving the slider to “Forever”. It sounds like you were looking at the ClipBook 1 source. If you’re still on version 1, I’d recommend updating to ClipBook 2. Then use the Unlimited option instead of editing the value by hand. If you lost history on ClipBook 2, please tell me your app version and the steps you took, and I’ll look into it right away.