@google/gemini-cli-core 0.69.0-preview.0 → 0.70.0-nightly.20261112.gaeb6c04b0

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.
@@ -18,6 +18,28 @@ 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.68.0 - 2026-11-10
22
+
23
+ - **Extension Validation & Install Safety:** Added an extension validation
24
+ command with evaluation tests and serialized concurrent extension installs
25
+ with per-extension locking
26
+ ([#29980](https://github.com/google-gemini/gemini-cli/pull/29980) by
27
+ @tadipavan, [#30039](https://github.com/google-gemini/gemini-cli/pull/30039)
28
+ by @diegogodinezr).
29
+ - **Rate Limit Visibility & Model State:** Surfaced 429 rate limit cool-down
30
+ timers in the loading indicator and preserved selected model state across
31
+ transient fallback, cancel, and rewind
32
+ ([#30012](https://github.com/google-gemini/gemini-cli/pull/30012) by
33
+ @urielefrenvirtusa,
34
+ [#30059](https://github.com/google-gemini/gemini-cli/pull/30059) by
35
+ @villahernandez-coder).
36
+ - **Hooks & Container Sandboxing:** Added SubagentStop hook event mapping with
37
+ merged definitions and supplied `--userns=keep-id` for rootless Podman
38
+ sandboxes ([#30111](https://github.com/google-gemini/gemini-cli/pull/30111) by
39
+ @diegogodinezr,
40
+ [#30118](https://github.com/google-gemini/gemini-cli/pull/30118) by
41
+ @diegogodinezr).
42
+
21
43
  ## Announcements: v0.67.0 - 2026-11-04
22
44
 
23
45
  - **Model Discovery Command:** Added a new `models` command and `--list-models`
@@ -1,6 +1,6 @@
1
- # Latest stable release: v0.67.0
1
+ # Latest stable release: v0.68.0
2
2
 
3
- Released: November 4, 2026
3
+ Released: November 10, 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,101 +11,109 @@ npm install -g @google/gemini-cli
11
11
 
12
12
  ## Highlights
13
13
 
14
- - **Model Discovery Command & Flag**: Added a new `models` command and
15
- `--list-models` flag for model discovery directly from the CLI.
16
- - **Container Sandbox IDE Bridging**: Bridged the IDE companion into container
17
- sandboxes over exec stdio to improve IDE integration in containerized
18
- environments.
19
- - **Cancellation & Signal Resilience**: Improved termination signal and
20
- cancellation handling by stopping continuation stream processing, halting
21
- auto-nudges, and preventing subsequent tool execution in non-interactive mode.
22
- - **Terminal Rendering & Unicode Support**: Refined character width calculation
23
- for terminals rendering ambiguous-width characters and corrected display width
24
- for Thai and Lao SARA AM scripts.
25
- - **Filesystem & Security Safeguards**: Hardened atomic file writing to respect
26
- read-only files and hard links, resolved relative file paths against the
27
- active IDE workspace root, scoped untrusted flag checks to external output,
28
- and included MCP server and tool metadata in permission requests.
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.
29
27
 
30
28
  ## What's Changed
31
29
 
32
- - Changelog for v0.65.0 by @gemini-cli-robot in
33
- [#29853](https://github.com/google-gemini/gemini-cli/pull/29853)
34
- - chore(release): bump version to 0.67.0-nightly.20261020.gb041de017 by
35
- @gemini-cli-robot in
36
- [#29854](https://github.com/google-gemini/gemini-cli/pull/29854)
37
- - Changelog for v0.66.0-preview.0 by @gemini-cli-robot in
38
- [#29852](https://github.com/google-gemini/gemini-cli/pull/29852)
39
- - feat(cli): bridge the IDE companion into container sandboxes over exec stdio
40
- by @elberthc-byte in
41
- [#29858](https://github.com/google-gemini/gemini-cli/pull/29858)
42
- - fix(core): prevent duplicate agent loading when workspace is home directory
43
- (#27692) by @urielefrenvirtusa in
44
- [#29847](https://github.com/google-gemini/gemini-cli/pull/29847)
45
- - fix(ide): exclude IDE settings and GEMINI.md files from open file con text by
46
- @villahernandez-coder in
47
- [#29848](https://github.com/google-gemini/gemini-cli/pull/29848)
48
- - fix(core): scope untrusted flag checks to external output and remember
49
- approved flags by @luisfelipe-alt in
50
- [#29833](https://github.com/google-gemini/gemini-cli/pull/29833)
51
- - fix(a2a-server): mount express.json() before A2A SDK route registration by
52
- @jesussamuel-byte in
53
- [#29850](https://github.com/google-gemini/gemini-cli/pull/29850)
54
- - fix(core): adhere to RFC 9110 token rules when splitting custom headers by
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
55
41
  @diegogodinezr in
56
- [#29865](https://github.com/google-gemini/gemini-cli/pull/29865)
57
- - fix(core): respect read-only files and hard links in atomic writeTextFile by
58
- @elberthc-byte in
59
- [#29749](https://github.com/google-gemini/gemini-cli/pull/29749)
60
- - fix(a2a-server,core): preserve extended token usage metadata and align
61
- per-turn reporting by @jvargassanchez-dot in
62
- [#29834](https://github.com/google-gemini/gemini-cli/pull/29834)
63
- - fix(core): ensure all model turns with function calls receive thought
64
- signatures by @amelidev in
65
- [#29828](https://github.com/google-gemini/gemini-cli/pull/29828)
66
- - fix(cli): handle termination signals and prevent tool execution after
67
- cancellation in non-interactive mode by @urielefrenvirtusa in
68
- [#29849](https://github.com/google-gemini/gemini-cli/pull/29849)
69
- - fix(cli): preserve ${VAR} placeholders during deprecated settings migration by
70
- @villahernandez-coder in
71
- [#29867](https://github.com/google-gemini/gemini-cli/pull/29867)
72
- - fix(cli): stop continuation stream processing and auto-nudge after request
73
- cancellation by @jesussamuel-byte in
74
- [#29868](https://github.com/google-gemini/gemini-cli/pull/29868)
75
- - fix(cli): correct Thai and Lao SARA AM display width by @elberthc-byte in
76
- [#29883](https://github.com/google-gemini/gemini-cli/pull/29883)
77
- - fix(core): resolve relative file paths against active IDE workspace root by
78
- @villahernandez-coder in
79
- [#29838](https://github.com/google-gemini/gemini-cli/pull/29838)
80
- - feat(cli): add models command and --list-models flag for model discovery by
81
- @urielefrenvirtusa in
82
- [#29880](https://github.com/google-gemini/gemini-cli/pull/29880)
83
- - fix(cli): convert Claude hook timeout from seconds to milliseconds during
84
- migration by @villahernandez-coder in
85
- [#29899](https://github.com/google-gemini/gemini-cli/pull/29899)
86
- - fix(core): classify project spending cap errors as terminal quota errors by
87
- @jesussamuel-byte in
88
- [#29961](https://github.com/google-gemini/gemini-cli/pull/29961)
89
- - fix(acp): include MCP server and tool metadata in permission requests by
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
90
72
  @duvanka-prasad in
91
- [#29910](https://github.com/google-gemini/gemini-cli/pull/29910)
92
- - fix(cli): prevent parent command name insertion on /chat list autocomplete by
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
93
83
  @urielefrenvirtusa in
94
- [#29967](https://github.com/google-gemini/gemini-cli/pull/29967)
95
- - fix(cli): validate finite numbers in numeric settings editor by @diegogodinezr
96
- in [#29968](https://github.com/google-gemini/gemini-cli/pull/29968)
97
- - fix(core): allow trusted system paths on Android (Termux) for ripgrep
98
- resolution (#21836) by @amelidev in
99
- [#29884](https://github.com/google-gemini/gemini-cli/pull/29884)
100
- - fix(core): normalize CRLF line endings before diffing in getDiffContextSnippet
101
- by @jesussamuel-byte in
102
- [#29966](https://github.com/google-gemini/gemini-cli/pull/29966)
103
- - fix(cli): handle terminals that render ambiguous-width characters as wide by
104
- @elberthc-byte in
105
- [#29905](https://github.com/google-gemini/gemini-cli/pull/29905)
106
- - fix(cli): prevent duplicate history and double telemetry in confirm_action
107
- flow by @duvanka-prasad in
108
- [#29974](https://github.com/google-gemini/gemini-cli/pull/29974)
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
96
+ @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
111
+ @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)
109
117
 
110
118
  **Full Changelog**:
111
- https://github.com/google-gemini/gemini-cli/compare/v0.66.0...v0.67.0
119
+ https://github.com/google-gemini/gemini-cli/compare/v0.67.0...v0.68.0
@@ -1,6 +1,6 @@
1
- # Preview release: v0.68.0-preview.0
1
+ # Preview release: v0.69.0-preview.0
2
2
 
3
- Released: November 4, 2026
3
+ Released: November 10, 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,115 +13,127 @@ npm install -g @google/gemini-cli@preview
13
13
 
14
14
  ## Highlights
15
15
 
16
- - **Extension Validation & Installation Reliability**: Added an extension
17
- validation command, serialized concurrent extension installations with a
18
- per-extension lock, and handled stream interruptions during extension
19
- downloads.
20
- - **Model Selection & Dynamic Resolution**: Preserved user-selected models
21
- across transient fallbacks, cancellations, and rewind operations, ensured
22
- explicit Gemini models are retained during dynamic resolution, and refined
23
- model listings when dynamic configuration is active.
24
- - **UI Responsiveness & Rate Limit Feedback**: Surfaced 429 rate limit cooldown
25
- and countdown status directly in the loading indicator, bounded history
26
- re-renders when terminal width changes, and resolved truncation and toggling
27
- issues in expandable views.
28
- - **Environment & Platform Compatibility**: Enabled rootless Podman execution
29
- with user namespace mapping, honored git exclude configurations in shadow
30
- repositories, and improved Windows filesystem compatibility across path checks
31
- and process lookups.
32
- - **Hooks & Agent Lifecycle Events**: Added support for mapping SubagentStop
33
- hook events, merged hook definitions cleanly, and ensured history replays
34
- complete before responding to ACP session load requests.
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.
35
37
 
36
38
  ## What's Changed
37
39
 
38
- - Changelog for v0.67.0-preview.0 by @gemini-cli-robot in
39
- [#29990](https://github.com/google-gemini/gemini-cli/pull/29990)
40
- - Changelog for v0.66.0 by @gemini-cli-robot in
41
- [#29992](https://github.com/google-gemini/gemini-cli/pull/29992)
42
- - docs(readme): clarify Gemini CLI scope, limitations, and tool landscape by
43
- @LyalinDotCom in
44
- [#29995](https://github.com/google-gemini/gemini-cli/pull/29995)
45
- - fix(cli): bound inline history re-render after terminal width changes by
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
46
44
  @jvargassanchez-dot in
47
- [#29904](https://github.com/google-gemini/gemini-cli/pull/29904)
48
- - fix(ui): handle surrogate pairs when truncating in sanitizeForDisplay by
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
50
+ @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
49
53
  @diegogodinezr in
50
- [#29993](https://github.com/google-gemini/gemini-cli/pull/29993)
51
- - fix(core): make isWithinRoot case-insensitive on Windows by @duvanka-prasad in
52
- [#29999](https://github.com/google-gemini/gemini-cli/pull/29999)
53
- - fix(core): recognize dotted Gemini 3 models in
54
- supportsMultimodalFunctionResponse by @jesussamuel-byte in
55
- [#29982](https://github.com/google-gemini/gemini-cli/pull/29982)
56
- - feat(cli): add extension validation command and evaluation tests by @tadipavan
57
- in [#29980](https://github.com/google-gemini/gemini-cli/pull/29980)
58
- - fix(core): normalize leading slashes in file search query for @ autocomplete
59
- by @urielefrenvirtusa in
60
- [#29987](https://github.com/google-gemini/gemini-cli/pull/29987)
61
- - fix(vscode-ide-companion): register all extension disposables in
62
- context.subscriptions by @jvargassanchez-dot in
63
- [#29994](https://github.com/google-gemini/gemini-cli/pull/29994)
64
- - fix(core): list Auto in /model when dynamicModelConfiguration is enabled and
65
- preview access is disabled by @villahernandez-coder in
66
- [#29998](https://github.com/google-gemini/gemini-cli/pull/29998)
67
- - fix(core,cli): fix instances of incorrect \n escape behavior by @ugorla-dev in
68
- [#29989](https://github.com/google-gemini/gemini-cli/pull/29989)
69
- - fix(core): use PowerShell CIM fallback for Windows IDE process lookup by
70
- @tadipavan in [#30006](https://github.com/google-gemini/gemini-cli/pull/30006)
71
- - fix(cli): surface 429 rate limit cool-down and countdown in loading indicator
72
- by @urielefrenvirtusa in
73
- [#30012](https://github.com/google-gemini/gemini-cli/pull/30012)
74
- - fix(cli): anchor .git suffix removal to end of repo URL by @diegogodinezr in
75
- [#30013](https://github.com/google-gemini/gemini-cli/pull/30013)
76
- - fix(ci,sdk): run SDK tests in PR CI and fix AgentLoopContext mock in
77
- session.test.ts by @duvanka-prasad in
78
- [#30023](https://github.com/google-gemini/gemini-cli/pull/30023)
79
- - fix(core): prevent $-pattern corruption in LLM prompt templates by
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
80
64
  @duvanka-prasad in
81
- [#30035](https://github.com/google-gemini/gemini-cli/pull/30035)
82
- - fix(cli): Fixes unexpected truncation and toggle behavior in Expandab… by
83
- @tadipavan in [#29965](https://github.com/google-gemini/gemini-cli/pull/29965)
84
- - refactor(cli): decouple ToolGroupMessage from internal type guards and payload
85
- structures by @ugorla-dev in
86
- [#30041](https://github.com/google-gemini/gemini-cli/pull/30041)
87
- - fix(core): gate background log stream initialization on execution lifecycle
88
- transition by @jesussamuel-byte in
89
- [#30031](https://github.com/google-gemini/gemini-cli/pull/30031)
90
- - fix(core): honor .git/info/exclude and core.excludesFile in shadow repo by
91
- @urielefrenvirtusa in
92
- [#30034](https://github.com/google-gemini/gemini-cli/pull/30034)
93
- - fix(core): flush pending SSE event buffer at stream EOF in CodeAssistServer by
94
- @tadipavan in [#30050](https://github.com/google-gemini/gemini-cli/pull/30050)
95
- - fix(core): handle Windows libuv zero-device stat reporting in
96
- readSecureFileBuffer by @jvargassanchez-dot in
97
- [#30044](https://github.com/google-gemini/gemini-cli/pull/30044)
98
- - fix(cli): serialize concurrent extension installs with per-extension lock
99
- (#29036) by @diegogodinezr in
100
- [#30039](https://github.com/google-gemini/gemini-cli/pull/30039)
101
- - fix(core): resolve symlinked paths canonically in GlobTool by @ugorla-dev in
102
- [#30042](https://github.com/google-gemini/gemini-cli/pull/30042)
103
- - fix(cli): add missing active and focus keys to custom theme ui schema by
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
104
70
  @villahernandez-coder in
105
- [#30032](https://github.com/google-gemini/gemini-cli/pull/30032)
106
- - fix(core,cli): preserve selected model across transient fallback, cancel, and
107
- rewind by @villahernandez-coder in
108
- [#30059](https://github.com/google-gemini/gemini-cli/pull/30059)
109
- - fix(core): prevent interrupted Whisper model downloads from being treated as
110
- installed by @tadipavan in
111
- [#30058](https://github.com/google-gemini/gemini-cli/pull/30058)
112
- - fix(cli): handle stream failures during extension release downloads by
113
- @duvanka-prasad in
114
- [#30100](https://github.com/google-gemini/gemini-cli/pull/30100)
115
- - fix(core): preserve explicit gemini-2.5-flash model in dynamic model
116
- resolution by @jesussamuel-byte in
117
- [#30057](https://github.com/google-gemini/gemini-cli/pull/30057)
118
- - fix(hooks): support SubagentStop event mapping and merge hook definitions by
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
91
+ 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
97
+ @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
119
118
  @diegogodinezr in
120
- [#30111](https://github.com/google-gemini/gemini-cli/pull/30111)
121
- - fix(cli): await history replay before responding to ACP session/load by
122
- @tadipavan in [#30112](https://github.com/google-gemini/gemini-cli/pull/30112)
123
- - fix(sandbox): supply --userns=keep-id for rootless podman by @diegogodinezr in
124
- [#30118](https://github.com/google-gemini/gemini-cli/pull/30118)
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
124
+ @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
127
+ @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)
125
137
 
126
138
  **Full Changelog**:
127
- https://github.com/google-gemini/gemini-cli/compare/v0.67.0-preview.0...v0.68.0-preview.0
139
+ https://github.com/google-gemini/gemini-cli/compare/v0.68.0-preview.0...v0.69.0-preview.0
@@ -135,6 +135,28 @@ function validateHistory(history) {
135
135
  }
136
136
  }
137
137
  }
138
+ function isToolResponseTurnAt(turns, idx) {
139
+ if (turns[idx]?.content?.role !== 'user') {
140
+ return false;
141
+ }
142
+ for (let i = idx; i >= 0; i--) {
143
+ const content = turns[i]?.content;
144
+ if (!content) {
145
+ return false;
146
+ }
147
+ if (content.role === 'user') {
148
+ if (content.parts?.some((part) => !!part?.functionResponse)) {
149
+ return true;
150
+ }
151
+ continue;
152
+ }
153
+ if (isSyntheticBinaryAckTurn(content)) {
154
+ continue;
155
+ }
156
+ return false;
157
+ }
158
+ return false;
159
+ }
138
160
  /**
139
161
  * Extracts the curated (valid) history from a comprehensive history.
140
162
  *
@@ -168,6 +190,16 @@ function extractCuratedHistory(comprehensiveHistory) {
168
190
  if (isValid) {
169
191
  curatedHistory.push(...modelOutput);
170
192
  }
193
+ else if (!modelOutput.every((turn) => isSyntheticBinaryAckTurn(turn.content)) &&
194
+ isToolResponseTurnAt(curatedHistory, curatedHistory.length - 1)) {
195
+ curatedHistory.push({
196
+ ...modelOutput[0],
197
+ content: {
198
+ ...modelOutput[0].content,
199
+ parts: [{ text: INTERRUPTED_RESPONSE_PLACEHOLDER }],
200
+ },
201
+ });
202
+ }
171
203
  }
172
204
  }
173
205
  return curatedHistory;
@@ -671,15 +703,15 @@ export class GeminiChat {
671
703
  */
672
704
  closeUnansweredToolResponseTurn() {
673
705
  const turns = this.agentHistory.get();
674
- let targetTurn = turns[turns.length - 1];
706
+ let targetIdx = turns.length - 1;
675
707
  let hadEmptyTrailingModelTurn = false;
676
- if (targetTurn?.content.role === 'model' &&
677
- !hasNonThoughtContent(targetTurn.content)) {
708
+ if (turns[targetIdx]?.content?.role === 'model' &&
709
+ !isSyntheticBinaryAckTurn(turns[targetIdx].content) &&
710
+ !hasNonThoughtContent(turns[targetIdx].content)) {
678
711
  hadEmptyTrailingModelTurn = true;
679
- targetTurn = turns[turns.length - 2];
712
+ targetIdx = turns.length - 2;
680
713
  }
681
- if (targetTurn?.content.role !== 'user' ||
682
- !targetTurn.content.parts?.some((part) => !!part.functionResponse)) {
714
+ if (!isToolResponseTurnAt(turns, targetIdx)) {
683
715
  return;
684
716
  }
685
717
  if (hadEmptyTrailingModelTurn) {
@@ -986,6 +1018,12 @@ export class GeminiChat {
986
1018
  * Adds a new entry to the chat history.
987
1019
  */
988
1020
  addHistory(content) {
1021
+ const incomingContent = 'id' in content && 'content' in content ? content.content : content;
1022
+ if (incomingContent.role === 'user' &&
1023
+ !(incomingContent.parts ?? []).some((part) => !!part?.functionResponse)) {
1024
+ this.closeUnansweredToolCallsTurn();
1025
+ this.closeUnansweredToolResponseTurn();
1026
+ }
989
1027
  if ('id' in content && 'content' in content) {
990
1028
  this.agentHistory.push(content);
991
1029
  }
@@ -1560,10 +1598,18 @@ export function stripToolCallIdPrefixes(contents) {
1560
1598
  // Filter out truly empty parts that have only text: '' and no payload
1561
1599
  .filter((part) => !isEmptyTextPart(part));
1562
1600
  if (parts.length === 0) {
1563
- const prev = stripped.at(-1);
1564
- if (content.role === 'model' &&
1565
- prev?.role === 'user' &&
1566
- prev.parts?.some((part) => !!part.functionResponse)) {
1601
+ let hasToolResponseUserTurn = false;
1602
+ for (let i = stripped.length - 1; i >= 0; i--) {
1603
+ const prev = stripped[i];
1604
+ if (prev.role !== 'user') {
1605
+ break;
1606
+ }
1607
+ if (prev.parts?.some((part) => !!part.functionResponse)) {
1608
+ hasToolResponseUserTurn = true;
1609
+ break;
1610
+ }
1611
+ }
1612
+ if (content.role === 'model' && hasToolResponseUserTurn) {
1567
1613
  stripped.push({
1568
1614
  ...content,
1569
1615
  parts: [{ text: INTERRUPTED_RESPONSE_PLACEHOLDER }],
@@ -1632,19 +1678,15 @@ export function stripThoughts(history) {
1632
1678
  continue;
1633
1679
  }
1634
1680
  const hasThought = turn.content.parts.some((p) => p && p.thought);
1635
- if (!hasThought) {
1636
- if (turn.content.parts.length > 0) {
1637
- result.push(turn);
1638
- }
1681
+ if (!hasThought && hasNonThoughtContent(turn.content)) {
1682
+ result.push(turn);
1639
1683
  continue;
1640
1684
  }
1641
- const nonThoughtParts = turn.content.parts.filter((p) => p && !p.thought);
1685
+ const nonThoughtParts = turn.content.parts.filter((p) => p && !p.thought && !isEmptyTextPart(p));
1642
1686
  if (nonThoughtParts.length === 0) {
1643
- const prev = result.at(-1);
1644
1687
  if (turn.content.role === 'model' &&
1645
1688
  !isSyntheticBinaryAckTurn(turn.content) &&
1646
- prev?.content.role === 'user' &&
1647
- (prev.content.parts ?? []).some((p) => !!p?.functionResponse)) {
1689
+ isToolResponseTurnAt(result, result.length - 1)) {
1648
1690
  result.push({
1649
1691
  ...turn,
1650
1692
  content: {