Skip to content

The open-source app everyone uses to manage agents at work

Refresh bootstrap gate while setup is pending

Dottac672b71f7fe5
diff --git a/ui/src/App.tsx b/ui/src/App.tsx
index ee6db712b6..8828ca869c 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";