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"
]
}
}
What happened?
When i start gemini cli for the very first time in a new project folder the following error occurs:
What did you expect to happen?
Starting without the error described. Starting with --debug doesn't show more information
Client information
Client Information
Run
geminito enter the interactive CLI, then run the/aboutcommand.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" ] } }