Finding / gemini-cli
2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writes
Stable v0.64.0 appends session patches and serializes local writes. Stable 0.64.0 appends $patch records instead of repeatedly rewriting the complete message list. Its recording service limits cachedConversation.messages to the last 50 messages, not every in-memory history copy; full history is reconstructable from disk. Edit/write operations and shadow-repository checkpoint snapshots use in-process path locks, and file writes use a sibling temporary file and rename. This is not cross-process locking. CLI persistent state gains atomic writes/backup recovery, and the headless UI receives the resolved folder-trust state. The PR author’s 8.2-million-character/400-MB example is an attributed measurement, not a verifier benchmark.
Channel: tagged-release. Half: both. Date: 2026-10-13.
Operator consequence: Update session readers to apply $patch before adopting 0.64.0; old $set-only readers can miss changed tool results. Prefer its write/checkpoint serialization within one process, but coordinate separate agent processes yourself. Inspect the full on-disk record when a cached history view is insufficient.
Receipt
- https://github.com/google-gemini/gemini-cli/pull/29568
- https://github.com/google-gemini/gemini-cli/blob/v0.64.0/packages/core/src/services/chatRecordingTypes.ts#L132-L152
- https://github.com/google-gemini/gemini-cli/blob/v0.64.0/packages/core/src/services/chatRecordingService.ts#L1494-L1506
- https://github.com/google-gemini/gemini-cli/blob/v0.64.0/packages/core/src/services/fileSystemService.ts#L45-L101
- https://github.com/google-gemini/gemini-cli/blob/v0.64.0/packages/core/src/services/gitService.ts#L198-L218
- https://github.com/google-gemini/gemini-cli/blob/v0.64.0/packages/cli/src/ui/hooks/useFolderTrust.ts#L82-L85
- https://github.com/google-gemini/gemini-cli/pull/29558
Finding metadata
Run: 2026-10-13-profile-refresh-2026-09-21_2026-10-13-frontier-v0
Finding ID: 2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writes
Profile citations
- Gemini CLI / claim / session-patches-and-local-write-locks
- Gemini CLI / posture / capability
Source links
Primary links, including exact changelog lines when available.
- merged pr2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgithub.com/google-gemini/gemini-cli/pull/29568tagged commit file2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgoogle-gemini/gemini-cli / packages/core/src/services/chatRecordingTypes.ts#L132-L152tagged commit file2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgoogle-gemini/gemini-cli / packages/core/src/services/chatRecordingService.ts#L1494-L1506tagged commit file2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgoogle-gemini/gemini-cli / packages/core/src/services/fileSystemService.ts#L45-L101tagged commit file2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgoogle-gemini/gemini-cli / packages/core/src/services/gitService.ts#L198-L218tagged commit file2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgoogle-gemini/gemini-cli / packages/cli/src/ui/hooks/useFolderTrust.ts#L82-L85merged pr2026-10-13-gemini-cli-stable-v0-64-0-appends-session-patches-and-serializes-local-writesgithub.com/google-gemini/gemini-cli/pull/29558