Commit Graph
4 Commits
Author SHA1 Message Date
Claude f4c529c853 test(sync): wait for the comparison an event starts, not for its first write
ATimedOutComparisonIsRecordedAndLiveUpdatesGoOn polled until the server's
settings reached the local copy and then asserted that the link's error was
cleared. The engine writes the local copy first and stores the link (error
cleared, versions agreed) afterwards, so a poll landing between the two writes
saw the old error: 1 failure in 60 runs idle, 11 in 60 under CPU load.

The agent tests now wait for SyncService.Changed, which the engine raises once
a comparison stored every link and state (the moment the Server screen reloads),
and assert on that settled state. The same fix applies to the proxy refresh
test (the cache is complete before the link and the job: it waits for the job,
whose row showed Transferring until then) and the retry test (the agent stores
the snapshot before it clears the last error and raises Changed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-06 21:04:55 +00:00
Claude 2d40a613b9 fix(sync): resolve conflicts against the versions shown, isolate failures, renders on request
- Conflicts are settled against the versions the user was shown; a later change on
  either side refuses the choice and compares again. Title, tags, rating and notes
  changed differently on both sides are a conflict too (no silent tag union).
- Links are written under the engine's gate and forgotten only after a 404; linked
  local copies are read by id; unlinked copies with the same originals are linked
  by content.
- A failure on one sequence is recorded on its link; the others are still compared.
- Downloads hash unverified local copies first and restore originals missing here.
- Background proxy downloads give way to the user's requests; "Keep proxies offline"
  refreshes the caches of sequences opened with proxies, checks free space and backs
  off after a failure.
- Renders travel on request: Send exports (chunked, hash-verified upload keeping the
  render id; new POST /sequences/{id}/renders endpoints) and Get exports.
- Server screen: stable row buttons, mockup column grid, Tab through rows, conflict
  rows first on the card colour, localised conflict detail, Save both confirmation,
  Pause metered uploads, culture switch, Library one-word sync glyphs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-03 10:26:56 +00:00
Claude c02d1867d0 test(sync): upload, download, resume, proxies and live events against the real server
The first original of an upload now creates the server sequence through its
session key (the archive ingest files API-created empty sequences nowhere), and
settings sent after an upload are retried when the server's own analysis edits
the new sequence meanwhile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 22:44:20 +00:00
Claude 7f542646b4 test(sync): state, settings conflicts, transfers and agent against an in-memory server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 22:29:49 +00:00