fix(syncguard): retire bypass on catch-up completion and close CSS rule

This commit is contained in:
Artem Ovchinnikov committed 2026-10-29 12:56:01 +03:00
1 parent 2d3a5e5ff8
commit 47828e934b
6 files changed
+100 -4

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ export function useSyncGuardFeature(host: LiveSyncCore, createOverlay: SyncGuard
// Commonlib enters continuous only after a successful pull-only catch-up.
guard.catchUpSucceeded();
guard.catchUpActivityChanged(false, readPendingCount(), Date.now());
} else if (guard.presentation.phase !== "idle" && terminalPhaseTimer === undefined) {
} else if ((guard.presentation.phase !== "idle" || guard.isCatchUpActive) && terminalPhaseTimer === undefined) {
// The one-shot PouchDB progress observer can report 'idle' before the
// enclosing finite CouchDB pull has finished releasing its resources.
// This counter is not used to identify the provider; CouchDB phase owns that.