google-gemini / google-gemini/gemini-cli
CLI crashes on startup when ran inside a Git repository and MacOS seatbelt is enabled
- Dominant language
- TypeScript
- Stars
- 107k
- Forks
- 14.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 45
Description
### What happened?
Running Gemini CLI with MacOS seatbelt enabled:
```
"tools": {
"sandbox": true
},
```
And then starting Gemini CLI in a folder that contains a Git repository instantly crashes the CLI.
Folder without a Git repository:
Initialising this folder with a Git repo:
### What did you expect to happen?
Not to crash.
### Client information
Client Information
Run `gemini` to enter the interactive CLI, then run the `/about` command.
```console
> /about
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.53.0 │
│ Git Commit decc0b46c │
│ Model Auto │
│ Sandbox sandbox-exec (permissive-open) │
│ OS darwin │
│ Auth Method Signed in with Google () │
│ Tier Gemini Code Assist Standard │
│ GCP Project │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
### Login information
Signed with OAuth using a Gemini Code Assist standard License.
`GOOGLE_CLOUD_PROJECT` Environment variable is set.
### Anything else we need to know?
_No response_
Contributor guide
Research direction
Reproduce the crash by enabling "tools": { "sandbox": true } and starting Gemini CLI inside a Git repository on macOS; compare it with a folder without a repository. Start from CLI startup and the `/about` environment details, then verify that startup completes normally under the same sandbox setting and Git context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, macos, typescript
- Domain
- cli, operating-systems, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100