fix: address pr-bug-scan validated finding from #7050

Added open-only sessions re-poll (SESSION_LIST_POLL_MS) and clear sessionsError on popover close; blocks stale-session (C1) and stuck daemon-unreachable badge (C2).
This commit is contained in:
orca-bug-scan-bot
2026-07-30 10:41:28 -07:00
committed by Jinjing
parent ab665a3ce7
commit 053dba3b32
@@ -875,6 +875,12 @@ export function ResourceUsageStatusSegment({
}
}, [open, fetchSnapshot, refreshSessions])
useEffect(() => {
if (!open) {
clearSessionsError()
}
}, [open, clearSessionsError])
const repoDisplayNameById = useMemo(() => {
const map = new Map<string, string>()
for (const repo of repos) {