mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
1de9052758
This PR fixes an inconsistency in the `GrepTool` where the system grep strategy was case-sensitive, while the `git grep` and JavaScript fallback strategies were case-insensitive. ## Changes - Added the `-i` flag to the `grepArgs` array in the system grep strategy within `packages/core/src/tools/grep.ts`. - Added a unit test in `packages/core/src/tools/grep.test.ts` to verify that the `-i` flag is correctly passed to the system `grep` command. ## Impact All search strategies in `GrepTool` now behave consistently with regard to case-sensitivity (defaulting to case-insensitive). ## Verification - Ran `npm test -w @google/gemini-cli-core -- src/tools/grep.test.ts`. - Verified that the `-i` flag is correctly passed to the `grep` command.