Gemini CLI: Session Previews, Worktree and Resume Fixes

Gemini CLIView original changelog

Gemini CLI v0.70.0 improves session continuity. Session previews now keep Unicode prompts and strip stray ANSI escape fragments. A selected git worktree now survives authentication restarts. Workspace directories are restored only after chat resume succeeds.

Key Takeaways

  • Unicode prompts now appear intact in session previews, which helps users working in non-English languages.
  • Stray ANSI escape fragments are stripped from previews, so the session list reads cleanly.
  • The selected git worktree is retained across authentication restarts, so users do not land in the wrong tree.
  • Workspace directories are restored only after resumeChat succeeds, so a failed resume no longer leaves a half-restored session.
  • Interrupted-turn placeholders are preserved when the model returns an empty response during tool execution.
  • ${VAR:-default} expansions now honor the default when the variable is set but empty, matching shell behavior.

Overview

Gemini CLI v0.70.0 includes a group of fixes that make resuming and continuing sessions more dependable. Each one fixes a case where a session lost context or showed a garbled view.

Readable session previews

Session previews now preserve Unicode prompts, so non-Latin text shows correctly when users browse past sessions. They also strip leftover ANSI escape fragments that previously leaked into the preview text as visual noise.

Worktrees survive re-authentication

Gemini CLI now keeps the selected git worktree when the CLI restarts for authentication. Before, users who re-authenticated mid-session could end up back in the wrong working tree.

Safer resume behavior

Workspace directories are now restored only after resuming the chat succeeds. A failed resume therefore no longer leaves extra directories attached to the session. The CLI also keeps the interrupted-turn placeholder when the model returns an empty response after tool execution. The conversation history then shows what happened.

Related environment fixes

The same release detects a local git clone from the CLI's own path, not the current working directory. It also applies the default value in ${VAR:-default} expansions when a variable is set but empty.

Gemini CLI v0.70: Session Preview and Resume Fixes | Yet Another Changelog