Skip to content

tui: fleet_poll_task missing spinner/status indicator during DB refresh #4369

@bug-ops

Description

@bug-ops

Description

fleet_poll_task in src/tui_bridge.rs silently polls the database every N seconds and sends FleetSnapshot to the TUI widget. No AgentEvent::Status is sent before or during the DB query, violating the TUI rule: 'ANY background or implicit operation must be accompanied by a visible system status indicator with a spinner.'

Actual Behavior

The fleet panel updates silently. The user sees the table refresh without any status message indicating that a background DB read is in progress.

Expected Behavior

Send AgentEvent::Status("Refreshing fleet...".into()) before list_agent_sessions and clear it after (or wire a dedicated fleet-refresh indicator in the fleet panel header).

Environment

  • HEAD: 9d76476
  • File: src/tui_bridge.rs:653-692

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexitybugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions