gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Command exited with code: 1

Open DavidPluxia opened this issue 1 year ago • 2 comments

What happened?

All shells suddenly exit with this code. Only restarting the terminal help.

What did you expect to happen?

The Shell commands working

Client information

  • CLI Version: 0.19.0-nightly.20251121.5982abeff
  • Git Commit: 5982abeff
  • Session ID: 2072b06c-fdf1-482f-bff3-97f77f6af370
  • Operating System: darwin v24.1.0
  • Sandbox Environment: no sandbox
  • Model Version: auto
  • Memory Usage: 475.9 MB
  • IDE Client: Antigravity

Login information

No response

Anything else we need to know?

No response

DavidPluxia avatar Nov 21 '25 14:11 DavidPluxia

Thanks for reporting this. What's the behavior exactly? At first GCLI is calling the shell tool and it works and suddenly it stops working until you restart and when you do the agent calls shell and it works again? If you could send us a snippet from the chat when this happens that would help.

scidomino avatar Nov 24 '25 20:11 scidomino

@scidomino I observed a similar problem on an Alpine distro running in WSL. The CLI was exiting with error code 1 silently without any previous warning. The version of client is 0.21.1, no sandbox, and using model auto (gemini 3). Meanwhile, using model auto (gemini 2.5) does not prevent the CLI to panic. I used the following input:

fix cargo check errors

and the CLI, after requesting a confirmation to run cargo check command, failed silently.

Interestingly, the CLI appears to haved crashed over a previous conversation, but I have no clue on their connections.

kkdaisuki avatar Dec 17 '25 17:12 kkdaisuki