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
- Have an extension installed that has missing required settings.
- OR have both the legacy
conductor extension installed and the experimental.sdd flag enabled.
- Start the CLI.
- 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
Describe the bug
When starting the CLI, certain extension-related warnings (such as missing configuration settings or the notification that
conductorhas been replaced bysdd) are displayed twice in the terminal UI.To Reproduce
conductorextension installed and theexperimental.sddflag enabled.Expected behavior
Each distinct warning should only be displayed once.
Root Cause
The CLI startup flow in
gemini.tsxcallsloadCliConfigtwice. Each call instantiates a newExtensionManager, which triggersloadExtensions(). This results incoreEvents.emitFeedback('warning', ...)being called twice for the same conditions.Part of #22685