Skip to content

Make plan approval options contextual to user's current mode #1795

@charlesvien

Description

@charlesvien

When the agent exits plan mode (ExitPlanMode), the approval dialog always shows the same static list of mode options (auto, acceptEdits, default) — matching the upstream Claude Code SDK behavior. This is not ideal because the user almost always wants to return to whatever mode they were in before entering plan mode.

If a user was in auto mode and the agent entered plan mode, the most natural primary option on plan approval should be "Yes, continue with auto mode" — not a flat list where every option has equal weight.

Claude Code:
Image

PostHog Code:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions