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

Cannot cleanly exit OOBE flow if GOOGLE_CLOUD_PROJECT is not set for a Workspace account

Open clocky opened this issue 1 year ago • 5 comments

What happened?

If you start the first time run flow, and attempt to sign in with a Workspace account without the GOOGLE_CLOUD_PROJECT environment variable set, you cannot cleanly exit the tool in order to go back to the CLI and set it.

Steps:

  1. Run npx https://github.com/google-gemini/gemini-cli
  2. Select "Login with Google"
  3. Continue sign in on browser; use a Workspace account without GOOGLE_CLOUD_PROJECT variable being set locally.
  4. Terminal shows "Failed to login. Message: This account requires setting the GOOGLE_CLOUD_PROJECT env var. See https://goo.gle/gemini-cli-auth-docs#workspace-gca"

Hitting Esc to back out, just attempts to re-authenticate. Multiple presses of Ctrl-C will back out eventually, but no on-screen feedback is given.

What did you expect to happen?

Esc to exit Gemini during the set up flow; or Ctrl-C gives feedback that the tool is exiting.

Client information

(Unable to show; first time setup not complete.)

$ gemini /about
# paste output here

Login information

Google Workspace account (google.com domain).

Anything else we need to know?

No response

clocky avatar Jun 30 '25 19:06 clocky

Thanks @clocky , looking into it

eddie-santos avatar Jun 30 '25 20:06 eddie-santos

Found possible duplicate issues:

  • #2354: (0.9144679580470315)

gsquared94 avatar Jul 30 '25 06:07 gsquared94

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]

Found possible duplicate issues:

  • #8605

If you believe this is not a duplicate, please remove the status/possible-duplicate label.

gemini-cli[bot] avatar Dec 04 '25 19:12 gemini-cli[bot]

Please reopen if you still encounter the issue with latest gemini-cli

cocosheng-g avatar May 04 '26 14:05 cocosheng-g