@google/gemini-cli-core 0.70.0 → 0.71.0-nightly.20261121.geecccfcd5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/docs/changelogs/index.md +46 -0
  2. package/dist/docs/changelogs/latest.md +82 -100
  3. package/dist/docs/changelogs/preview.md +82 -115
  4. package/dist/google-gemini-cli-core-0.71.0-nightly.20261118.g615d6bc8c.tgz +0 -0
  5. package/dist/src/confirmation-bus/types.d.ts +1 -0
  6. package/dist/src/confirmation-bus/types.js.map +1 -1
  7. package/dist/src/generated/git-commit.d.ts +2 -2
  8. package/dist/src/generated/git-commit.js +2 -2
  9. package/dist/src/generated/git-commit.js.map +1 -1
  10. package/dist/src/policy/policy-engine.d.ts +1 -0
  11. package/dist/src/policy/policy-engine.js +15 -6
  12. package/dist/src/policy/policy-engine.js.map +1 -1
  13. package/dist/src/sandbox/utils/commandUtils.js +35 -25
  14. package/dist/src/sandbox/utils/commandUtils.js.map +1 -1
  15. package/dist/src/sandbox/windows/WindowsSandboxManager.d.ts +1 -0
  16. package/dist/src/sandbox/windows/WindowsSandboxManager.js +9 -2
  17. package/dist/src/sandbox/windows/WindowsSandboxManager.js.map +1 -1
  18. package/dist/src/sandbox/windows/commandSafety.js +4 -2
  19. package/dist/src/sandbox/windows/commandSafety.js.map +1 -1
  20. package/dist/src/scheduler/policy.js +6 -0
  21. package/dist/src/scheduler/policy.js.map +1 -1
  22. package/dist/src/scheduler/scheduler.js +79 -59
  23. package/dist/src/scheduler/scheduler.js.map +1 -1
  24. package/dist/src/services/fileDiscoveryService.test.js +15 -0
  25. package/dist/src/services/fileDiscoveryService.test.js.map +1 -1
  26. package/dist/src/tools/shell-powershell-parsing.integration.test.d.ts +6 -0
  27. package/dist/src/tools/shell-powershell-parsing.integration.test.js +576 -0
  28. package/dist/src/tools/shell-powershell-parsing.integration.test.js.map +1 -0
  29. package/dist/src/tools/shell.d.ts +6 -1
  30. package/dist/src/tools/shell.js +281 -189
  31. package/dist/src/tools/shell.js.map +1 -1
  32. package/dist/src/tools/tools.d.ts +1 -0
  33. package/dist/src/tools/tools.js.map +1 -1
  34. package/dist/src/utils/gitIgnoreParser.js +33 -1
  35. package/dist/src/utils/gitIgnoreParser.js.map +1 -1
  36. package/dist/src/utils/gitIgnoreParser.test.js +32 -0
  37. package/dist/src/utils/gitIgnoreParser.test.js.map +1 -1
  38. package/dist/src/utils/ignorePathUtils.d.ts +1 -1
  39. package/dist/src/utils/ignorePathUtils.js +3 -2
  40. package/dist/src/utils/ignorePathUtils.js.map +1 -1
  41. package/dist/src/utils/ignorePathUtils.test.js +8 -0
  42. package/dist/src/utils/ignorePathUtils.test.js.map +1 -1
  43. package/dist/src/utils/shell-parse-cache.d.ts +37 -0
  44. package/dist/src/utils/shell-parse-cache.js +55 -0
  45. package/dist/src/utils/shell-parse-cache.js.map +1 -0
  46. package/dist/src/utils/shell-parse-cache.test.d.ts +6 -0
  47. package/dist/src/utils/shell-parse-cache.test.js +478 -0
  48. package/dist/src/utils/shell-parse-cache.test.js.map +1 -0
  49. package/dist/src/utils/shell-utils.d.ts +27 -29
  50. package/dist/src/utils/shell-utils.js +385 -89
  51. package/dist/src/utils/shell-utils.js.map +1 -1
  52. package/dist/src/utils/untrustedContextTracker.d.ts +2 -6
  53. package/dist/src/utils/untrustedContextTracker.js +65 -27
  54. package/dist/src/utils/untrustedContextTracker.js.map +1 -1
  55. package/dist/tsconfig.tsbuildinfo +1 -1
  56. package/package.json +1 -1
@@ -18,6 +18,52 @@ on GitHub.
18
18
  | [Preview](preview.md) | Experimental features ready for early feedback. |
19
19
  | [Stable](latest.md) | Stable, recommended for general use. |
20
20
 
