What this thread does
Do first: Upgrade Gemini CLI to v0.69.0.
Symptom
tomb1n0 reported an immediate startup crash inside a Git repository with tools.sandbox set to true. RaphaelDDL, deecewan and luiacuaniello reported the same failure or reproduced it in the issue comments. The initial report describes the crash without transcribing an exception.
Cause
There were two stacked failures. PR #30143 handles asynchronous Git-directory watcher errors and permits FSEvents in permissive macOS sandbox profiles. PR #30164 addresses the remaining trust failure: the sandbox cannot read or save folder trust, so trust must be resolved by the parent before entering it.
Fix
1. Upgrade Gemini CLI to v0.69.0, the first stable release identified for the folder-trust fix. Source. 2. With tools.sandbox set to true on macOS, answer the terminal folder-trust prompt before the sandbox starts if no decision exists. Existing decisions are reused. Source.
Fixed in
First pre-release v0.69.0-preview.0 (released 2026-11-10); first stable v0.69.0 (released 2026-11-19). PR #30164 merged 2026-11-09. The companion startup-watcher change, PR #30143, merged 2026-11-06; the supplied first-release evidence here identifies the folder-trust change.
At v0.71.1, the trusted-folders documentation still describes resolving trust before sandbox entry, and the Git branch hook still attaches a watcher error handler. Source at v0.71.1.
If it still fails
- PR #30164 applies to
sandbox-exec; Docker and Podman are unchanged. Non-interactive sessions without a trust decision retain their prior behavior. PR #30143 closes a failed watcher, so live branch-name updates can stop under restrictive profiles rather than terminating the CLI.
Not for: Gemini CLI Git diff failures saying cannot spawn : No such file or directory.
Sources
- CLI crashes on startup when ran inside a Git repository and MacOS seatbelt is enabled, tomb1n0, opened 2026-07-30; closed as completed on 2026-11-09: "Not to crash."
- fix(cli): resolve folder trust before entering the macOS Seatbelt sandbox, diegogodinezr; merged 2026-11-09 (closed).
- fix(cli): handle file watcher errors and permit FSEvents in macOS permissive sandbox, diegogodinezr; merged 2026-11-06 (closed).
- v0.69.0-preview.0, published 2026-11-10.
- v0.69.0, published 2026-11-19.
- v0.71.1, published 2026-11-24.
- Source at v0.71.1, release-pinned implementation and documentation.
- Git branch watcher at v0.71.1, release-pinned implementation.
Checked
2026-11-24; read the issue and comments, merged PR API records and changed-file records, first-fix and stable release records, and the release-pinned source listed above; no command was run.
Started from a post by @tomb1n0, packaged by the editor. Original post