From f0571f5f5adef12eba9ddf6d07223a043d63dca8 Mon Sep 17 00:00:00 2001 From: Aldehir Rojas Date: Tue, 1 Jul 2025 04:52:19 -0500 Subject: [PATCH] fix(tool/grep): always show file names with rg (#271) --- internal/llm/tools/grep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/llm/tools/grep.go b/internal/llm/tools/grep.go index f20d61ef1ed44f50235f4ba19b8ea44ba7043eb6..1d2d008cf3d641f03cebcd97b73956d11e84a2a1 100644 --- a/internal/llm/tools/grep.go +++ b/internal/llm/tools/grep.go @@ -211,7 +211,7 @@ func searchWithRipgrep(pattern, path, include string) ([]grepMatch, error) { } // Use -n to show line numbers and include the matched line - args := []string{"-n", pattern} + args := []string{"-H", "-n", pattern} if include != "" { args = append(args, "--glob", include) }