From 05286ce00b0713b50cb34f83d06eaf29ef6ea44a Mon Sep 17 00:00:00 2001 From: "buf0-bot[bot]" <252831055+buf0-bot[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 12:47:54 -0700 Subject: [PATCH] fix: pr-bug-scan validated finding from #2316 (#2335) Co-authored-by: orca-bug-scan-bot --- src/renderer/src/components/right-sidebar/PortsPanel.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/right-sidebar/PortsPanel.tsx b/src/renderer/src/components/right-sidebar/PortsPanel.tsx index 6ed2e72c2d1..967e5ba7dfa 100644 --- a/src/renderer/src/components/right-sidebar/PortsPanel.tsx +++ b/src/renderer/src/components/right-sidebar/PortsPanel.tsx @@ -275,7 +275,11 @@ function LocalWorkspacePortsPanel({ isVisible }: { isVisible: boolean }): React. } async function run(): Promise { - 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) }