mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-01 05:57:09 -06:00
While a headless run settles, its simulated clock runs several times faster than wall time, so with every Missing Photos count pending, a count that takes about a second started the next 5 s refresh before the last one finished and settle() never ended (120 s timeout with a 1 s count, 48 s with 600 ms). That would also stall lightcraft-cli snapshot on a library on a slow share. Only the first count and a recount after a catalog change, which add or take away the Missing Photos row, are pending work now; the timed refresh is not. Settling takes as long as the count (1.0 s for 1 s, 3.0 s for 3 s). The regression test also checks that settling ends while a slow count refreshes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>