fix(tool/grep): always show file names with rg (#271)

Aldehir Rojas created

Change summary

internal/llm/tools/grep.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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)
 	}