Skip to content

Starting new project folder with sandbox and checkpointing resulting in git error #14646

@TomJunker

Description

@TomJunker

What happened?

When i start gemini cli for the very first time in a new project folder the following error occurs:

=============================== 
This is an unexpected error. Please file a bug report using the /bug tool.
CRITICAL: Unhandled Promise Rejection!
====================================
Reason: Error: Failed to initialize checkpointing: Author identity unknown

*** Please tell me who you are.

Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <node@sandbox-0.19.4-6>) not allowed
. Please check that Git is working properly or disable checkpointing.
Stack trace:
Error: Failed to initialize checkpointing: Author identity unknown

*** Please tell me who you are.

Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <node@sandbox-0.19.4-6>) not allowed
. Please check that Git is working properly or disable checkpointing.
  at GitService.initialize (file:///usr/local/share/npm-global/lib/node_modules/@google/gemini-cli-core/dist/src/services/gitService.js:30:19)
  at async GitService.initialize (file:///usr/local/share/npm-global/lib/node_modules/@google/gemini-cli-core/dist/src/config/config.js:972:13)
  at async Config.initialize (file:///usr/local/share/npm-global/lib/node_modules/@google/gemini-cli-core/dist/src/config/config.js:402:13)
  at async Config.initialize (file:///usr/local/share/npm-global/lib/node_modules/@google/gemini-cli/dist/src/ui/AppContainer.js:169:13)
  • Disabling one of both settings (sandbox or checkpointing) the error disappears.
  • When starting with sandbox and checkpointing a new folder in ~/.gemini/history/ will be created as intended (even with error).
  • Both git settings (user.name and user.email) are set properly in host system. However, .gitconfig in ~/.gemini/history/<...>/ will be different:
[user]
  name = Gemini CLI
  email = gemini-cli@google.com
[commit]
  gpgsign = false

What did you expect to happen?

Starting without the error described. Starting with --debug doesn't show more information

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
About Gemini CLI                                                                                                                                                            
CLI Version                                                 0.19.4                                                                                                          
Git Commit                                                  54c90d7                    
Model                                                       auto                                                                                                            
Sandbox                                                     sandbox-0.19.4-6                                                                                                
OS                                                          linux                                                                                                           
Auth Method                                                 OAuth                                                                                                           
User Email                                                  XXXXXXXXXXXXXX@gmail.com   

Login information

Google's OAuth.

Anything else we need to know?

settings.json:

{
    "security": {
        "auth": {
            "selectedType": "oauth-personal"
        }
    },
    "general": {
        "checkpointing": {
            "enabled": true
        },
        "vimMode": false,
        "preferredEditor": "code",
        "sessionRetention": {
            "enabled": true,
            "maxAge": "365d",
            "maxCount": 100
        }
    },
    "tools": {
        "sandbox": "docker",
        "exclude": [
            "run_shell_command"
        ],
        "showStatusInTitle": true,
        "hideBanner": true,
        "showMemoryUsage": true,
        "showLineNumbers": true,
        "showCitations": true,
        "useFullWidth": true
    },
    "ui": {
        "theme": "Dracula",
        "hideBanner": false,
        "hideTips": false
    },
    "output": {
        "format": "text"
    },
    "telemetry": {
        "enabled": false
    },
    "model": {
        "name": "auto",
        "maxSessionTurns": -1,
        "summarizeToolOutput": {
            "run_shell_command": {
                "tokenBudget": 100
            }
        }
    },
    "context": {
        "fileName": [
            "CONTEXT.md",
            "GEMINI.md"
        ],
        "includeDirectories": [
            "."
        ],
        "loadFromIncludeDirectories": true,
        "fileFiltering": {
            "respectGitIgnore": true,
            "disableFuzzySearch": true
        }
    },
    "advanced": {
        "excludedEnvVars": [
            "DEBUG",
            "DEBUG_MODE",
            "NODE_ENV"
        ]
    }
}

Metadata

Metadata

Labels

area/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmthelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p3Backlog - a good idea but not currently a priority.type/bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions