Gemini CLI 0.70.0 adds Unicode‑preserving session previews and re2js pattern evaluation
The Gemini CLI 0.70.0 release adds Unicode‑preserving session previews that strip ANSI fragments, enables ${VAR:-default} expansion when a variable is set but empty, and switches core policy pattern evaluation to re2js for linear‑time performance.
Google released Gemini CLI 0.70.0-nightly.20261110.g1603e9bab, introducing a set of functional updates. The update focuses on improving prompt handling, variable expansion, and core pattern evaluation.
Session previews now preserve Unicode prompts and strip ANSI fragments, ensuring that displayed text matches the original input without terminal control codes. Variable expansion applies default values for ${VAR:-default} when the variable is set but empty, allowing scripts to fall back to defined defaults automatically. Core policy argument pattern evaluation now uses re2js, providing linear‑time performance for pattern matching.
The CLI preserves the selected worktree when authentication restarts, maintaining the developer's context across credential refreshes. Authentication capabilities are initialized early, and model‑listing options are deduplicated to avoid redundant entries. System MCP servers that have insecure command permissions are skipped, improving security during server selection.
Core now keeps interrupted placeholders after empty model responses to tool turns, preserving the conversational structure. Workspace directories are restored only after a successful resumeChat operation, preventing premature directory changes. Foreground retry status is scoped to the active main prompt and current model policy, ensuring retries apply only to the relevant request. The Undici body timeout scales when the request timeout exceeds the default 300 seconds, allowing longer operations without premature termination. Finally, the models list now reports accurate output token limits, giving developers precise information about model capacities.
- Bumped version to
0.70.0-nightly.20261110.g1603e9bab.