diff --git a/apps/ui/src/routes/__root.tsx b/apps/ui/src/routes/__root.tsx index 34dbd00e..8e5cff9a 100644 --- a/apps/ui/src/routes/__root.tsx +++ b/apps/ui/src/routes/__root.tsx @@ -24,6 +24,7 @@ import { ThemeOption, themeOptions } from '@/config/theme-options'; import { SandboxRiskDialog } from '@/components/dialogs/sandbox-risk-dialog'; import { SandboxRejectionScreen } from '@/components/dialogs/sandbox-rejection-screen'; import { LoadingState } from '@/components/ui/loading-state'; +import { useProjectSettingsLoader } from '@/hooks/use-project-settings-loader'; const logger = createLogger('RootLayout'); @@ -47,6 +48,9 @@ function RootLayoutContent() { const isAuthenticated = useAuthStore((s) => s.isAuthenticated); const { openFileBrowser } = useFileBrowser(); + // Load project settings when switching projects + useProjectSettingsLoader(); + const isSetupRoute = location.pathname === '/setup'; const isLoginRoute = location.pathname === '/login';