Unable to quit the app when api key not set
What happened?
- unset GEMINI_API_KEY
- launch app
- auth dialog: choose Use Gemini API Key
- See message "GEMINI_API_KEY environment variable not found. Add that to your environment and try again"
- Hit ^C - app does not quit
- Hit ESC - app does not exit
- Hit ^Z - app does not suspend
What did you expect to happen?
Expect to be able to quit the app and set an API key to continue.
Client information
Client Information
Run gemini to enter the interactive CLI, then run the /about command.
> /about
╭────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.6.0-nightly │
│ Git Commit f656f143 │
│ Model gemini-2.5-pro │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method gemini-api-key │
│ │
╰────────────────────────────────────────╯
Login information
No response
Anything else we need to know?
No response
The application becomes unresponsive and cannot be quit when an API key is not set during the authentication flow. This is a significant bug. Requesting client information as it is missing, and lowering priority until provided.
updated with client information
@bbiggs you should try ^D or ^C twice, yep a little bit annoying
Here's reference on that https://google-gemini.github.io/gemini-cli/docs/keyboard-shortcuts.html
^C twice also does not work.
Closing as we will track work on this in #8648.