Gemini CLI v0.62.0 keeps you signed in with Google

1 month ago

Gemini CLI v0.62.0 keeps your Google sign-in across token refreshes, stops a crash when you cancel a request on Node 23, fixes Vertex AI behind a proxy, makes Windows shell commands finish reliably, and tidies how VS Code and ACP editors see tool calls.

Ask about this presentation

Chapters

  1. 0:00Gemini CLI v0.62.0
  2. 0:14Cancelling a request no longer crashes Gemini CLI on Node 23
  3. 0:26Vertex AI works behind HTTPS_PROXY again
  4. 0:3701: The shell tool
  5. 0:39Shell commands on Windows finish when the process exits
  6. 0:51Long shell output now has a memory cap
  7. 1:03Finished shell sessions give their terminal back to the system
  8. 1:16A one-column terminal no longer crashes the UI
  9. 1:2702: Editors and ACP
  10. 1:29Closing a diff in VS Code leaves your cursor in the terminal
  11. 1:43Editors see a tool call before they are asked to approve it
  12. 1:54MCP tool calls now read as function signatures
  13. 2:04Three fixes for errors and reports
  14. 2:20Gemini 3.8 Flash and 3.5 Flash Lite first shipped in v0.61.0
Show transcript
  1. Gemini CLI v0.62.0 keeps you signed in with Google. A token refresh used to drop your saved refresh token, which forced a new sign-in after about an hour. Now the token is kept.

    Slide text
    Gemini CLI

    Gemini CLI v0.62.0 keeps you signed in with Google

    Plus fixes for cancelled requests, proxies, the Windows shell and editor tool calls.

    Gemini CLI running in a terminal
    packages/core/src/code_assist/oauth2.ts
  2. On Node 23 and newer, cancelling a request used to crash the whole CLI. The abort error escaped every handler. Gemini CLI now catches that expected error and carries on.

    Slide text
    > sign-in and requests 2026-09-29
    AbortError → uncaught exception, CLI exits AbortError on cancel → caught, CLI keeps running
    packages/cli/src/gemini.tsx
  3. If you use Vertex AI with a proxy set in your environment, sign-in used to crash with a type error about the proxy agent. The bundled CLI now loads its proxy agents correctly.

    Slide text
    > sign-in and requests 2026-09-29
    TypeError: HttpsProxyAgent is not a constructor proxy agents resolve in the bundled CLI HTTP_PROXY · HTTPS_PROXY
    esbuild.config.js
  4. The shell tool.

    Slide text
    > the shell tool 2026-09-29
    01
    The shell tool
  5. On Windows, the terminal's exit signal could arrive out of order, and a finished command might never report back. Gemini CLI now drains the output and completes the command once the process exits.

    Slide text
    > the shell tool 2026-09-29
    ConPTY exit arrives out of order → command never settles output drains → command completes resize after exit → skipped
    packages/core/src/services/shellExecutionService.ts
  6. Commands with long output now use less memory. Each terminal keeps up to 50,000 lines, oversized output is trimmed from the middle, and color data is skipped when color is off.

    Slide text
    > the shell tool 2026-09-29
    50,000 lines scrollback per terminal byte cap trims the middle of huge output no color data when color is off
    packages/core/src/utils/terminalSerializer.ts
  7. On macOS and Linux, a finished shell session now closes its terminal device and hands it back to the system. Quick commands skip the background log, and each background process gets a single log stream.

    Slide text
    > the shell tool 2026-09-29
    terminal device closed on exit macOS · Linux short commands skip the background log one log stream per background process
    core/src/services/executionLifecycleService.ts
  8. Shrink the terminal to a single column during an edit confirmation, and drawing the border used to hit a negative width and throw a range error. Every width is now clamped at zero.

    Slide text
    > the shell tool 2026-09-29
    RangeError: Invalid count value: -1 widths clamped at zero edit confirmations · diffs · tables · progress bars
    packages/cli/src/ui/utils/renderBorder.ts
  9. Editors and ACP.

    Slide text
    > editors and ACP 2026-09-29
    02
    Editors and ACP
  10. In VS Code, when Gemini CLI closes its diff preview, keyboard focus now stays in the integrated terminal. Before, closing the tab pulled focus to the editor, so you clicked back to keep typing.

    Slide text
    > editors and ACP 2026-09-29
    diff tab closes → focus jumps to the editor diff tab closes → focus stays in the terminal
    packages/vscode-ide-companion/src/diff-manager.ts
  11. In Agent Client Protocol mode, Gemini CLI now announces a tool call as pending before it asks for permission, so the editor can link the two. A denied call is marked failed.

    Slide text
    > editors and ACP 2026-09-29
    1  tool_call · pending 2  request_permission 3  denied → tool_call_update · failed
    packages/cli/src/acp/acpSession.ts
  12. When an editor asks you to approve an MCP tool call, the title now reads like a function call, with the tool name and its arguments. The raw JSON is gone.

    Slide text
    > editors and ACP 2026-09-29
    {"projectPath":"/path/to/project","command":"date",…} execute_terminal_command(command: date, projectPath: /path/to/project)
    packages/core/src/tools/mcp-tool.ts
  13. The link in the Google Cloud project error now opens the setup docs instead of a missing page. Bug reports on Windows keep the backslashes in file paths. And the A2A server answers an unsupported task-store request with one clean response.

    Slide text
    > smaller fixes 2026-09-29
    auth error link opens the setup docs, was a 404 /bug on Windows paths keep their backslashes A2A server task metadata returns a clean 501
    code_assist/setup.ts · bugCommand.ts · a2a-server/src/http/app.ts
  14. These notes also list Gemini 3.8 Flash and 3.5 Flash Lite. That change first shipped in v0.61.0, so if you're on it, you already have both. The full list is in the Gemini CLI v0.62.0 release notes on GitHub.

    Slide text
    > gemini cli v0.62.0 2026-09-29
    listed again in the v0.62.0 notes Full list: Gemini CLI v0.62.0 release notes on GitHub
    git tag v0.61.0, cherry-pick of PR #29443

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York