Severity: Minor
Description
startMetricsPolling() is called on every layout refresh and sets up a 2-second interval that calls get_process_metrics. When no panes exist (no focused ID), it silently catches and swallows errors every 2 seconds, wasting cycles and potentially logging noise in the backend.
Location
crates/wmux-app/frontend/layout.js:60-76
Expected Behavior
Stop the metrics interval when there are no panes. Only start polling when at least one pane exists and a surface ID is available.
Severity: Minor
Description
startMetricsPolling()is called on every layout refresh and sets up a 2-second interval that callsget_process_metrics. When no panes exist (no focused ID), it silently catches and swallows errors every 2 seconds, wasting cycles and potentially logging noise in the backend.Location
crates/wmux-app/frontend/layout.js:60-76Expected Behavior
Stop the metrics interval when there are no panes. Only start polling when at least one pane exists and a surface ID is available.