Skip to content

Commit d270fee

Browse files
committed
docs: document compound command matching, update changelog with filter fixes
1 parent 61da0aa commit d270fee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Filter metrics not appearing in TUI Resources panel when using native tool_use providers (#480)
11+
- Output filter matchers not matching compound shell commands like `cd /path && cargo test 2>&1 | tail` (#481)
12+
- Duplicate `ToolEvent::Completed` emission in shell executor before filtering was applied (#480)
13+
914
### Added
1015
- Syntax-highlighted diff view for write/edit tool output in TUI (#451)
1116
- Diff rendering with green/red backgrounds for added/removed lines

docs/src/guide/tools.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ Stale overflow files older than 24 hours are cleaned up automatically on startup
115115

116116
Before tool output reaches the LLM context, it passes through a command-aware filter pipeline that strips noise and reduces token consumption. Filters are matched by command pattern and composed in sequence.
117117

118+
### Compound Command Matching
119+
120+
LLMs often generate compound shell expressions like `cd /path && cargo test 2>&1 | tail -80`. Filter matchers automatically extract the last command segment after `&&` or `;` separators and strip trailing pipes and redirections before matching. This means `cd /Users/me/project && cargo clippy --workspace -- -D warnings 2>&1` correctly matches the `ClippyFilter` — no special configuration needed.
121+
118122
### Built-in Filters
119123

120124
| Filter | Matches | What it removes |

0 commit comments

Comments
 (0)