Commit Graph

24 Commits

Author SHA1 Message Date
Sandy Tao d76cedb68f
Implement hashing based loop detection (#4831) 2025-07-25 19:53:19 +00:00
christine betts 1b8ba5ca6b
[ide-mode] Create an IDE manager class to handle connecting to and exposing methods from the IDE server (#4797) 2025-07-25 17:46:55 +00:00
Sandy Tao 0ef9c0b792
Log prompt id when a loop is detected (#4765)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
2025-07-24 05:37:28 +00:00
Josh Soref dc2ac144b7
Various spelling improvements (#3497)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Sandy Tao <sandytao520@icloud.com>
2025-07-21 21:54:44 +00:00
christine betts 1969d805f2
[ide-mode] Use active files and selected text in user prompt (#4614) 2025-07-21 20:52:02 +00:00
christine betts 9bdcdf97d8
[ide-mode] Keep track of recently-opened files and send them to the CLI (#4463) 2025-07-21 17:54:37 +00:00
Sandy Tao 9dadf22958
Implement loop check with LLM (#4337)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
2025-07-18 16:33:46 +00:00
Sandy Tao ac8e98511e
Fix resetting loop counts on every other event (#4348) 2025-07-17 05:32:48 +00:00
Shreya Keshive 69a8ae6a89
Minor UX updates for IDE mode (#4311) 2025-07-16 21:33:56 +00:00
Shreya Keshive b09bc66560
Adds the user's active file in the IDE to the footer (#4154) 2025-07-15 14:19:59 +00:00
Sandy Tao 886faa2990
Log the 2 types of loop detection (#4193) 2025-07-15 04:44:07 +00:00
Sandy Tao 734da8b9d2
Introduce loop detection service that breaks simple loop (#3919)
Co-authored-by: Scott Densmore <scottdensmore@mac.com>
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
2025-07-15 03:25:16 +00:00
Abhi 9dc812dd4b
fix(checkpoint): Prevent silent failure and enable for non-Git projects (#4144) 2025-07-14 17:23:51 +00:00
zfflxx 97d9386e3f
@file don't respect config respectGitIgnore=false (#3382) (#3387)
Co-authored-by: Ryan Fang <ryan.fang@gllue.com>
2025-07-07 05:48:39 +00:00
Louis Jimenez 383212034c
Provide a .gitconfig for shadow repos (#1294) 2025-06-22 00:13:03 -04:00
Louis Jimenez ea63a8401e
Move the shell history our of the project .gemini to the home dir (#1195) 2025-06-19 23:53:24 -04:00
Louis Jimenez 443465a805
Clear out untracked files when restoring a checkpoint (#1139) 2025-06-17 22:01:42 -04:00
Louis Jimenez dd679a6cdb
Move the shadow git repository to the user's home dir (#1013) 2025-06-16 06:30:02 +00:00
Anas H. Sulaiman 4873fce791
centralize file filtering in `FileDiscoveryService` (#1039) 2025-06-14 14:25:34 +00:00
Tommaso Sciortino 28e656f882
Improve some tools to support abortSignal (#997) 2025-06-12 19:46:00 -07:00
DeWitt Clinton f2ab6d08c4
Improve the performance of filename completion over large repositories. (#938) 2025-06-12 07:09:38 -07:00
Louis Jimenez e0f4f428fc
Restore Checkpoint Feature (#934) 2025-06-11 15:33:09 -04:00
N. Taylor Mullen 72fa01f62d
feat(git): Refactor gitignore handling to use `ignore` library instead of `minimatch` (#864) 2025-06-08 18:32:19 -07:00
Keith Ballinger c313762ba0
Ignore folders files (#651)
# Add .gitignore-Aware File Filtering to gemini-cli

This pull request introduces .gitignore-based file filtering to the gemini-cli, ensuring that git-ignored files are automatically excluded from file-related operations and suggestions throughout the CLI. The update enhances usability, reduces noise from build artifacts and dependencies, and provides new configuration options for fine-tuning file discovery.

Key Improvements
.gitignore File Filtering

All @ (at) commands, file completions, and core discovery tools now honor .gitignore patterns by default.
Git-ignored files (such as node_modules/, dist/, .env, and .git) are excluded from results unless explicitly overridden.
The behavior can be customized via a new fileFiltering section in settings.json, including options for:
Turning .gitignore respect on/off.
Adding custom ignore patterns.
Allowing or excluding build artifacts.
Configuration & Documentation Updates

settings.json schema extended with fileFiltering options.
Documentation updated to explain new filtering controls and usage patterns.
Testing

New and updated integration/unit tests for file filtering logic, configuration merging, and edge cases.
Test coverage ensures .gitignore filtering works as intended across different workflows.
Internal Refactoring

Core file discovery logic refactored for maintainability and extensibility.
Underlying tools (ls, glob, read-many-files) now support git-aware filtering out of the box.


Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
2025-06-04 04:40:46 +00:00