Skip to content

Spam loop Editor is not supported: ${currentPreference} when the preferredEditor is an invalid value #16091

@kevinfjiang

Description

@kevinfjiang

What happened?

When the value of general.preferredEditor in settings.json is invalid, there's an infinite message spam of Editor is not supported: ${currentPreference} when you enter the /editor menu.

This can happen one of many ways:

  1. User manually updates the preferredEditor incorrectly
  2. User is adding a new editor, the preferred editor is set to the new editor, but then the user uses an older version of gemini cli, resulting in this issue

What did you expect to happen?

the Editor is not supported: ${currentPreference} message should happen once and once only.

Client information

Client Information

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

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    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/p2Important but can be addressed in a future release.type/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions