Skip to content

Auth consent is broken for non-interactive mode #19677

@ehedlund

Description

@ehedlund

What happened?

While logged out, gemini -p "something" throws Interactive consent could not be obtained

What did you expect to happen?

Should print Code Assist login required. Opening authentication page in your browser. Do you want to continue? [Y/n]:

Client information

Client Information

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

> /about
│ CLI Version                              0.30.0-nightly.20260210.a2174751d-git.ce84b3c                               │
│ Git Commit                               ce84b3c                                                                     │
│ Model                                    gemini-3-flash-preview                                                      │
│ Sandbox                                  no sandbox                                                                  │
│ OS                                       darwin                                                                      │
│ Auth Method                              Logged in with Google                                 │
│ Tier                                     Gemini Code Assist Enterprise                                               │
│ GCP Project                              shared-g3-gemini-quota  

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationstatus/need-triageIssues that need to be triaged by the triage automation.

Type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions