mirror of
https://github.com/nimbold/Firelink.git
synced 2026-09-10 01:35:43 +00:00
8cbc1c8768
- Prevent premature persistence activation by installing the subscription only after download state initialization finishes - Guard persistence subscription and flush handlers against emitting snapshots before database hydration completes - Preserve array and set reference equality in applyRemovalJob when target job ID is absent, avoiding spurious persistence triggers - Merge removal jobs monotonically during initDB and suppress redundant identical removal events - Recover missing downloads, ownership records, and custom queues from schema v3 migration backup when SQLite downloads table is empty - Add resilience against corrupt backup candidates and maintain referential integrity by excluding tombstoned download paths - Add unit and regression tests covering persistence hydration barriers, removal job deduplication, and backup recovery