Skip to content

Editing plan (Ctrl-X) without changes still triggers agent to replan #24122

@S-Spektrum-M

Description

@S-Spektrum-M

What happened?

When gemini creates a plan in plan mode, one has the option to edit the plan in the system editor (Ctrl-X). If one opens the plan in the editor and exits without making any changes, the agent is still prompted to replan.

What did you expect to happen?

Leaving the editor without making any changes should not be treated as a rejection/replan request. It should trigger the inital plan accept screen (automatically accept edits, manually accept edits, feedback, etc.).

Client information

Client Information

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

> /about
│ About Gemini CLI                                                                                                                                                                                                                                                                                                    │
│                                                                                                                                                                                                                                                                                                                     │
│ CLI Version                                                                                                0.35.3                                                                                                                                                                                                   │
│ Git Commit                                                                                                 52d103469                                                                                                                                                                                                │
│ Model                                                                                                      gemini-3.1-pro-preview                                                                                                                                                                                   │
│ Sandbox                                                                                                    no sandbox                                                                                                                                                                                               │
│ OS                                                                                                         linux                                                                                                                                                                                                    │
│ Auth Method                                                                                                Signed in with Google (neosiddharth@gmail.com)                                                                                                                                                           │
│ Tier                                                                                                       Gemini Code Assist in Google One AI Pro                                                                                                                                                                  │

Login information

Gemini Code Assist in Google One AI Pro

Anything else we need to know?

Probably the fix is capture a hash of the plan before opening in edit and capture a hash after, and compare.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitystatus/need-triageIssues that need to be triaged by the triage automation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions