Skip to content

both --yolo and --approval-mode yolo not worl #13561

@marswong

Description

@marswong

What happened?

command to repro:

gemini --model gemini-3-pro-preview --output-format stream-json --approval-mode yolo --prompt "build a pretty hello world website"

gemini --yolo --model gemini-3-pro-preview --output-format stream-json --prompt "build a pretty hello world website"

output:

YOLO mode is enabled. All tool calls will be automatically approved.

{"type":"message","timestamp":"2025-11-21T07:24:59.689Z","role":"assistant","content":"  Verify the build.\n\nDoes this plan sound good to you?","delta":true}

It always asked my Does this plan sound good to you?

What did you expect to happen?

Gemini should go ahead and build the website for me, instead of asking me for approval.

Client information

Client Information

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

> /about

│ About Gemini CLI                                                                                                                                                               │
│                                                                                                                                                                                │
│ CLI Version                                                  0.17.0                                                                                                            │
│ Git Commit                                                   7c684e36f                                                                                                         │
│ Model                                                        auto                                                                                                              │
│ Sandbox                                                      no sandbox                                                                                                        │
│ OS                                                           linux                                                                                                             │
│ Auth Method                                                  gemini-api-key                                                                                                    │

Login information

export GEMINI_API_KEY=""

Anything else we need to know?

No response

Metadata

Metadata

Labels

area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p2Important but can be addressed in a future release.type/bug

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions