mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-27 23:05:30 +08:00
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:
@@ -121,16 +121,12 @@ function AppContentInner() {
|
|||||||
}, [refreshRunningSessions]);
|
}, [refreshRunningSessions]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (processingSessions.size === 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const interval = window.setInterval(() => {
|
const interval = window.setInterval(() => {
|
||||||
void refreshRunningSessions();
|
void refreshRunningSessions();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
return () => window.clearInterval(interval);
|
return () => window.clearInterval(interval);
|
||||||
}, [processingSessions.size, refreshRunningSessions]);
|
}, [refreshRunningSessions]);
|
||||||
|
|
||||||
usePaletteOpsRegister({
|
usePaletteOpsRegister({
|
||||||
openSettings,
|
openSettings,
|
||||||
|
|||||||
Reference in New Issue
Block a user