v0.40.0
Gemini CLISummary
This release introduces significant new capabilities, including bundled ripgrep binaries for offline support and streamlined local model setup via `gemini gemma`. Several critical bug fixes address issues with SSL streaming errors, environment variable honoring, and security concerns related to IDE stdio overriding.
New Features
- Bundled ripgrep binaries into SEA for improved offline support.
- Added support for GitHub colorblind themes.
- Integrated skill-creator into the skill extraction agent.
- Provided a default post-submit prompt for the skill command.
- Added tools to list and read MCP resources.
- Enabled resolution of custom seatbelt profiles from $HOME/.gemini first.
- Added .mdx support to the get-internal-docs tool.
- Introduced an experimental task tracker feature in documentation.
- Added streamlined `gemini gemma` local model setup.
- Added settings for Vertex AI request routing.
- Allowed for session persistence.
- Allowed dots in the GEMINI_API_KEY.
- Added a flag for enabling telemetry traces specifically.
- Enabled detection of new files in @ recommendations with watcher-based updates.
- Added `/new` as an alias for `/clear` and refined the command description.
Bug Fixes
- Fixed SSL errors during streaming by retrying additional OpenSSL 3.x errors.
- Prevented YOLO mode from being downgraded.
- Fixed core logic to honor GOOGLE_GEMINI_BASE_URL and GOOGLE_VERTEX_BASE_URL environment variables.
- Cleaned up slash command IDE listeners.
- Fixed bundling issues for extensions examples.
- Fixed CLI behavior to reset plan session state upon using `/clear`.
- Allowed explicit write permissions to override governance file protections in sandboxes.
- Fixed ShellExecutionConfig spread and added ProjectRegistry save backoff.
- Fixed an issue where Cloud Shell users could not use the PRO_MODEL_NO_ACCESS experiment.
- Fixed slow render latency rounding to avoid opentelemetry float warnings.
- Fixed a security issue by disallowing overriding IDE stdio via workspace .env.
- Fixed core logic to resolve nested plan directory duplication and relative path policies.
- Fixed CLI behavior to use newline in shell command wrapping, preventing breakage of heredocs.
- Fixed CLI behavior to ensure theme dialog labels are rendered correctly for all themes.
- Fixed core logic to disable detached mode in Bun, preventing immediate SIGHUP of child processes.
- Fixed CLI behavior to start auto memory in ACP sessions.
- Fixed core logic by removing duplicate initialize calls on refreshed agents.
- Fixed core logic to handle line endings correctly during ignore file parsing.
- Fixed a command injection vulnerability in the shell.
- Fixed UI by removing the background color for the input field.
- Fixed core logic by using the dynamic CLI version for the IDE client instead of a hardcoded value.
Improvements
- Required recurrence evidence before extracting skills.
- Updated evaluation tests for invoke_agent telemetry and project-scoped memory.
- Added typecheck coverage for evals, integration-tests, and memory-tests.
- Used OSC 777 for terminal notifications.
- Reduced blank lines in output.
- Reverted preview theme on dialog unmount.
- Replaced MemoryManagerAgent with prompt-driven memory editing across four tiers.
- Reduced memory usage and deferred connection in devtools.
Related Documentation
- https://github.com/google-gemini/gemini-cli/pull/25420
- https://github.com/google-gemini/gemini-cli/pull/25187
- https://github.com/google-gemini/gemini-cli/pull/25341
- https://github.com/google-gemini/gemini-cli/pull/25342
- https://github.com/google-gemini/gemini-cli/pull/25417
- https://github.com/google-gemini/gemini-cli/pull/25331
- https://github.com/google-gemini/gemini-cli/pull/25147
- https://github.com/google-gemini/gemini-cli/pull/24619
- https://github.com/google-gemini/gemini-cli/pull/15504
- https://github.com/google-gemini/gemini-cli/pull/25357
- https://github.com/google-gemini/gemini-cli/pull/24397
- https://github.com/google-gemini/gemini-cli/pull/25470
- https://github.com/google-gemini/gemini-cli/pull/25502
- https://github.com/google-gemini/gemini-cli/pull/25476
- https://github.com/google-gemini/gemini-cli/pull/25421
- https://github.com/google-gemini/gemini-cli/pull/25327
- https://github.com/google-gemini/gemini-cli/pull/25395
- https://github.com/google-gemini/gemini-cli/pull/25480
- https://github.com/google-gemini/gemini-cli/pull/25300
- https://github.com/google-gemini/gemini-cli/pull/25542
- https://github.com/google-gemini/gemini-cli/pull/25515
- https://github.com/google-gemini/gemini-cli/pull/25090
- https://github.com/google-gemini/gemini-cli/pull/24367
- https://github.com/google-gemini/gemini-cli/pull/25338
- https://github.com/google-gemini/gemini-cli/pull/25427
- https://github.com/google-gemini/gemini-cli/pull/25563
- https://github.com/google-gemini/gemini-cli/pull/22542
- https://github.com/google-gemini/gemini-cli/pull/25382
- https://github.com/google-gemini/gemini-cli/pull/25567
- https://github.com/google-gemini/gemini-cli/pull/25586
- https://github.com/google-gemini/gemini-cli/pull/25155
- https://github.com/google-gemini/gemini-cli/pull/25601
- https://github.com/google-gemini/gemini-cli/pull/25702
- https://github.com/google-gemini/gemini-cli/pull/25709
- https://github.com/google-gemini/gemini-cli/pull/24556
- https://github.com/google-gemini/gemini-cli/pull/25414
- https://github.com/google-gemini/gemini-cli/pull/25498
- https://github.com/google-gemini/gemini-cli/pull/25593
- https://github.com/google-gemini/gemini-cli/pull/25022
- https://github.com/google-gemini/gemini-cli/pull/25708
- https://github.com/google-gemini/gemini-cli/pull/25513
- https://github.com/google-gemini/gemini-cli/pull/25176
- https://github.com/google-gemini/gemini-cli/pull/25497
- https://github.com/google-gemini/gemini-cli/pull/25343
- https://github.com/google-gemini/gemini-cli/pull/25138
- https://github.com/google-gemini/gemini-cli/pull/25256
- https://github.com/google-gemini/gemini-cli/pull/25537
- https://github.com/google-gemini/gemini-cli/pull/24599
- https://github.com/google-gemini/gemini-cli/pull/22620
- https://github.com/google-gemini/gemini-cli/pull/17865
- https://github.com/google-gemini/gemini-cli/pull/25626
- https://github.com/google-gemini/gemini-cli/pull/25670
- https://github.com/google-gemini/gemini-cli/pull/25753
- https://github.com/google-gemini/gemini-cli/pull/25716
- https://github.com/google-gemini/gemini-cli/pull/25801
- https://github.com/google-gemini/gemini-cli/pull/24414
- https://github.com/google-gemini/gemini-cli/pull/23895
- https://github.com/google-gemini/gemini-cli/pull/24170
- https://github.com/google-gemini/gemini-cli/pull/25339