mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 00:03:45 +00:00
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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user