Skip to content

fix(tui): add fleet refresh spinner and tracing spans#4376

Merged
bug-ops merged 9 commits into
mainfrom
4369-fleet-tui-spinner-spans
May 18, 2026
Merged

fix(tui): add fleet refresh spinner and tracing spans#4376
bug-ops merged 9 commits into
mainfrom
4369-fleet-tui-spinner-spans

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 18, 2026

Summary

  • fleet_poll_task in src/tui_bridge.rs now sends AgentEvent::Status("Refreshing fleet...") before the list_agent_sessions DB call and clears the status on both success and error paths, fixing the silent background poll that violated the TUI spinner rule.
  • start_session and end_session in src/fleet_session.rs gain #[tracing::instrument] attributes, making fleet session lifecycle events visible in local Chrome traces and Jaeger.

Test plan

  • All 9879 unit tests pass (cargo nextest run --workspace --lib --bins)
  • cargo clippy --workspace -- -D warnings — 0 warnings
  • Live TUI session: fleet panel header shows "Refreshing fleet..." spinner during each poll cycle and clears immediately after
  • Local Chrome trace (backend = "local"): fleet.session.start and fleet.session.end spans visible in trace JSON

Closes #4369
Closes #4366

bug-ops added 8 commits May 18, 2026 16:56
- Bump workspace version 0.21.1 → 0.21.2
- Consolidate duplicate CHANGELOG.md section headers in [0.21.2]
- Update splash snapshot for new version string
- Update test badge count (9824)
- Update specs to reflect changes since v0.21.1
fleet_poll_task now sends AgentEvent::Status("Refreshing fleet...")
before the DB call and clears it on both success and error paths,
satisfying the TUI rule that all background operations must show
a visible spinner.

start_session and end_session in fleet_session.rs gain
#[tracing::instrument] attributes, making fleet lifecycle events
visible in local Chrome traces and Jaeger.

Closes #4369
Closes #4366
@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate dependencies Dependency updates labels May 18, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 18, 2026 15:46
@github-actions github-actions Bot added bug Something isn't working size/XL Extra large PR (500+ lines) labels May 18, 2026
@github-actions github-actions Bot added size/S Small PR (11-50 lines) and removed documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate dependencies Dependency updates size/XL Extra large PR (500+ lines) labels May 18, 2026
@bug-ops bug-ops merged commit ec10b14 into main May 18, 2026
32 checks passed
@bug-ops bug-ops deleted the 4369-fleet-tui-spinner-spans branch May 18, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tui: fleet_poll_task missing spinner/status indicator during DB refresh fleet_session: start_session/end_session missing tracing spans

1 participant