diff --git a/packages/ai-workspace-common/src/components/home-redirect/index.tsx b/packages/ai-workspace-common/src/components/home-redirect/index.tsx
index 02de3012dd..bb37a21185 100644
--- a/packages/ai-workspace-common/src/components/home-redirect/index.tsx
+++ b/packages/ai-workspace-common/src/components/home-redirect/index.tsx
@@ -15,6 +15,14 @@ export const HomeRedirect = ({ defaultNode }: { defaultNode: ReactNode }) => {
if (isLogin) {
return ;
}
+
+ // In local development, redirect to /login directly to avoid infinite loading
+ const isDevelopment = process.env.NODE_ENV === 'development';
+
+ if (isDevelopment) {
+ return ;
+ }
+
// Return defaultNode to allow server-side handling (e.g., Cloudflare Worker)
// BackendRedirect will handle the redirect and avoid infinite loop
return defaultNode;