21
+ ## Announcements: v0.70.0 - 2026-11-19
22
+
23
+ - **Policy Engine Hardening & Shell Safety:** Evaluated policy regex patterns
24
+ with re2js for linear-time evaluation and matched prefix and regex rules
25
+ against top-level command arguments
26
+ ([#30282](https://github.com/google-gemini/gemini-cli/pull/30282) by
27
+ @diegogodinezr,
28
+ [#30355](https://github.com/google-gemini/gemini-cli/pull/30355) by
29
+ @luisfelipe-alt).
30
+ - **System MCP & IDE Security Isolation:** Skipped system MCP servers with
31
+ insecure command permissions and isolated IDE companion discovery using
32
+ per-user directories with atomic port writes
33
+ ([#30283](https://github.com/google-gemini/gemini-cli/pull/30283) by
34
+ @elberthc-byte,
35
+ [#30340](https://github.com/google-gemini/gemini-cli/pull/30340) by
36
+ @villahernandez-coder).
37
+ - **Model Token Limits & HTTP Timeout Scaling:** Reported accurate output token
38
+ limits in model listings and dynamically scaled HTTP client body timeouts for
39
+ long-running requests
40
+ ([#30253](https://github.com/google-gemini/gemini-cli/pull/30253) by
41
+ @tadipavan, [#30258](https://github.com/google-gemini/gemini-cli/pull/30258)
42
+ by @tadipavan).
43
+
44
+ ## Announcements: v0.69.0 - 2026-11-19
45
+
46
+ - **Daily Token Heatmap & Custom Themes:** Added a `/stats heatmap` subcommand
47
+ for daily token usage analysis and supported standalone `theme.json`
48
+ configurations for custom themes
49
+ ([#30135](https://github.com/google-gemini/gemini-cli/pull/30135) by
50
+ @jvargassanchez-dot,
51
+ [#30119](https://github.com/google-gemini/gemini-cli/pull/30119) by
52
+ @jesussamuel-byte).
53
+ - **API Timeout Overrides & Network Resilience:** Enabled custom API header
54
+ timeout configuration across all authentication modes and prevented silent
55
+ loading hangs during network failures
56
+ ([#30183](https://github.com/google-gemini/gemini-cli/pull/30183) by
57
+ @jesussamuel-byte,
58
+ [#30182](https://github.com/google-gemini/gemini-cli/pull/30182) by
59
+ @villahernandez-coder).
60
+ - **Multimodal Memory & Sandbox Hardening:** Bounded multi-part tool outputs to
61
+ evict older inline data and resolved folder trust before entering macOS
62
+ Seatbelt sandboxes
63
+ ([#30180](https://github.com/google-gemini/gemini-cli/pull/30180) by
64
+ @tadipavan, [#30164](https://github.com/google-gemini/gemini-cli/pull/30164)
65
+ by @diegogodinezr).
66
+
21
67
  ## Announcements: v0.68.0 - 2026-11-10
22
68
 
23
69
  - **Extension Validation & Install Safety:** Added an extension validation
@@ -1,6 +1,6 @@
1
- # Latest stable release: v0.68.0
1
+ # Latest stable release: v0.70.0
2
2
 
3
- Released: November 10, 2026
3
+ Released: November 19, 2026
4
4
 
5
5
  For most users, our latest stable release is the recommended release. Install
6
6
  the latest stable version with:
@@ -11,109 +11,91 @@ npm install -g @google/gemini-cli
11
11
 
12
12
  ## Highlights
13
13
 
14
- - **Extension Validation Command**: Added an extension validation command and
15
- evaluation tests to verify extension configurations, along with serialized
16
- per-extension locking to prevent race conditions during concurrent installs.
17
- - **Rate Limit Visibility & Countdown**: Surfaced HTTP 429 rate limit cool-down
18
- status and active countdown timers directly in the CLI loading indicator.
19
- - **Model State & Dynamic Resolution**: Preserved user-selected models across
20
- transient fallbacks, cancellations, and rewinds, while ensuring proper dynamic
21
- resolution for dotted Gemini 3 models and Gemini 2.5 Flash.
22
- - **Hooks System Enhancements**: Supported SubagentStop event mapping and merged
23
- hook definitions across configurations.
24
- - **Cross-Platform & Sandbox Reliability**: Enabled `--userns=keep-id` for
25
- rootless Podman sandboxes, improved Windows process lookup and libuv file stat
26
- handling, and canonically resolved symlinks in glob file searches.
14
+ - **Policy Engine Hardening**: Evaluated policy regex patterns using `re2js` for
15
+ linear-time matching against ReDoS vulnerabilities, matched `commandPrefix`
16
+ and `commandRegex` rules strictly against top-level command arguments, and
17
+ enforced user confirmation for shell commands with unresolved variable
18
+ expansions.
19
+ - **MCP & IDE Security Isolation**: Enforced security permission checks to skip
20
+ system MCP servers with insecure command permissions, isolated IDE companion
21
+ discovery using per-user directories and atomic port file writes, and
22
+ disclosed canonical link targets in consent prompts.
23
+ - **Model Listing & Network Resilience**: Accurately reported output token
24
+ limits and initialized authentication capabilities when listing models, and
25
+ dynamically scaled HTTP client body timeouts when request timeouts exceed the
26
+ default 300 seconds.
27
+ - **Session & Workspace State Preservation**: Preserved Unicode characters and
28
+ stripped ANSI escape fragments in session previews, maintained selected git
29
+ worktrees across authentication restarts, and safely restored workspace
30
+ directories only upon successful chat resumption.
27
31
 
28
32
  ## What's Changed
29
33
 
30
- - Changelog for v0.67.0-preview.0 by @gemini-cli-robot in
31
- [#29990](https://github.com/google-gemini/gemini-cli/pull/29990)
32
- - Changelog for v0.66.0 by @gemini-cli-robot in
33
- [#29992](https://github.com/google-gemini/gemini-cli/pull/29992)
34
- - docs(readme): clarify Gemini CLI scope, limitations, and tool landscape by
35
- @LyalinDotCom in
36
- [#29995](https://github.com/google-gemini/gemini-cli/pull/29995)
37
- - fix(cli): bound inline history re-render after terminal width changes by
38
- @jvargassanchez-dot in
39
- [#29904](https://github.com/google-gemini/gemini-cli/pull/29904)
40
- - fix(ui): handle surrogate pairs when truncating in sanitizeForDisplay by
41
- @diegogodinezr in
42
- [#29993](https://github.com/google-gemini/gemini-cli/pull/29993)
43
- - fix(core): make isWithinRoot case-insensitive on Windows by @duvanka-prasad in
44
- [#29999](https://github.com/google-gemini/gemini-cli/pull/29999)
45
- - fix(core): recognize dotted Gemini 3 models in
46
- supportsMultimodalFunctionResponse by @jesussamuel-byte in
47
- [#29982](https://github.com/google-gemini/gemini-cli/pull/29982)
48
- - feat(cli): add extension validation command and evaluation tests by @tadipavan
49
- in [#29980](https://github.com/google-gemini/gemini-cli/pull/29980)
50
- - fix(core): normalize leading slashes in file search query for @ autocomplete
51
- by @urielefrenvirtusa in
52
- [#29987](https://github.com/google-gemini/gemini-cli/pull/29987)
53
- - fix(vscode-ide-companion): register all extension disposables in
54
- context.subscriptions by @jvargassanchez-dot in
55
- [#29994](https://github.com/google-gemini/gemini-cli/pull/29994)
56
- - fix(core): list Auto in /model when dynamicModelConfiguration is enabled and
57
- preview access is disabled by @villahernandez-coder in
58
- [#29998](https://github.com/google-gemini/gemini-cli/pull/29998)
59
- - fix(core,cli): fix instances of incorrect \n escape behavior by @ugorla-dev in
60
- [#29989](https://github.com/google-gemini/gemini-cli/pull/29989)
61
- - fix(core): use PowerShell CIM fallback for Windows IDE process lookup by
62
- @tadipavan in [#30006](https://github.com/google-gemini/gemini-cli/pull/30006)
63
- - fix(cli): surface 429 rate limit cool-down and countdown in loading indicator
64
- by @urielefrenvirtusa in
65
- [#30012](https://github.com/google-gemini/gemini-cli/pull/30012)
66
- - fix(cli): anchor .git suffix removal to end of repo URL by @diegogodinezr in
67
- [#30013](https://github.com/google-gemini/gemini-cli/pull/30013)
68
- - fix(ci,sdk): run SDK tests in PR CI and fix AgentLoopContext mock in
69
- session.test.ts by @duvanka-prasad in
70
- [#30023](https://github.com/google-gemini/gemini-cli/pull/30023)
71
- - fix(core): prevent $-pattern corruption in LLM prompt templates by
72
- @duvanka-prasad in
73
- [#30035](https://github.com/google-gemini/gemini-cli/pull/30035)
74
- - fix(cli): Fixes unexpected truncation and toggle behavior in Expandab… by
75
- @tadipavan in [#29965](https://github.com/google-gemini/gemini-cli/pull/29965)
76
- - refactor(cli): decouple ToolGroupMessage from internal type guards and payload
77
- structures by @ugorla-dev in
78
- [#30041](https://github.com/google-gemini/gemini-cli/pull/30041)
79
- - fix(core): gate background log stream initialization on execution lifecycle
80
- transition by @jesussamuel-byte in
81
- [#30031](https://github.com/google-gemini/gemini-cli/pull/30031)
82
- - fix(core): honor .git/info/exclude and core.excludesFile in shadow repo by
34
+ - Changelog for v0.69.0-preview.0 by @gemini-cli-robot in
35
+ [#30222](https://github.com/google-gemini/gemini-cli/pull/30222)
36
+ - Changelog for v0.68.0 by @gemini-cli-robot in
37
+ [#30224](https://github.com/google-gemini/gemini-cli/pull/30224)
38
+ - chore(release): bump version to 0.70.0-nightly.20261110.g1603e9bab by
39
+ @gemini-cli-robot in
40
+ [#30223](https://github.com/google-gemini/gemini-cli/pull/30223)
41
+ - test(cli): remove redundant lowercase restart test in
42
+ AdminSettingsChangedDialog by @luisfelipe-alt in
43
+ [#30221](https://github.com/google-gemini/gemini-cli/pull/30221)
44
+ - fix(cli): preserve Unicode prompts and strip ANSI fragments in session
45
+ previews (#29915) by @urielefrenvirtusa in
46
+ [#30220](https://github.com/google-gemini/gemini-cli/pull/30220)
47
+ - fix(cli): preserve selected worktree across authentication restarts (#30078)
48
+ by @duvanka-prasad in
49
+ [#30176](https://github.com/google-gemini/gemini-cli/pull/30176)
50
+ - fix(core): preserve interrupted placeholder after empty model responses to
51
+ tool turns by @tadipavan in
52
+ [#30228](https://github.com/google-gemini/gemini-cli/pull/30228)
53
+ - fix(cli): apply default in ${VAR:-default} when variable is set but empty by
54
+ @urielefrenvirtusa in
55
+ [#30250](https://github.com/google-gemini/gemini-cli/pull/30250)
56
+ - fix(core): scale undici bodyTimeout when request timeout exceeds 300s default
57
+ by @tadipavan in
58
+ [#30258](https://github.com/google-gemini/gemini-cli/pull/30258)
59
+ - fix(core,cli): report accurate output token limits in models list by
60
+ @tadipavan in [#30253](https://github.com/google-gemini/gemini-cli/pull/30253)
61
+ - fix(cli): restore workspace directories only after resumeChat succeeds by
83
62
  @urielefrenvirtusa in
84
- [#30034](https://github.com/google-gemini/gemini-cli/pull/30034)
85
- - fix(core): flush pending SSE event buffer at stream EOF in CodeAssistServer by
86
- @tadipavan in [#30050](https://github.com/google-gemini/gemini-cli/pull/30050)
87
- - fix(core): handle Windows libuv zero-device stat reporting in
88
- readSecureFileBuffer by @jvargassanchez-dot in
89
- [#30044](https://github.com/google-gemini/gemini-cli/pull/30044)
90
- - fix(cli): serialize concurrent extension installs with per-extension lock
91
- (#29036) by @diegogodinezr in
92
- [#30039](https://github.com/google-gemini/gemini-cli/pull/30039)
93
- - fix(core): resolve symlinked paths canonically in GlobTool by @ugorla-dev in
94
- [#30042](https://github.com/google-gemini/gemini-cli/pull/30042)
95
- - fix(cli): add missing active and focus keys to custom theme ui schema by
63
+ [#30259](https://github.com/google-gemini/gemini-cli/pull/30259)
64
+ - fix(core,cli): scope foreground retry status to active main prompt and current
65
+ model policy by @tadipavan in
66
+ [#30266](https://github.com/google-gemini/gemini-cli/pull/30266)
67
+ - fix(cli): initialize auth capabilities and deduplicate options when listing
68
+ models by @tadipavan in
69
+ [#30271](https://github.com/google-gemini/gemini-cli/pull/30271)
70
+ - fix(cli): skip system MCP servers with insecure command permissions by
71
+ @elberthc-byte in
72
+ [#30283](https://github.com/google-gemini/gemini-cli/pull/30283)
73
+ - refactor(core): use re2js for linear-time policy argsPattern evaluation by
74
+ @diegogodinezr in
75
+ [#30282](https://github.com/google-gemini/gemini-cli/pull/30282)
76
+ - chore(deps): update workspace dependencies and sandbox runtime packages by
77
+ @DavidAPierce in
78
+ [#30321](https://github.com/google-gemini/gemini-cli/pull/30321)
79
+ - fix(cli): disclose canonical link path and default consent prompt to no by
80
+ @jvargassanchez-dot in
81
+ [#30289](https://github.com/google-gemini/gemini-cli/pull/30289)
82
+ - fix(cli): detect local git clone from CLI path instead of cwd by @tadipavan in
83
+ [#30315](https://github.com/google-gemini/gemini-cli/pull/30315)
84
+ - fix(ide): use per-user discovery directory and atomic port file writes by
96
85
  @villahernandez-coder in
97
- [#30032](https://github.com/google-gemini/gemini-cli/pull/30032)
98
- - fix(core,cli): preserve selected model across transient fallback, cancel, and
99
- rewind by @villahernandez-coder in
100
- [#30059](https://github.com/google-gemini/gemini-cli/pull/30059)
101
- - fix(core): prevent interrupted Whisper model downloads from being treated as
102
- installed by @tadipavan in
103
- [#30058](https://github.com/google-gemini/gemini-cli/pull/30058)
104
- - fix(cli): handle stream failures during extension release downloads by
105
- @duvanka-prasad in
106
- [#30100](https://github.com/google-gemini/gemini-cli/pull/30100)
107
- - fix(core): preserve explicit gemini-2.5-flash model in dynamic model
108
- resolution by @jesussamuel-byte in
109
- [#30057](https://github.com/google-gemini/gemini-cli/pull/30057)
110
- - fix(hooks): support SubagentStop event mapping and merge hook definitions by
86
+ [#30340](https://github.com/google-gemini/gemini-cli/pull/30340)
87
+ - ci: pre-pull triage image and clear Docker login in dedup workflows by
111
88
  @diegogodinezr in
112
- [#30111](https://github.com/google-gemini/gemini-cli/pull/30111)
113
- - fix(cli): await history replay before responding to ACP session/load by
114
- @tadipavan in [#30112](https://github.com/google-gemini/gemini-cli/pull/30112)
115
- - fix(sandbox): supply --userns=keep-id for rootless podman by @diegogodinezr in
116
- [#30118](https://github.com/google-gemini/gemini-cli/pull/30118)
89
+ [#30342](https://github.com/google-gemini/gemini-cli/pull/30342)
90
+ - fix(core): keep ASK_USER for shell commands with unresolved expansion by
91
+ @luisfelipe-alt in
92
+ [#30338](https://github.com/google-gemini/gemini-cli/pull/30338)
93
+ - fix(core): match commandPrefix and commandRegex rules against the top-level
94
+ command argument by @luisfelipe-alt in
95
+ [#30355](https://github.com/google-gemini/gemini-cli/pull/30355)
96
+ - chore(deps): adjust workspace dependency pins and update simple-git by
97
+ @DavidAPierce in
98
+ [#30356](https://github.com/google-gemini/gemini-cli/pull/30356)
117
99
 
118
100
  **Full Changelog**:
119
- https://github.com/google-gemini/gemini-cli/compare/v0.67.0...v0.68.0
101
+ https://github.com/google-gemini/gemini-cli/compare/v0.69.0...v0.70.0
@@ -1,6 +1,6 @@
1
- # Preview release: v0.69.0-preview.0
1
+ # Preview release: v0.70.0-preview.0
2
2
 
3
- Released: November 10, 2026
3
+ Released: November 19, 2026
4
4
 
5
5
  Our preview release includes the latest, new, and experimental features. This
6
6
  release may not be as stable as our [latest weekly release](latest.md).
@@ -13,127 +13,94 @@ npm install -g @google/gemini-cli@preview
13
13
 
14
14
  ## Highlights
15
15
 
16
- - **CLI Commands and Custom Themes**: Added the `/stats heatmap` subcommand to
17
- visualize daily token usage, introduced support for standalone `theme.json`
18
- configuration files for custom themes, and added argument support and
19
- validation to the `/model` command.
20
- - **Network Resilience and Timeout Controls**: Allowed overriding the 60-second
21
- API headers timeout across all authentication modes via
22
- `model.requestTimeoutMs` or `GEMINI_API_HEADERS_TIMEOUT_MS`, prevented silent
23
- loading hangs on network failures, and capped excessive quota retry delays.
24
- - **Process Lifecycle and Sandbox Safeguards**: Ensured headless aborts
25
- terminate child processes and preserve signal exit codes, resolved folder
26
- trust prior to entering the macOS Seatbelt sandbox, closed leaked `/dev/ptmx`
27
- file descriptors on macOS PTY spawns, and prevented recursive interactive
28
- sessions in shell mode.
29
- - **Multimodal Data and Memory Management**: Bounded multi-part tool outputs,
30
- evicted older multimodal inline data, restricted binary asset inlining in
31
- multi-file reads, and prevented memory retention in PDF inline data and
32
- telemetry buffers.
33
- - **Session State and Stream Reliability**: Resolved model-turn 400 errors
34
- during session resume, eliminated main-thread JSONL freezes, prevented
35
- mid-stream retry text concatenation in ACP, and preserved multimodal tool
36
- responses while preventing empty signature-only turns.
16
+ - **Security and Policy Safeguards**: Integrated linear-time regular expression
17
+ evaluation with `re2js` for policy argument patterns, required user consent
18
+ for shell commands with unresolved variable expansion, matched top-level
19
+ command arguments against prefix and regex rules, and skipped system MCP
20
+ servers with insecure command permissions.
21
+ - **Session Continuity and Terminal Previews**: Preserved Unicode prompts and
22
+ stripped ANSI escape fragments in session previews, retained selected git
23
+ worktrees across authentication restarts, ensured workspace directories are
24
+ restored only after resuming chat succeeds, and preserved interrupted turn
25
+ placeholders during tool execution.
26
+ - **Model Listing and Timeout Management**: Dynamically scaled HTTP body
27
+ timeouts when request timeouts exceed the default 300 seconds, reported
28
+ accurate output token limits in the models list, deduplicated options and
29
+ initialized authentication capabilities, and scoped foreground retry status to
30
+ the active main prompt and model policy.
31
+ - **IDE Companion and Environment Detection**: Isolated IDE discovery files in
32
+ per-user directories with atomic port file writes, detected local git clones
33
+ from the CLI path rather than the current working directory, and honored
34
+ default values in `${VAR:-default}` expansions when variables are set but
35
+ empty.
37
36
 
38
37
  ## What's Changed
39
38
 
40
- - fix(core,cli): preserve literal `$` characters during template placeholder
41
- replacement by @jesussamuel-byte in
42
- [#30136](https://github.com/google-gemini/gemini-cli/pull/30136)
43
- - feat(cli): add /stats heatmap subcommand for daily token usage by
44
- @jvargassanchez-dot in
45
- [#30135](https://github.com/google-gemini/gemini-cli/pull/30135)
46
- - fix(core): prevent **GCLI_EXPAND_TARGET** env collision in expandEnvVars by
47
- @villahernandez-coder in
48
- [#30138](https://github.com/google-gemini/gemini-cli/pull/30138)
49
- - chore(release): bump version to 0.69.0-nightly.20261104.g89e9d25d6 by
39
+ - Changelog for v0.69.0-preview.0 by @gemini-cli-robot in
40
+ [#30222](https://github.com/google-gemini/gemini-cli/pull/30222)
41
+ - Changelog for v0.68.0 by @gemini-cli-robot in
42
+ [#30224](https://github.com/google-gemini/gemini-cli/pull/30224)
43
+ - chore(release): bump version to 0.70.0-nightly.20261110.g1603e9bab by
50
44
  @gemini-cli-robot in
51
- [#30140](https://github.com/google-gemini/gemini-cli/pull/30140)
52
- - fix(cli): serialize AnsiOutput to text content in ACP tool call updates by
53
- @diegogodinezr in
54
- [#30141](https://github.com/google-gemini/gemini-cli/pull/30141)
55
- - Changelog for v0.67.0 by @gemini-cli-robot in
56
- [#30145](https://github.com/google-gemini/gemini-cli/pull/30145)
57
- - Changelog for v0.68.0-preview.0 by @gemini-cli-robot in
58
- [#30146](https://github.com/google-gemini/gemini-cli/pull/30146)
59
- - fix(core): fix Windows PowerShell substitution false positives and policy
60
- handling by @duvanka-prasad in
61
- [#30110](https://github.com/google-gemini/gemini-cli/pull/30110)
62
- - fix(cli): preserve leading and trailing whitespace in
63
- @tools/caretaker-agent/cloudrun/triage-worker/Dockerfile references by
64
- @duvanka-prasad in
65
- [#30150](https://github.com/google-gemini/gemini-cli/pull/30150)
66
- - fix(core): prevent thoughtSignature-only turns and preserve multimodal tool
67
- responses by @tadipavan in
68
- [#30153](https://github.com/google-gemini/gemini-cli/pull/30153)
69
- - fix(cli): wait for piped stdin EOF and avoid destroying process.stdin by
70
- @villahernandez-coder in
71
- [#30163](https://github.com/google-gemini/gemini-cli/pull/30163)
72
- - fix(cli): preserve pending tool confirmation when escaping editor selection by
73
- @jvargassanchez-dot in
74
- [#30147](https://github.com/google-gemini/gemini-cli/pull/30147)
75
- - feat(cli): support standalone theme.json configuration for custom themes by
76
- @jesussamuel-byte in
77
- [#30119](https://github.com/google-gemini/gemini-cli/pull/30119)
78
- - fix(cli): normalize error payloads in headless CLI formatting by
79
- @jvargassanchez-dot in
80
- [#30117](https://github.com/google-gemini/gemini-cli/pull/30117)
81
- - fix(core): require path-separator boundary in tildeifyPath by
82
- @villahernandez-coder in
83
- [#30124](https://github.com/google-gemini/gemini-cli/pull/30124)
84
- - fix(cli): validate model names and support direct arguments in /model command
85
- by @jesussamuel-byte in
86
- [#30137](https://github.com/google-gemini/gemini-cli/pull/30137)
87
- - fix(cli): handle file watcher errors and permit FSEvents in macOS permissive
88
- sandbox by @diegogodinezr in
89
- [#30143](https://github.com/google-gemini/gemini-cli/pull/30143)
90
- - fix(core): bound multi-part tool outputs and evict older multimodal inlineData
45
+ [#30223](https://github.com/google-gemini/gemini-cli/pull/30223)
46
+ - test(cli): remove redundant lowercase restart test in
47
+ AdminSettingsChangedDialog by @luisfelipe-alt in
48
+ [#30221](https://github.com/google-gemini/gemini-cli/pull/30221)
49
+ - fix(cli): preserve Unicode prompts and strip ANSI fragments in session
50
+ previews (#29915) by @urielefrenvirtusa in
51
+ [#30220](https://github.com/google-gemini/gemini-cli/pull/30220)
52
+ - fix(cli): preserve selected worktree across authentication restarts (#30078)
53
+ by @duvanka-prasad in
54
+ [#30176](https://github.com/google-gemini/gemini-cli/pull/30176)
55
+ - fix(core): preserve interrupted placeholder after empty model responses to
56
+ tool turns by @tadipavan in
57
+ [#30228](https://github.com/google-gemini/gemini-cli/pull/30228)
58
+ - fix(cli): apply default in ${VAR:-default} when variable is set but empty by
59
+ @urielefrenvirtusa in
60
+ [#30250](https://github.com/google-gemini/gemini-cli/pull/30250)
61
+ - fix(core): scale undici bodyTimeout when request timeout exceeds 300s default
91
62
  by @tadipavan in
92
- [#30180](https://github.com/google-gemini/gemini-cli/pull/30180)
93
- - fix(vscode): eliminate barrel import bundle bloat and redundant setContext
94
- calls by @ugorla-dev in
95
- [#30181](https://github.com/google-gemini/gemini-cli/pull/30181)
96
- - fix(acp): handle mid-stream retries to prevent text concatenation by
63
+ [#30258](https://github.com/google-gemini/gemini-cli/pull/30258)
64
+ - fix(core,cli): report accurate output token limits in models list by
65
+ @tadipavan in [#30253](https://github.com/google-gemini/gemini-cli/pull/30253)
66
+ - fix(cli): restore workspace directories only after resumeChat succeeds by
97
67
  @urielefrenvirtusa in
98
- [#30165](https://github.com/google-gemini/gemini-cli/pull/30165)
99
- - fix(core,cli): prevent silent multi-minute loading hangs on network failures
100
- by @villahernandez-coder in
101
- [#30182](https://github.com/google-gemini/gemini-cli/pull/30182)
102
- - fix(core,cli): prevent terminal model-turn 400s on resume and main-thread
103
- JSONL freezes by @villahernandez-coder in
104
- [#30186](https://github.com/google-gemini/gemini-cli/pull/30186)
105
- - fix(core): prevent multi-hour quota retries and notify ACP client on retry
106
- attempts by @urielefrenvirtusa in
107
- [#30187](https://github.com/google-gemini/gemini-cli/pull/30187)
108
- - fix(core): close orphan /dev/ptmx master FD leaked on macOS PTY spawn by
109
- @ugorla-dev in
110
- [#30184](https://github.com/google-gemini/gemini-cli/pull/30184)
111
- - fix(core,cli): allow overriding 60s API headers timeout across all auth modes
112
- (`model.requestTimeoutMs` / `GEMINI_API_HEADERS_TIMEOUT_MS`) by
113
- @jesussamuel-byte in
114
- [#30183](https://github.com/google-gemini/gemini-cli/pull/30183)
115
- - fix(cli): use isSubpath for theme file home-directory check by @duvanka-prasad
116
- in [#30160](https://github.com/google-gemini/gemini-cli/pull/30160)
117
- - fix(cli): resolve folder trust before entering the macOS Seatbelt sandbox by
68
+ [#30259](https://github.com/google-gemini/gemini-cli/pull/30259)
69
+ - fix(core,cli): scope foreground retry status to active main prompt and current
70
+ model policy by @tadipavan in
71
+ [#30266](https://github.com/google-gemini/gemini-cli/pull/30266)
72
+ - fix(cli): initialize auth capabilities and deduplicate options when listing
73
+ models by @tadipavan in
74
+ [#30271](https://github.com/google-gemini/gemini-cli/pull/30271)
75
+ - fix(cli): skip system MCP servers with insecure command permissions by
76
+ @elberthc-byte in
77
+ [#30283](https://github.com/google-gemini/gemini-cli/pull/30283)
78
+ - refactor(core): use re2js for linear-time policy argsPattern evaluation by
118
79
  @diegogodinezr in
119
- [#30164](https://github.com/google-gemini/gemini-cli/pull/30164)
120
- - fix(cli,core): kill child processes, record cancelled tools, and preserve
121
- signal exit code on headless abort by @duvanka-prasad in
122
- [#30204](https://github.com/google-gemini/gemini-cli/pull/30204)
123
- - fix(cli): prevent recursive interactive gemini sessions in shell mode by
80
+ [#30282](https://github.com/google-gemini/gemini-cli/pull/30282)
81
+ - chore(deps): update workspace dependencies and sandbox runtime packages by
82
+ @DavidAPierce in
83
+ [#30321](https://github.com/google-gemini/gemini-cli/pull/30321)
84
+ - fix(cli): disclose canonical link path and default consent prompt to no by
124
85
  @jvargassanchez-dot in
125
- [#30185](https://github.com/google-gemini/gemini-cli/pull/30185)
126
- - fix(core): reject MessageBus.request() immediately when publish fails by
86
+ [#30289](https://github.com/google-gemini/gemini-cli/pull/30289)
87
+ - fix(cli): detect local git clone from CLI path instead of cwd by @tadipavan in
88
+ [#30315](https://github.com/google-gemini/gemini-cli/pull/30315)
89
+ - fix(ide): use per-user discovery directory and atomic port file writes by
90
+ @villahernandez-coder in
91
+ [#30340](https://github.com/google-gemini/gemini-cli/pull/30340)
92
+ - ci: pre-pull triage image and clear Docker login in dedup workflows by
93
+ @diegogodinezr in
94
+ [#30342](https://github.com/google-gemini/gemini-cli/pull/30342)
95
+ - fix(core): keep ASK_USER for shell commands with unresolved expansion by
127
96
  @luisfelipe-alt in
128
- [#30189](https://github.com/google-gemini/gemini-cli/pull/30189)
129
- - fix(core): ensure read-many-files only inlines explicitly requested binary
130
- assets (#29045) by @urielefrenvirtusa in
131
- [#30211](https://github.com/google-gemini/gemini-cli/pull/30211)
132
- - fix(core): recognize TortoiseGitPlink as PuTTY-family SSH client (#29917) by
133
- @urielefrenvirtusa in
134
- [#30214](https://github.com/google-gemini/gemini-cli/pull/30214)
135
- - fix(core): prevent PDF inlineData and telemetry buffer memory retention by
136
- @tadipavan in [#30217](https://github.com/google-gemini/gemini-cli/pull/30217)
97
+ [#30338](https://github.com/google-gemini/gemini-cli/pull/30338)
98
+ - fix(core): match commandPrefix and commandRegex rules against the top-level
99
+ command argument by @luisfelipe-alt in
100
+ [#30355](https://github.com/google-gemini/gemini-cli/pull/30355)
101
+ - chore(deps): adjust workspace dependency pins and update simple-git by
102
+ @DavidAPierce in
103
+ [#30356](https://github.com/google-gemini/gemini-cli/pull/30356)
137
104
 
138
105
  **Full Changelog**:
139
- https://github.com/google-gemini/gemini-cli/compare/v0.68.0-preview.0...v0.69.0-preview.0
106
+ https://github.com/google-gemini/gemini-cli/compare/v0.69.0-preview.0...v0.70.0-preview.0
@@ -104,6 +104,7 @@ export type SerializableConfirmationDetails = {
104
104
  rootCommand: string;
105
105
  rootCommands: string[];
106
106
  commands?: string[];
107
+ hasRedirection?: boolean;
107
108
  untrustedFlags?: string[];
108
109
  modifiedBuildFiles?: string[];
109
110
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/confirmation-bus/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAqB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAqB,MAAM,oBAAoB,CAAC;AAUvD,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,yEAAuD,CAAA;IACvD,2EAAyD,CAAA;IACzD,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;AACzC,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AA0JD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/confirmation-bus/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAqB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAqB,MAAM,oBAAoB,CAAC;AAUvD,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,yEAAuD,CAAA;IACvD,2EAAyD,CAAA;IACzD,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;AACzC,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AA2JD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
@@ -3,5 +3,5 @@
3
3
  * Copyright 2026 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- export declare const GIT_COMMIT_INFO = "7f51a3899";
7
- export declare const CLI_VERSION = "0.70.0";
6
+ export declare const GIT_COMMIT_INFO = "eecccfcd5";
7
+ export declare const CLI_VERSION = "0.71.0-nightly.20261121.geecccfcd5";
@@ -5,6 +5,6 @@
5
5
  */
6
6
  // This file is auto-generated by the build script (scripts/generate-git-commit-info.js)
7
7
  // Do not edit this file manually.
8
- export const GIT_COMMIT_INFO = '7f51a3899';
9
- export const CLI_VERSION = '0.70.0';
8
+ export const GIT_COMMIT_INFO = 'eecccfcd5';
9
+ export const CLI_VERSION = '0.71.0-nightly.20261121.geecccfcd5';
10
10
  //# sourceMappingURL=git-commit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-commit.js","sourceRoot":"","sources":["../../../src/generated/git-commit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wFAAwF;AACxF,kCAAkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"git-commit.js","sourceRoot":"","sources":["../../../src/generated/git-commit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wFAAwF;AACxF,kCAAkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,oCAAoC,CAAC"}
@@ -40,6 +40,7 @@ export declare class PolicyEngine {
40
40
  * Returns the decision and the matching rule (if any).
41
41
  */
42
42
  check(toolCall: FunctionCall, serverName: string | undefined, toolAnnotations?: Record<string, unknown>, subagent?: string, skipHeuristics?: boolean): Promise<CheckResult>;
43
+ private checkInternal;
43
44
  /**
44
45
  * Add a new rule to the policy engine.
45
46
  */
@@ -5,7 +5,8 @@
5
5
  */
6
6
  import path from 'node:path';
7
7
  import {} from '@google/genai';
8
- import { SHELL_TOOL_NAMES, REDIRECTION_NAMES, initializeShellParsers, parseCommandDetails, stripShellWrapper, hasRedirection, hasUnresolvedShellExpansion, detectCommandSubstitution, extractStringFromParseEntry, } from '../utils/shell-utils.js';
8
+ import { SHELL_TOOL_NAMES, REDIRECTION_NAMES, initializeShellParsers, parseCommandDetails, parseCommandDetailsAsync, isDefaultParseCommandDetails, stripShellWrapper, hasRedirection, hasRedirectionAsync, isDefaultHasRedirection, hasUnresolvedShellExpansion, detectCommandSubstitution, extractStringFromParseEntry, } from '../utils/shell-utils.js';
9
+ import { runWithCommandParseCache } from '../utils/shell-parse-cache.js';
9
10
  import { parse as shellParse } from 'shell-quote';
10
11
  import { isSubpath } from '../utils/paths.js';
11
12
  import { PolicyDecision, ApprovalMode, ALWAYS_ALLOW_PRIORITY_FRACTION, } from './types.js';
@@ -261,10 +262,13 @@ export class PolicyEngine {
261
262
  return (rule.priority !== undefined &&
262
263
  Math.round((rule.priority % 1) * 1000) === ALWAYS_ALLOW_PRIORITY_FRACTION);
263
264
  }
264
- shouldDowngradeForRedirection(command, allowRedirection, rule) {
265
+ async shouldDowngradeForRedirection(command, allowRedirection, rule) {
265
266
  if (allowRedirection)
266
267
  return false;
267
- if (!hasRedirection(command))
268
+ const redirected = isDefaultHasRedirection(hasRedirection)
269
+ ? await hasRedirectionAsync(command)
270
+ : hasRedirection(command);
271
+ if (!redirected)
268
272
  return false;
269
273
  // Require explicit allowRedirection when matching a command-prefix rule.
270
274
  if (rule?.argsPattern && !allowRedirection) {
@@ -363,7 +367,9 @@ export class PolicyEngine {
363
367
  };
364
368
  }
365
369
  await initializeShellParsers();
366
- const parsed = parseCommandDetails(command);
370
+ const parsed = isDefaultParseCommandDetails(parseCommandDetails)
371
+ ? await parseCommandDetailsAsync(command)
372
+ : parseCommandDetails(command);
367
373
  const subCommands = parsed?.details ?? [];
368
374
  // Handle parser failures or syntax errors
369
375
  if (subCommands.length === 0 || parsed?.hasError) {
@@ -401,7 +407,7 @@ export class PolicyEngine {
401
407
  let responsibleRule = rule && ruleDecision === rule.decision ? rule : undefined;
402
408
  // Check for redirection on the full command string.
403
409
  // Redirection always downgrades ALLOW to ASK_USER (it never upgrades).
404
- const hasTopLevelRedirectionDowngrade = this.shouldDowngradeForRedirection(command, allowRedirection, rule);
410
+ const hasTopLevelRedirectionDowngrade = await this.shouldDowngradeForRedirection(command, allowRedirection, rule);
405
411
  if (hasTopLevelRedirectionDowngrade) {
406
412
  if (aggregateDecision === PolicyDecision.ALLOW) {
407
413
  debugLogger.debug(`[PolicyEngine.check] Downgrading ALLOW to ASK_USER for redirected command: ${command}`);
@@ -470,7 +476,7 @@ export class PolicyEngine {
470
476
  }
471
477
  // Downgrade if sub-command has redirection or disallowed substitution
472
478
  if (subResult.decision === PolicyDecision.ALLOW &&
473
- (this.shouldDowngradeForRedirection(subCmd, subResult.rule?.allowRedirection ?? allowRedirection, subResult.rule) ||
479
+ ((await this.shouldDowngradeForRedirection(subCmd, subResult.rule?.allowRedirection ?? allowRedirection, subResult.rule)) ||
474
480
  this.shouldDowngradeForCommandSubstitution(subCmd, subResult.rule?.allowCommandSubstitution ??
475
481
  rule?.allowCommandSubstitution, subResult.rule))) {
476
482
  allSubCommandsExplicitlyAllowed = false;
@@ -533,6 +539,9 @@ export class PolicyEngine {
533
539
  * Returns the decision and the matching rule (if any).
534
540
  */
535
541
  async check(toolCall, serverName, toolAnnotations, subagent, skipHeuristics = false) {
542
+ return runWithCommandParseCache(() => this.checkInternal(toolCall, serverName, toolAnnotations, subagent, skipHeuristics));
543
+ }
544
+ async checkInternal(toolCall, serverName, toolAnnotations, subagent, skipHeuristics = false) {
536
545
  // Case 1: Metadata injection is the primary and safest way to identify an MCP server.
537
546
  // If we have explicit `_serverName` metadata (usually injected by tool-registry for active tools), use it.
538
547
  if (!serverName && isMcpToolAnnotation(toolAnnotations)) {