Gemini CLI v0.70.0 lets long requests finish and asks before shell globs

9 hours ago

Gemini CLI v0.70.0 lets long requests run past five minutes, asks before read-only shell commands with globs or variables, moves policy patterns to re2js and skips system MCP servers with writable scripts.

Ask about this presentation

Chapters

  1. 0:00Long requests run past five minutes
  2. 0:1601: Shell commands and policy rules
  3. 0:19Globs and variables ask first
  4. 0:39Policy patterns on re2js
  5. 0:58Command rules match the command
  6. 1:1302: MCP servers, extensions and the IDE
  7. 1:16Writable MCP scripts are skipped
  8. 1:33extensions link defaults to No
  9. 1:48IDE connection file is yours alone
  10. 2:0103: Fixes you may have hit
  11. 2:04Real output token limits
  12. 2:20--worktree survives a sign-in restart
  13. 2:33Three smaller fixes
  14. 2:47Should you upgrade?
Show transcript
  1. Gemini CLI v0.70.0 lets long requests finish. A slow stream, like a large file write, used to stop at five minutes and replay the billed request up to four times. Now it waits as long as your timeout setting allows.

    Slide text
    Gemini CLI

    Gemini CLI v0.70.0 lets long requests finish and asks before shell globs

    large write_file stream, timeout set to 15 min ✗ aborted at 300 s · UND_ERR_BODY_TIMEOUT ✗ billed request replayed up to 4 times ✓ body timeout now follows model.requestTimeoutMs
    packages/core/src/utils/fetch.ts · #30258
  2. Shell commands and policy rules.

    Slide text
    > shell commands and policy rules 2026-11-19
    01
    Shell commands and policy rules
  3. A read-only shell command with a glob, a brace group or a variable, like ls *.md, now shows the confirmation prompt. Bash rewrites those arguments before they run. Quoted arguments still run without asking, and an explicit allow rule brings back the old behaviour.

    Slide text
    > shell commands and policy rules 2026-11-19

    Read-only commands with globs or variables now ask before they run

    command before now ls *.md allow ask echo {1..3} allow ask ls "$HOME" allow ask ls '*.md' allow allow
    packages/core/src/utils/shell-utils.ts · #30338
  4. Policy rules now match with re2js, a JavaScript build of the RE2 regex engine. Checking a rule takes time in proportion to the length of the arguments. A pattern that won't compile is skipped, and the other rules in the file still load.

    Slide text
    > shell commands and policy rules 2026-11-19

    Policy patterns now run on re2js, in linear time

    argsPattern · commandRegex · commandPrefix → RE2 dialect compile limit: 2,000 instructions per pattern pattern that fails to compile → its rule is skipped
    packages/core/src/policy/safe-regex.ts · #30282
  5. Rules written with a command prefix or a command regex now match only the command itself. Before, the same text sitting inside a nested argument or a string value could match the rule too.

    Slide text
    > shell commands and policy rules 2026-11-19

    commandPrefix and commandRegex now match only the command a tool runs

    "command": matched anywhere in the arguments "command": matched only as the top-level argument
    packages/core/src/policy/utils.ts · #30355
  6. MCP servers, extensions and the IDE.

    Slide text
    > mcp servers, extensions and the ide 2026-11-19
    02
    MCP servers, extensions and the IDE
  7. Gemini CLI now skips a system-wide MCP server when a regular user can edit its script, and prints a security warning at startup. That edit used to inherit the server's automatic tool approval. Servers in your own user or workspace settings are unaffected.

    Slide text
    > mcp servers, extensions and the ide 2026-11-19

    System MCP servers with a writable script are skipped at startup

    $ gemini mcp list Security Warning: Skipping MCP server 'corp-mcp'… Group writable (mode 775) user and workspace MCP servers: unchanged
    packages/cli/src/config/settings.ts · #30283
  8. Linking an extension now resolves any symlink and shows the real folder. It warns that later changes there load on every start, and the answer defaults to No. Without a terminal to ask in, it refuses.

    Slide text
    > mcp servers, extensions and the ide 2026-11-19

    gemini extensions link shows the real path and defaults to No

    $ gemini extensions link ./my-extension ⚠️ Warning: Linking creates a live symbolic link to the target directory. Do you want to continue? [y/N]:
    packages/cli/src/config/extensions/consent.ts · #30289
  9. On macOS and Linux, the VS Code companion now writes its connection file into a temp folder that only your account can open. Another user on a shared machine can't read that file or plant a fake one.

    Slide text
    > mcp servers, extensions and the ide 2026-11-19

    The VS Code companion keeps its connection file in a folder only you can open

    $TMPDIR/gemini-ide-<uid> · folder mode 0700 port file written whole, mode 0600, then renamed falls back to the old shared folder if empty
    packages/core/src/utils/paths.ts · #30340
  10. Fixes you may have hit.

    Slide text
    > fixes you may have hit 2026-11-19
    03
    Fixes you may have hit
  11. The models list used to print about eight thousand output tokens for every model. Gemini 2.5 and Gemini 3 now show their real limit, about sixty-five thousand, eight times higher. Custom models show no output figure.

    Slide text
    > fixes you may have hit 2026-11-19

    gemini models list now shows the real output limit for Gemini 2.5 and 3

    before 8,192
    v0.70.0 65,536
    packages/core/src/core/tokenLimits.ts · #30253
  12. Start Gemini CLI with the worktree flag, then sign in again or switch accounts, and it restarts in the same worktree. Before, every restart made a new one, or failed on a named worktree.

    Slide text
    > fixes you may have hit 2026-11-19

    --worktree keeps your worktree when Gemini CLI restarts to sign in

    restart → a new timestamped worktree, or a branch collision restart → the same worktree you started in
    packages/cli/src/utils/relaunch.ts · #30176
  13. Session previews keep prompts in Chinese, Arabic or emoji instead of going blank. A variable with a fallback now uses it when the variable is set but empty. And the retry countdown ignores background requests.

    Slide text
    > fixes you may have hit 2026-11-19

    Session titles, empty variables and the retry countdown

    session previews keep Chinese, Arabic, accents and emoji ${VAR:-default} uses the default when VAR is empty the retry countdown shows only your own prompt's retries
    sessionUtils.ts #30220 · envVarResolver.ts #30250 · useGeminiStream.ts #30266
  14. I would say yes, if your requests run long or you keep MCP servers in system settings, once an administrator owns those server scripts. The new prompt covers bash only, so PowerShell behaves as before. The full list is in the release notes.

    Slide text
    > should you upgrade 2026-11-19

    Upgrade if your requests run long or your admin ships MCP servers

    ✓ you raised the request timeout past 5 minutes ✓ system MCP scripts are owned by root or Administrators ✗ the new shell prompt covers bash only, not PowerShell
    releases/tag/v0.70.0 · #30283 · #30338

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