Change8

v0.22.0

Gemini CLI
11 features11 fixes10 improvementscliextensionsmcptools

Summary

This release introduces several new capabilities, including persistent "Always Allow" policies, support for multi-file image drag and drop, and the new `/init` command for the A2A server. Several critical bugs were fixed, such as correcting MCP tool error detection and improving authentication logic by prioritizing the GEMINI_API_KEY environment variable. Additionally, the codebase investigator now aligns its model usage with the main agent.

New Features

  • Enabled fallback to GEMINI_CLI_IDE_AUTH_TOKEN environment variable for authentication.
  • Introduced display of quota statistics for unused models in the /stats command.
  • Ensured the codebase investigator uses the preview model when the main agent does.
  • Added plumbing for late resolution of model configurations.
  • Added support for specifying `transcript_path` in hooks for the git-ai/Gemini extension.
  • Introduced the `/init` command for the A2A server.
  • Enabled support for multi-file drag and drop of images.
  • Introduced persistent "Always Allow" policies with granular shell & MCP support.
  • Polished cached token statistics and simplified stats display when quota information is present.
  • Added validation for the settings schema.
  • Enabled the codebase investigator by default in read-only policy.

Bug Fixes

  • Fixed a typo in a code comment.
  • Correctly detected MCP tool errors.
  • Updated the IDE extension to write the auth token in the environment variable.
  • Corrected license generation for workspace dependencies in the vscode-ide-companion.
  • Applied a temporary fix for subagent invocation until subagent delegation is merged to stable.
  • Fixed commandPrefix word boundary and compound command safety issues.
  • Fixed authentication logic to prioritize GEMINI_API_KEY environment variable and skip unnecessary key checks.
  • Used Zod for safety check result validation.
  • Fixed tool output fragmentation by encapsulating content in functionResponse.
  • Marked A2A requests as interactive.
  • Fixed settings merging so that settings using the new JSON format take priority over older formats.

Improvements

  • The codebase investigator now aligns its model usage with the main agent.
  • Session summary generation has been moved to startup time.
  • Reduced the search depth in the path corrector.
  • Increased the timeout for the labeler.
  • The frontend tool is now aware of more core files from the CLI.
  • Removed flex styling from the stats display.
  • IDE extension updates include switching to a 1-based index for characters and removing truncation text.
  • Added clarity to error messages.
  • Refactored settings merging to prioritize new JSON format settings.
  • Added hashed_extension_name to extension events for telemetry.

Gemini CLI Documentation