Change8

v0.40.0

Gemini CLI
15 features21 fixes8 improvementsclimcpthemestools

Summary

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

Gemini CLI Documentation

Gemini CLI v0.40.0 - What's New - Change8