Skip to content

Duplicate extension warnings in terminal UI during startup #23172

@moisgobg

Description

@moisgobg

Describe the bug

When starting the CLI, certain extension-related warnings (such as missing configuration settings or the notification that conductor has been replaced by sdd) are displayed twice in the terminal UI.

To Reproduce

  1. Have an extension installed that has missing required settings.
  2. OR have both the legacy conductor extension installed and the experimental.sdd flag enabled.
  3. Start the CLI.
  4. Observe the warning bubbles in the UI.

Expected behavior

Each distinct warning should only be displayed once.

Root Cause

The CLI startup flow in gemini.tsx calls loadCliConfig twice. Each call instantiates a new ExtensionManager, which triggers loadExtensions(). This results in coreEvents.emitFeedback('warning', ...) being called twice for the same conditions.


Part of #22685

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions