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:
1 parent
c7da6cb8a8
commit
bd1e3ca2e6
7 files changed
+695
-89
No files matched your search
+4
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user