fix(copies): address the owner review 6 findings

The review of the found-copies work showed pairs that could stick, jobs that
could act on a pair the user had answered otherwise, and detection gaps:

- forgetting a link on an address-keyed server deletes the pair and Candidate
  rows of that remote and resets the probe, so the sequence is found again
  when it is back; a Linked/Integrated row with no link is asked again
- 404s count only on id-keyed servers, at most once per recheck interval
- probes store the server's newest update time (copy_probes.server_newest,
  migration 0012) instead of comparing with this PC's clock; the lookup
  sample carries hashed photos by size and capture time too, for servers
  that have not hashed their copy
- the older-server gate no longer re-compares unchanged manifests
- a failed Integrate keeps its job id so a retry resumes only an untouched
  pair; cancel and stale plans release the pair (ReleaseAsync)
- automatic photo transfers never create or retarget a sequence
- a first upload files photos the server holds elsewhere into the new
  sequence
- Unlink re-compares before keeping apart; Trash here names only true last
  copies; Drop... trashes one version on both sides after re-checking the
  other
- a merge keeping the pair's other sequence swaps the dialog's columns and
  re-keys Different choices; Upload all reads every pair

Each fix has a regression test where it makes sense.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-17 13:12:00 +01:00
1 parent 96b5b4078b
commit fe752a0a21
33 files changed
+957 -123

No files matched your search

+6
View File
@@ -901,3 +901,9 @@ One line per decision: date · decision · alternative · reason.
| 2026-11-16 | `installer-test.ps1` is not run on a PC that has Chronos installed for all users: the setup finds the all-users install when no per-user one exists and asks for elevation to upgrade or remove it. It runs on a clean Windows (the CI windows job, a VM) | Point the script at another product name | The upgrade and legacy paths it checks only exist for the product `Chronos` |
| 2026-11-16 | The job log keeps storing each line's time in UTC (`HH:mm:ss`); the desktop shows it in local time, dating the lines backwards from the job's end (or now): each line is the latest instant at or before the next one. A pause of a day or more between two lines cannot be seen and those lines take the later day, so across a clock change they may be an hour off (#70) | Write local time into the log; store full UTC timestamps | A server's jobs are read from desktops in any time zone, logs already stored stay readable, and the stored format (shown as is by the admin panel) does not change |
| 2026-11-16 | The Type column of Jobs and Server › Jobs is a 1* share (was 0.7*), 90–170 px, so the Italian "Analisi approfondita" fits in a 1440 px window (#70) | `Auto` shared across the rows | `Auto` keeps its width at the minimum window, where the star columns are already at their minimums, and pushed the row actions out (Dutch, 12 px) |
| 2026-11-17 | Forgetting a link on a server known only by its address (no 404 mark) deletes that remote's Candidate rows and its Linked/Integrated pair row with this local copy, and resets the local copy's probe for that server (#73) | Keep the rows | A sequence back on the server must be detected again, not hidden by a row that no link backs |
| 2026-11-17 | A failed Integrate keeps its job id on the pair (state set back); a retry resumes only while the pair is still Integrating or carries that job; otherwise it deletes its journal and fails as a stale plan. A cancel or a stale plan clears the job id (#73) | Clear the job id on every failure | A retry must not touch a pair the user answered meanwhile, and a failed job must still be resumable |
| 2026-11-17 | Automatic photo transfers (`SyncJobParameters.Automatic`) never create or retarget a sequence: the link and an Integrated pair with automatic photos must still hold and the server sequence must exist; else the job fails (#73) | Fall back to the ordinary upload or download | The setting moves photos between the two sides of a pair, nothing more |
| 2026-11-17 | A local copy's probe stores the server's newest update time it saw (`copy_probes.server_newest`, in migration 0012); a server sequence is due only when the server shows a newer one (to the microsecond) | Compare with this PC's clock | A server whose clock is behind would hide its new sequences |
| 2026-11-17 | The photo lookup's sample also carries the hashed sample photos by size and capture time; the hit threshold counts each sampled photo once | Hashes only | A server that has not hashed its copy yet (adopted, not verified) lists no hash |
| 2026-11-17 | In a merge keeping the pair's other sequence the dialog swaps its columns; detail index 0 stays "kept" and Different photos are re-keyed to the kept one's version | Keep the pair's order | The merge reads ThisPc and TakeHere as the kept side |