--verify keeps a mismatched original until a matching copy replaces it (closes #199) #209

Merged
clawbot merged 1 commits from issue-199-verify-keeps-original into next 2026-10-16 06:56:19 +02:00
1 Commits
Author SHA1 Message Date
sneak 10fe0c9841 --verify keeps a mismatched original until a matching copy replaces it (closes #199)
check / check (push) Waiting to run
With --verify, an original whose hash does not match is no longer removed
before its replacement is downloaded. replaceOriginal, beside placeOriginal
in src/library/content.ts, has the content cache's new fetchOriginal write
the replacement to a temporary file beside the original, hashes it, and
renames it over the original only when it matches; a live photo's image and
video are both hashed before either is renamed. A failed or mismatching
download leaves the old bytes and album links, removes the temporary files,
and lands in failures.json. The replacement is always downloaded, never
copied from the cache. The leftover-file cleanup also takes a live photo's
replacement files, .quak-<pid>-<random>.<ext>.

Model: opus-5-5
2026-10-16 04:25:55 +00:00