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

+19
View File
@@ -5,6 +5,25 @@ commits follow Conventional Commits (release notes are generated from them by `C
## [Unreleased]
### Fixed
- Found copies, review of owner review 6 (#73):
- A server sequence forgotten on a server known only by its address is found again when it is back.
- A Linked or Integrated pair whose link is gone is asked about again.
- A 404 counts against a pair only on a server known by its id, and at most once every ten minutes.
- Detection compares the server's update times only with the server's own, so a server whose clock is behind still
has its new sequences looked for.
- A server copy not hashed yet is found by the size and capture time of hashed photos.
- The older-server gate no longer compares the same manifests again at every refresh.
- An Integrate that failed resumes only while nobody answered the pair otherwise; a cancel or a stale plan frees the
pair from its job.
- Automatic photos never create or retarget a sequence: the pair must still be Integrated with both sides present.
- A first upload whose first photo the server holds elsewhere files that photo into the new sequence too.
- Unlink keeps the two apart against what they hold now.
- Trash here names only true last copies.
- Drop… on Two versions trashes one version on both sides, after re-checking the other one.
- A merge that keeps the pair's other sequence shows it in the first column and applies the choices to it.
- Upload all reads every pair, not only the ones listed.
## [1.1.1] — 2026-11-16
The Windows hands-on test of 1.1.0 (#70): import, Reorganize, sharing the library, a client, the tray and Exit were