Gemini CLI now asks again before an extension update changes what it runs

1 day ago

Gemini CLI extension updates now ask for your consent again when an update changes the extension's hooks, skills, sub-agents, commands, policies or MCP servers, and the dialog starts on No. Also in these releases: wrapped shell commands such as sh -c, sudo, cmd.exe and PowerShell get checked inside, the MCP sign-in prompt names the site you sign in at, the A2A server requires a bearer token, and gemini --resume reopens the session you used last. Covers Gemini CLI v0.71.1 (2026-11-24) and v0.72.0 (2026-12-02).

Ask about this presentation

Chapters

Show transcript
  1. When an extension update changes the hooks, skills or MCP servers it brings, Gemini CLI now stops and asks for your consent again before it installs the update. The prompt spells out every hook command.

    Slide text
    Gemini CLI

    Gemini CLI now asks again before an extension update changes what it runs

    Hooks SessionStart: node ${extensionPath}/scripts/on-start.js Files used by hooks: scripts/on-start.js Hooks signature: sha256 … Changes since the installed version
    extension consent prompt · #30441 · shipped in #30565
  2. Extension updates.

    Slide text
    01
    Extension updates
  3. Gemini CLI now hashes every file an extension adds, including the scripts its hooks call and the files its context imports. An update that only bumps the version number installs without asking.

    Slide text
    > extension updates 2026-12-02

    A changed hook, skill or MCP server brings the prompt back

    hooks, and the scripts their commands call context files, and every file they import skills, sub-agents, commands, policies, MCP servers version number only: no prompt
    #30441 · shipped in #30565
  4. On an update, the prompt names each new, changed and removed item right above the question. If you decline, the version you already have stays installed.

    Slide text
    > extension updates 2026-12-02

    The prompt lists what the update changes

    Changes since the installed version new · changed · removed Decline: the installed version stays
    docs/extensions/reference.md · #30441
  5. The extension consent dialog now starts on No, so a reflexive Enter turns the extension away. Other consent dialogs still start on Yes, and the consent flag still skips the prompt and its details.

    Slide text
    > extension updates 2026-12-02

    Pressing Enter now declines an extension

    extension consent dialog → starts on No other consent dialogs → still start on Yes --consent flag → skips the prompt and its details
    ConsentPrompt · #30441
  6. Installing an extension from a folder on your disk now copies the folder first. The prompt and the installed files both come from that copy, so edits to the folder while the prompt is open don't reach the install.

    Slide text
    > extension updates 2026-12-02

    A local install installs exactly what the prompt described

    1 copy your folder to a staging copy 2 build the prompt from that copy 3 install that same copy
    extension-manager · #30441
  7. Shell commands inside wrappers.

    Slide text
    02
    Shell commands inside wrappers
  8. Gemini CLI now unwraps shell commands that start another shell, and checks what runs inside. A command substitution hidden there now asks you first, and a headless run in default approval mode blocks it.

    Slide text
    > wrapped shell commands 2026-12-02

    A command hidden inside sh -c now gets checked

    $ env sh -c 'echo $(id)' interactive: asks you first headless, default approval mode: denied $ env sh -c 'echo ok' → runs as before
    policy engine · #30451 · shipped in #30565
  9. Prefixes like sudo, nohup and timeout get peeled off first. On Windows, the check opens the command prompt and PowerShell, encoded commands included. Past five nested levels, it fails closed.

    Slide text
    > wrapped shell commands 2026-12-02

    The check reaches through sudo, cmd.exe and PowerShell

    sh, bash, zsh, ksh, csh, flags before or after -c prefixes: env, sudo, nohup, timeout, xargs cmd.exe /c, PowerShell -Command and -EncodedCommand nested past 5 levels: treated as unsafe
    shell-utils · #30451
  10. Signing in to MCP servers.

    Slide text
    03
    Signing in to MCP servers
  11. Before an MCP server sends you to a browser login, the consent prompt now names the site that will handle it. Gemini CLI also waits for your yes before it registers itself with that site.

    Slide text
    > MCP sign-in 2026-12-02

    The MCP sign-in prompt now shows where you will sign in

    authorization origin shown in the prompt token origin shown when it is a different domain client registration waits for your yes
    MCP OAuth · #30454 · shipped in #30565
  12. Discovered sign-in endpoints must now share the issuer's origin, and metadata naming a different issuer is refused. Setups you spell out by hand across domains, like Google OAuth, still work.

    Slide text
    > MCP sign-in 2026-12-02

    Sign-in endpoints on another domain get refused

    discovered issuer must match the server queried login, token and registration URLs share its origin hand-written multi-domain setups, like Google OAuth, still work
    RFC 8414 §3.3 · #30454
  13. The A2A server.

    Slide text
    04
    The A2A server
  14. Gemini CLI's A2A server, which lets other agents hand it coding work, now checks a bearer token on every request, the agent card included. Start it without a token set, and every request fails.

    Slide text
    > the A2A server 2026-12-02

    The A2A server now requires a bearer token

    token from GEMINI_IPC_SECRET or CODER_AGENT_AUTH_TOKEN no token sent: 401 no token configured: 500 on every request read from the process environment, never .env files
    packages/a2a-server/README.md · #30420 · #30429
  15. Requests must also arrive addressed to localhost. A request can no longer mark its own workspace as trusted, and restoring a checkpoint refuses any name that points outside the checkpoint folder.

    Slide text
    > the A2A server 2026-12-02

    It answers only requests addressed to localhost

    Host and Origin: localhost, 127.0.0.1, [::1] → else 403 workspace trust: read from server settings restore: stays inside the checkpoint folder
    auth.ts · #30420
  16. Everyday fixes.

    Slide text
    05
    Everyday fixes
  17. Resume used to reopen whichever session started most recently. It now picks the one you were last active in. Numbered resumes keep their start-time order.

    Slide text
    > everyday fixes 2026-12-02

    gemini --resume reopens the session you used last

    $ gemini --resume → the session you chatted in most recently $ gemini --resume 1 → still numbered by start time
    sessionUtils · #30389
  18. On Windows, /ide install failed when VS Code sat in a folder with a space in its name, like Program Files. That works now, and a path written as a tilde and a backslash now expands to your home folder.

    Slide text
    > everyday fixes 2026-12-02

    On Windows, /ide install now works from Program Files

    VS Code, Positron or Antigravity in a folder with spaces: the installer quotes the path ~\ paths in policies, extensions and include folders expand to your home folder
    ide-installer #30390 · resolvePath #30376
  19. Gemini CLI skipped a whole folder ignored with a double-star pattern, even files a nested gitignore brought back. It now reads that folder's own gitignore, so a file it re-includes is visible to Gemini CLI.

    Slide text
    > everyday fixes 2026-12-02

    A nested .gitignore can bring a file back

    .gitignore logs/** logs/.gitignore !keep.txt logs/keep.txt ✓ seen by Gemini CLI logs/a.txt ✗ ignored
    gitIgnoreParser · #30370
  20. If you run the A2A server, set its token before you upgrade; the server's README names both variables. The extensions reference explains when an update asks for consent again.

    Slide text

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