fix: pr-bug-scan validated finding from #2316 (#2335)

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
buf0-bot[bot]
2026-05-19 12:47:54 -07:00
committed by GitHub
co-authored by orca-bug-scan-bot
parent 66bbe1c443
commit 05286ce00b
@@ -275,7 +275,11 @@ function LocalWorkspacePortsPanel({ isVisible }: { isVisible: boolean }): React.
}
async function run(): Promise<void> {
await refresh()
try {
await refresh()
} catch {
// Why: a transient RPC failure must not halt the poll loop.
}
if (!cancelled) {
timeout = setTimeout(() => void run(), LOCAL_PORT_SCAN_INTERVAL_MS)
}