From d92b1db6d6a8915d776367aa0f4f932b3e0e0876 Mon Sep 17 00:00:00 2001 From: Alde Rojas Date: Sat, 28 Jun 2025 23:45:05 -0500 Subject: [PATCH] fix(tool/grep): always show file names with rg --- 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 f20d61ef1..1d2d008cf 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) }