mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 11:28:22 +00:00
Three bugs: - ExistingPeriodicWorkPolicy.REPLACE was resetting the 5-minute initial delay on every app start, so the worker never fired for users who open the app more than once before the delay expires. Changed to KEEP. - No immediate cleanup meant existing accumulated data (e.g. 4GB) sat untouched until the periodic worker eventually ran. Added a one-time WorkRequest (ExistingWorkPolicy.KEEP) on every app start so cleanup runs right away. - VACUUM on a multi-GB SQLite database requires equivalent free disk space as temp storage and blocks the DB for a long time — removed it. Row-level deletion via count/age caps is sufficient to control size. https://claude.ai/code/session_01BCMhs2yA9XNUvfaX4sqsfv