From c672b71f7fe523a2f70420b2eb598aceb25d569a Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 9 Mar 2026 16:13:15 -0500 Subject: [PATCH] Refresh bootstrap gate while setup is pending --- ui/src/App.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/src/App.tsx b/ui/src/App.tsx index ee6db712..8828ca86 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -56,6 +56,15 @@ function CloudAccessGate() { queryKey: queryKeys.health, queryFn: () => healthApi.get(), retry: false, + refetchInterval: (query) => { + const data = query.state.data as + | { deploymentMode?: "local_trusted" | "authenticated"; bootstrapStatus?: "ready" | "bootstrap_pending" } + | undefined; + return data?.deploymentMode === "authenticated" && data.bootstrapStatus === "bootstrap_pending" + ? 2000 + : false; + }, + refetchIntervalInBackground: true, }); const isAuthenticatedMode = healthQuery.data?.deploymentMode === "authenticated";