Summary
Include the file glob filter alongside the search pattern in Grep log entries.
Current Behavior
[[2026-02-01 18:55:24]] {Grep: useTranslation }
Pattern is logged but not which files were searched.
Desired Behavior
[[2026-02-01 18:55:24]] {Grep: useTranslation | "*.tsx" }
Use pipe separator to visually demarcate pattern from glob filter.
Implementation
elif tool_info.name == "Grep":
pattern = tool_input.get("pattern", "")
glob_filter = tool_input.get("glob", "")
if glob_filter:
return f'{pattern} | "{glob_filter}"'
return pattern
Notes
output_mode not needed (doesn't affect what was searched)
- Pipe chosen over ellipsis for compactness
- Only show glob when present (many Grep calls don't use it)
Analysis
See 2026-02-01__19-10-22__session-logger-enhancements-analysis.md for detailed analysis.
Summary
Include the file glob filter alongside the search pattern in Grep log entries.
Current Behavior
Pattern is logged but not which files were searched.
Desired Behavior
Use pipe separator to visually demarcate pattern from glob filter.
Implementation
Notes
output_modenot needed (doesn't affect what was searched)Analysis
See
2026-02-01__19-10-22__session-logger-enhancements-analysis.mdfor detailed analysis.