fix: keep running-session polling active

Keep the running-session poller active even when the local
processing set is empty so runs started from another tab or
client can still be discovered.
This commit is contained in:
Haileyesus
2026-06-16 16:52:12 +03:00
parent 9fb2d91b26
commit 39b0473e38

View File

@@ -121,16 +121,12 @@ function AppContentInner() {
}, [refreshRunningSessions]);
useEffect(() => {
if (processingSessions.size === 0) {
return;
}
const interval = window.setInterval(() => {
void refreshRunningSessions();
}, 5000);
return () => window.clearInterval(interval);
}, [processingSessions.size, refreshRunningSessions]);
}, [refreshRunningSessions]);
usePaletteOpsRegister({
openSettings,