mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-13 01:14:21 -06:00
DirLock is now File::try_lock on the file beside the folder (flock / LockFileEx), released by the system when the file closes or the process ends: no age-based takeover, so a long download is never taken over and a crash never leaves the folder locked. recover takes the lock and skips while a download holds it (the start paths: with_default_lens_database and fetch_on_start); fetch_all, which holds it, recovers through recover_locked. The hover-preview key test also swaps one database profile for another. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>