Files
gemini-cli/packages
gemini-cli[bot] bfe8d74e6b # Fix: Inconsistent Case-Sensitivity in GrepTool
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`.
- All 33 tests passed, including the new regression test.
2026-04-29 22:31:24 +00:00
..