Skip to content

Comments

feat: per-tool inline filter stats in CLI chat#473

Merged
bug-ops merged 2 commits intomainfrom
feat/m27/tool-filter-stats
Feb 17, 2026
Merged

feat: per-tool inline filter stats in CLI chat#473
bug-ops merged 2 commits intomainfrom
feat/m27/tool-filter-stats

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • Add raw/filtered line counts to FilterResult and FilterStats
  • Display inline filter savings after tool output in CLI: [shell] cargo test (342 lines -> 28 lines, 91.8% filtered)
  • Update CHANGELOG.md, README.md, and mdBook docs for M26/M26.1 features

Changes

Core (4 files):

  • filter/mod.rsraw_lines/filtered_lines on FilterResult, count_lines() helper
  • executor.rs — line counts on FilterStats, format_inline() method
  • shell.rs — propagate line counts, move ToolEvent::Completed after filtering
  • streaming.rs — display inline stats when filtering reduced output

Docs (6 files):

Test plan

  • 1556 tests pass, 4 new tests added
  • Clippy clean
  • Fmt clean
  • Manual: run CLI, execute shell commands, verify inline stats appear

Closes #449

Add raw/filtered line counts to FilterResult and FilterStats.
Display inline savings after tool output in CLI:
[shell] cargo test (342 lines -> 28 lines, 91.8% filtered)

Update CHANGELOG, README, and mdBook docs for M26/M26.1 features.

Closes #449
@github-actions github-actions bot added enhancement New feature or request documentation Improvements or additions to documentation rust core size/L and removed enhancement New feature or request labels Feb 17, 2026
@github-actions github-actions bot added the enhancement New feature or request label Feb 17, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 17, 2026 16:28
@bug-ops bug-ops merged commit 0b2debe into main Feb 17, 2026
20 checks passed
@bug-ops bug-ops deleted the feat/m27/tool-filter-stats branch February 17, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation enhancement New feature or request rust size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: display per-tool output filtering stats in chat and TUI

1 participant