Change8

v0.42.0-nightly.20260512.gc987b9939

Gemini CLI
3 features13 fixes5 improvementscliextensionstools

Summary

This release introduces an adaptive token calculator for more accurate content size estimation and enables the NumericalRouter when using dynamic model configurations. Several critical bugs were fixed, including preventing infinite thought loops in ACP mode and resolving issues with session resumption and quota handling.

New Features

  • Introduced an adaptive token calculator to more accurately calculate content sizes.
  • Enabled NumericalRouter when using dynamic model configurations.
  • Allowed pressing Enter to select a session while in search mode in /resume.

Bug Fixes

  • Fixed an issue where the snapshotter model configuration was incorrect.
  • Enabled installing extensions from SSH repositories.
  • Prevented duplicate rendering of the SessionStart systemMessage in the CLI.
  • Fixed an infinite thought loop in ACP mode by disabling nextSpeakerCheck.
  • Resolved parsing errors by using the static tool name in the confirmation prompt.
  • Prevented 400 Bad Request errors by refactoring tool turn handling for conversation history in NumericalClassifierStrategy.
  • Handled malformed projects.json files within the ProjectRegistry.
  • Prevented an EISDIR crash when customIgnoreFilePaths contained directories.
  • Fixed an issue where .pak and .rpa game archive formats were not being ignored by default.
  • Enabled adk non-interactive sessions.
  • Restored resume functionality for legacy sessions.
  • Fixed behavior to respect explicit model selection after Flash quota exhaustion.
  • Fixed telemetry injection to use quota_project_id instead of falling back to the default OAuth client.

Improvements

  • Adjusted gutter width in the input prompt width calculation for better UI alignment.
  • Excluded extension context from the skill extraction agent.
  • Reverted a specific commit (6b9b778d821728427eea07b1b97ba07378137d0b).
  • Fixed an issue related to running the current file in TypeScript within VS Code.
  • Introduced SubagentState enum for clearer progress tracking in the core.

Gemini CLI Documentation

Gemini CLI v0.42.0-nightly.20260512.gc987b9939 - What's New - Change8