fix(sync): replace cached thumbnails once the server offers their proxies

With Keep proxies offline, the agent refreshed a proxy cache only when the
server's sequence had ProxiesBuilt. That flag waits for every frame, and a
missing or damaged frame never gets a proxy, so a HEIF sequence with one
such frame kept the 320-px thumbnails cached in place of proxies forever,
although the server offered the other frames' proxies sent by clients.

For such a cache the agent now reads the manifest once per change of the
server's update time and queues the background download when a frame is
offered as a proxy that the cache holds only a stand-in for (or nothing).
The test server's fake serves proxies sent to it, as the real one does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 19:14:13 +00:00
1 parent 678a827b42
commit 99a0f37973
4 files changed
+74 -3

No files matched your search

+1 -1
View File
@@ -710,7 +710,7 @@ public sealed class SyncService
private static DateTime Second(DateTime time) => new(time.Ticks - time.Ticks % TimeSpan.TicksPerSecond, DateTimeKind.Unspecified);
/// <summary>The same instant as databases keep it (to the microsecond).</summary>
private static bool SameMoment(DateTimeOffset a, DateTimeOffset b) => a.UtcTicks / 10 == b.UtcTicks / 10;
internal static bool SameMoment(DateTimeOffset a, DateTimeOffset b) => a.UtcTicks / 10 == b.UtcTicks / 10;
/// <summary>
/// Writes the server's payload into the local index, project and sidecar in one step (settings version + 1) under the