Skip to content

Cannot press control-C to exit when signing in with autho #11945

@jacob314

Description

@jacob314

What happened?

Accidentally signed in with an auth method I didn't want to.

I closed the browser page as I didn't want to auth only to realize my terminal was crashed with no ability to press ctrl-C until I did

Repro steps:

gemini

Code Assist login required.
Attempting to open authentication page in your browser.
Otherwise navigate to:

https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A56034%2Foauth2callback&access_type=offline<redacted>.apps.googleusercontent.com


Waiting for authentication...

### What did you expect to happen?

Expect to press ctrl-C and stop the app even before Gemini CLI is interactive. We should duplicate techniques used to make sure Gemini CLI closes when in non-interactive mode to make this work.

### Client information

<details>
<summary>Client Information</summary>

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

```console
> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea/coreIssues related to User Interface, OS Support, Core Functionalitykind/bugpriority/p2Important but can be addressed in a future release.status/bot-triagedstatus/need-triageIssues that need to be triaged by the triage automation.

    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