Skip to content

feat: display filter metrics in TUI dashboard#454

Merged
bug-ops merged 1 commit intomainfrom
feat/m27/tui-filter-metrics
Feb 17, 2026
Merged

feat: display filter metrics in TUI dashboard#454
bug-ops merged 1 commit intomainfrom
feat/m27/tui-filter-metrics

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Feb 17, 2026

Summary

  • Add filter confidence distribution, command hit rate, and token savings to TUI Resources panel
  • Extend MetricsSnapshot with 5 new fields for filter tracking
  • Forward FilterStats confidence from shell executor through metrics pipeline
  • Render 3-line filter summary: hit rate, savings %, confidence breakdown

Changes

  • zeph-core/metrics.rs — 5 new MetricsSnapshot fields + tests
  • zeph-core/agent/streaming.rs — push filter stats to metrics
  • zeph-tools/executor.rs — add confidence to FilterStats
  • zeph-tools/filter/mod.rs — make worse_confidence public
  • zeph-tools/shell.rs — accumulate worst confidence across bash blocks
  • zeph-tui/widgets/resources.rs — render filter metrics panel

Test plan

  • 1556 tests pass, 0 failures
  • Clippy clean
  • Fmt clean
  • Manual: run cargo run -- --tui, execute shell commands, verify filter stats update

Closes #448

Expose filter confidence distribution, command hit rate, and token
savings in the TUI Resources panel. Add 5 fields to MetricsSnapshot,
forward FilterStats confidence from shell executor, and render
3-line filter summary in resources widget.

Closes #448
@github-actions github-actions bot added enhancement New feature or request size/M Medium PR (51-200 lines) rust Rust code changes core zeph-core crate and removed enhancement New feature or request labels Feb 17, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 17, 2026 15:54
@bug-ops bug-ops disabled auto-merge February 17, 2026 16:02
@bug-ops bug-ops merged commit d13f5f8 into main Feb 17, 2026
18 checks passed
@bug-ops bug-ops deleted the feat/m27/tui-filter-metrics branch February 17, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: display filter metrics in TUI dashboard

1 participant