refactor: optimize system health monitoring and UI interactions

- Removed unnecessary delay in chat redirection for immediate user feedback.
- Enhanced TitleBar component with a system health indicator, displaying RAM and CPU usage.
- Implemented optimistic UI updates for model downloads and Ollama installation, improving responsiveness.
- Introduced background health monitoring to prevent resource overload during operations.
- Added cleanup logic for child processes to ensure proper resource management during application shutdown.
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-28 15:42:40 -03:00
1 parent c7da6cb8a8
commit bd1e3ca2e6
7 files changed
+695 -89

No files matched your search

+4 -6
View File
@@ -23,12 +23,10 @@ export default function Home() {
localStorage.setItem("ollahub_setup_complete", "true");
}
// Redirecionar para chat após um breve delay para mostrar feedback
const timer = setTimeout(() => {
startTransition(() => {
router.push("/chat");
});
}, 500);
// Redirecionar para chat imediatamente (startTransition já garante não-bloqueio)
startTransition(() => {
router.push("/chat");
});
return () => clearTimeout(timer);
}