Files
gemini-cli/packages/core
gemini-cli[bot] 1de9052758 # 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`.
- Verified that the `-i` flag is correctly passed to the `grep` command.
2026-04-29 22:47:00 +00:00
..