Skip to content

Modify with external editor not working #7669

@MichaelBelousov

Description

@MichaelBelousov

What happened?

  1. I was given a code change tool request
  2. I selected "Modify with external editor"
  3. It asks which editor, I selected "Vim" or "Neovim" (I tried both independently)
  4. it asks me again if I'll apply the change
  5. I select "Modify with external editor" again
  6. infinite loop, it still asks me for my editor
 │ Apply this change?                                                                                                                                                                                                                                         │
 │                                                                                                                                                                                                                                                            │
 │   1. Yes, allow once                                                                                                                                                                                                                                       │
 │   2. Yes, allow always                                                                                                                                                                                                                                     │
 │ ● 3. Modify with external editor                                                                                                                                                                                                                           │
 │   4. No, suggest changes (esc)                                                                                                                                                                                                                             │
 │                                                                                                                                                                                                                                                            │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Press ctrl-s to show more lines
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                                                            │
│ > Select Editor                                                                                                   Editor Preference                                                                                                                        │
│ ● 1. None                                                                                                                                                                                                                                                  │
│   2. Cursor (Not installed)                                                                                       These editors are currently supported. Please note that some editors cannot be used in sandbox mode.                                     │
│   3. Emacs (Not installed)                                                                                                                                                                                                                                 │
│   4. Neovim                                                                                                       Your preferred editor is: None.                                                                                                          │
│   5. Vim                                                                                                                                                                                                                                                   │
│   6. VS Code (Not installed)                                                                                                                                                                                                                               │
│   7. VSCodium (Not installed)                                                                                                                                                                                                                              │
│   8. Windsurf (Not installed)                                                                                                                                                                                                                              │
│   9. Zed (Not installed)                                                                                                                                                                                                                                   │
│                                                                                                                                                                                                                                                            │
│   Apply To                                                                                                                                                                                                                                                 │
│ ● 1. User Settings                                                                                                                                                                                                                                         │
│   2. Workspace Settings                                                                                                                                                                                                                                    │
│                                                                                                                                                                                                                                                            │
│ (Use Enter to select, Tab to change focus)                                                                                                                                                                                                                 │
│                                                                                                                                                                                                                                                            │

What did you expect to happen?

at least the second time it should just go into the selected editor somehow and let me edit the change diff. Or warn me of any issue.

Client information

Client Information

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

> /about
│ CLI Version                          0.2.2-git.4d07cb7d                                                   │
│ Git Commit                           4d07cb7d                                                             │
│ Model                                gemini-2.5-pro                                                       │
│ Sandbox                              no sandbox                                                           │
│ OS                                   linux                                                                │
│ Auth Method                          gemini-api-key      

Login information

api key...

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p1Important and should be addressed in the near term.workstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions