Skip to content

Metrics polling never stops when no panes exist #17

@fernandomenuk

Description

@fernandomenuk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguxUser experience issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions