Commit Graph

46 Commits

Author SHA1 Message Date
Tommaso Sciortino
77cd06d793 Fix shell argument parsing in windows (#7160) 2025-08-27 19:14:22 +00:00
Pascal Birchler
a97a6cc71b Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
Pascal Birchler
42392f6308 chore: consistently import node modules with prefix (#3013)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
2025-08-25 20:11:27 +00:00
Sandy Tao
acbe1f1a45 fix(core): Skip loop check for dividers (#6893) 2025-08-23 00:08:16 +00:00
Arya Gummadi
24fbf15de5 fix(checkpointing): improve error handling and messaging for Git issues (#6801) 2025-08-22 15:29:52 +00:00
Yuki Okita
fbbf39b059 Refac: Centralize storage file management (#4078)
Co-authored-by: Taylor Mullen <ntaylormullen@google.com>
2025-08-20 01:55:47 +00:00
Gal Zahavi
40265977fa feat(core): refactor shell execution to use node-pty (#6491)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
2025-08-19 23:03:51 +00:00
bl-ue
76d89bb555 feat(sessions): Introduce core ChatRecordingService for automatic conversation saving (#5221) 2025-08-19 00:39:57 +00:00
Conrad Irwin
f0af8c2e2d Read and write files through Zed (#6169)
Co-authored-by: Agus Zubiaga <agus@zed.dev>
2025-08-18 22:29:45 +00:00
Richie Foreman
ddc9755b96 chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
2025-08-17 16:43:21 +00:00
Abhi
b6344714fc feat(cli): Introduce arguments for shell execution in custom commands (#5966) 2025-08-17 04:02:54 +00:00
Gal Zahavi
1accf61de8 Revert #6088 (#6328) 2025-08-15 17:27:33 +00:00
Gal Zahavi
bb1da420ff feat(core): refactor shell execution to use node-pty (#6088) 2025-08-14 20:40:12 +00:00
Sandy Tao
e3603fd39e skip loop check if it is currently inside a loop (#6022) 2025-08-11 23:45:31 +00:00
Wanlin Du
366ea081fe chore: migrate from responseSchema to use responseJsonSchema. (#4814) 2025-08-11 23:04:58 +00:00
Sandy Tao
5c37751354 feat(quality): Reset when seeing a new type of Markdown element (#5820) 2025-08-08 00:21:42 +00:00
Richie Foreman
421d6e14b1 fix(core): Improve errors in situations where the command spawn does … (#5723) 2025-08-06 23:31:42 +00:00
Tommaso Sciortino
7f50d7dea9 Fix bug executing commands in windows whose flags contain spaces (#5317) 2025-08-01 00:27:07 +00:00
Sandy Tao
c9e421a7b7 Skip and reset loop checking around code blocks (#5144) 2025-07-30 04:05:03 +00:00
Abhi
62b433e5a7 refactor(core): Centralize shell logic into ShellExecutionService (#4823) 2025-07-26 01:56:49 +00:00
Tommaso Sciortino
a3bbcf81df Run presubmit tests in windows as well as linux. (#4672)
Co-authored-by: matt korwel <matt.korwel@gmail.com>
2025-07-25 15:57:30 -07:00
Tommaso Sciortino
24927bf37a Make fileDiscoveryService.test.ts win compatible (#4892) 2025-07-25 21:30:15 +00:00
Sandy Tao
836a00940b Implement hashing based loop detection (#4831) 2025-07-25 19:53:19 +00:00
christine betts
36ba832491 [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
6f0fa1baab 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
03f7b220d3 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
8c74054f3f [ide-mode] Use active files and selected text in user prompt (#4614) 2025-07-21 20:52:02 +00:00
christine betts
fa5b7638ad [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
ca1906dc96 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
5eefb6e756 Fix resetting loop counts on every other event (#4348) 2025-07-17 05:32:48 +00:00
Shreya Keshive
70e5f1f3fb Minor UX updates for IDE mode (#4311) 2025-07-16 21:33:56 +00:00
Shreya Keshive
e1c799b853 Adds the user's active file in the IDE to the footer (#4154) 2025-07-15 14:19:59 +00:00
Sandy Tao
9c63f274cf Log the 2 types of loop detection (#4193) 2025-07-15 04:44:07 +00:00
Sandy Tao
8a66fcaccd 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
7d69a4ba77 fix(checkpoint): Prevent silent failure and enable for non-Git projects (#4144) 2025-07-14 17:23:51 +00:00
zfflxx
c60a5d603c @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
45b8c49709 Provide a .gitconfig for shadow repos (#1294) 2025-06-22 00:13:03 -04:00
Louis Jimenez
23fe8abb74 Move the shell history our of the project .gemini to the home dir (#1195) 2025-06-19 23:53:24 -04:00
Louis Jimenez
b83cc24e07 Clear out untracked files when restoring a checkpoint (#1139) 2025-06-17 22:01:42 -04:00
Louis Jimenez
6607d47c2c Move the shadow git repository to the user's home dir (#1013) 2025-06-16 06:30:02 +00:00
Anas H. Sulaiman
194e091d4a centralize file filtering in FileDiscoveryService (#1039) 2025-06-14 14:25:34 +00:00
Tommaso Sciortino
920dd6990f Improve some tools to support abortSignal (#997) 2025-06-12 19:46:00 -07:00
DeWitt Clinton
abf623a1a9 Improve the performance of filename completion over large repositories. (#938) 2025-06-12 07:09:38 -07:00
Louis Jimenez
b19571d9ab Restore Checkpoint Feature (#934) 2025-06-11 15:33:09 -04:00
N. Taylor Mullen
275c295dc3 feat(git): Refactor gitignore handling to use ignore library instead of minimatch (#864) 2025-06-08 18:32:19 -07:00
Keith Ballinger
906f716d3e 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