diff --git a/src/App.tsx b/src/App.tsx index eca4852..0660b00 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -18,19 +18,7 @@ import { useAuth } from './store/auth'; import { AgentAPI } from './api'; function HomeRedirect() { - const navigate = useNavigate(); - useEffect(() => { - AgentAPI.list().then(list => { - if (list.length > 0) { - navigate(`/agents/${list[0].id}/chat`, { replace: true }); - } else { - navigate('/agents', { replace: true }); - } - }).catch(() => { - navigate('/agents', { replace: true }); - }); - }, [navigate]); - return