diff --git a/frontend/src/components/SyncStatus.tsx b/frontend/src/components/SyncStatus.tsx index 2e5c368..0175365 100644 --- a/frontend/src/components/SyncStatus.tsx +++ b/frontend/src/components/SyncStatus.tsx @@ -20,7 +20,12 @@ export default function SyncStatus({ const { data } = useQuery({ queryKey: ["my-status"], queryFn: api.myStatus, + // Track the scheduler near-real-time: poll even when the tab is backgrounded, and + // refresh immediately on tab focus (the global default disables focus refetch), so the + // "N without full history" count keeps ticking down without a manual reload. refetchInterval: 30_000, + refetchIntervalInBackground: true, + refetchOnWindowFocus: true, staleTime: 25_000, });