Skip to content

Plan Mode still halts YOLO / non-interactive runs while waiting for user agreement #28913

Description

@huiwengoh

What happened?

This is to be a re-report of the bug from #26004, which was closed as stale without a resolution.

In non-interactive execution (for example gemini -p "..." -y), the agent can enter Plan Mode, but the Plan Mode prompt instructs it to stop and wait for informal user agreement before drafting/exiting the plan.

"You MUST NOT proceed to Step 3 (Draft) or Step 4 (Review & Approval) in the same turn as your initial strategy proposal. You MUST wait for user feedback..."

Because there is no user turn in non-interactive mode, the model can emit a text-only response asking for confirmation and terminate the run instead of calling exit_plan_mode and proceeding with implementation.

Relevant history

There are a few related changes that might explain how we got here:

There was actually discussion on #24423 about non-interactive mode. It was suggested that this would not block because ask_user is denied in non-interactive sessions, but the issue is that the blocking behavior does not require ask_user - a normal text response with no tool call is sufficient to terminate a non-interactive run.

What did you expect to happen?

In non-interactive mode, Plan Mode should remain autonomous:

  1. Enter Plan Mode
  2. Research / determine a strategy
  3. Draft the plan without waiting for user feedback
  4. Call exit_plan_mode
  5. Continue with implementation

Client information

CLI Version    0.55.1
Model          gemini-3.5-flash (thinkingLevel: HIGH)
OS             linux
Auth Method    gemini-api-key

Login information

No response

Anything else we need to know?

No response

Activity

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

    area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationeffort/small1 day or less: trivial logic, UI adjustments, docskind/bugpriority/p1Important and should be addressed in the near term.status/bot-triagedstatus/possible-duplicate

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions