From 3601e0a47f66851663eb2690dc8dd02f999d015f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 23:01:41 +0000 Subject: [PATCH] fix(sync): proxy cache staleness follows the server's frame version only Frames the server has neither proxy nor thumbnail for no longer re-queue the proxy download at every comparison. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.Data/Sync/SyncModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Titano.Data/Sync/SyncModel.cs b/src/Titano.Data/Sync/SyncModel.cs index db73243b..7d2e730f 100644 --- a/src/Titano.Data/Sync/SyncModel.cs +++ b/src/Titano.Data/Sync/SyncModel.cs @@ -100,8 +100,11 @@ public sealed record SyncLink public bool ServerHasProxies => (RemoteStatus & SequenceStatus.ProxiesBuilt) != 0; - /// The proxy cache misses frames the server has, or predates its last frame change. - public bool ProxiesStale => ProxiesCached < FrameCount || ProxiesFramesVersion != RemoteFramesVersion; + /// + /// The proxy cache was never completed or predates the server's last frame change (frames the server has no + /// proxy or thumbnail for stay missing until their frames change, so they are not fetched again and again). + /// + public bool ProxiesStale => ProxiesFramesVersion != RemoteFramesVersion; } /// One row of the sync table: the local sequence, the server sequence, or both, and where they stand.