Skip to content

exit_plan_mode returns false rejection in YOLO mode #2522

@tanzhenxin

Description

@tanzhenxin

What happened?

The exit_plan_mode tool does not work correctly in YOLO mode. When the model calls exit_plan_mode to present a plan and exit plan mode, it returns:

Plan execution was not approved. Remaining in plan mode.

The agent loop continues, but the model believes the user rejected its plan. This causes the model to behave incorrectly — it may try to revise the plan, ask clarifying questions, or otherwise stall instead of proceeding with implementation.

What did you expect to happen?

In YOLO mode, exit_plan_mode should auto-accept the plan and transition out of plan mode, allowing the agent to proceed with coding without user confirmation.

Additional context

  • The behavior of exit_plan_mode in non-interactive CLI mode and ACP mode has not been verified and may have similar issues — these modes should also be checked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions