Skip to content

The recent 'Untrusted Command Flags' security warning completely breaks YOLO mode and makes the CLI unproductive compared to Claude Code, as it constantly interrupts for basic file operations when using MCP servers. #29680

Open

Description

@alexanderpino

What happened?

The recent 'Untrusted Command Flags' security warning completely breaks YOLO mode and makes the CLI unproductive compared to Claude Code, as it constantly interrupts for basic file operations when using MCP servers.

[ACTION REQUIRED] 📎 PLEASE ATTACH THE EXPORTED CHAT HISTORY JSON FILE TO THIS ISSUE IF YOU FEEL COMFORTABLE SHARING IT.

What did you expect to happen?

just work as long as you're not doing anything destructive

Client information

  • CLI Version: 0.63.0
  • Git Commit: 5738466
  • Session ID: 41767c58-4960-4531-96ba-55581934c9a8
  • Operating System: win32 v24.14.1
  • Sandbox Environment: no sandbox
  • Model Version: gemini-3.1-pro-preview
  • Auth Type: oauth-personal
  • Memory Usage: 222.1 MB
  • Terminal Name: Unknown
  • Terminal Background: Objects are not valid as a React child #12456
  • Kitty Keyboard Protocol: Unsupported

Login information

No response

Anything else we need to know?

No response

Activity

  1. added
    status/need-triage
    on Oct 8, 2026
  2. mottergiuliano commented on Oct 14, 2026

    @mottergiuliano

    At least allow me to "approve for ever in the session" instead of just this specific execution...
    Sometimes the agent will go into executing a series of similar commands which require the approval and you just need to stay there pressing "1"

  3. zhoulujue commented on Nov 26, 2026

    @zhoulujue

    Opened #30268 to fix this (along with #30004 and #29682) so active, trusted --yolo / -y sessions are no longer interrupted by untrusted-flag or build-file prompts, while preserving all checks in non-YOLO modes, untrusted folders, disableYoloMode, and explicit policy rules.

    The PR is freshly rebased onto main, passed /gemini review with 0 issues, and is waiting on maintainer triage/label ahead of the automated 14-day PR close on Nov 28 — if you're still hitting this, a 👍 on #30268 or this issue helps signal impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions