fix(coding-agent): start UI before session_start closes #2035
This commit is contained in:
@@ -453,16 +453,16 @@ export class InteractiveMode {
|
|||||||
this.setupKeyHandlers();
|
this.setupKeyHandlers();
|
||||||
this.setupEditorSubmitHandler();
|
this.setupEditorSubmitHandler();
|
||||||
|
|
||||||
|
// Start the UI before initializing extensions so session_start handlers can use interactive dialogs
|
||||||
|
this.ui.start();
|
||||||
|
this.isInitialized = true;
|
||||||
|
|
||||||
// Initialize extensions first so resources are shown before messages
|
// Initialize extensions first so resources are shown before messages
|
||||||
await this.initExtensions();
|
await this.initExtensions();
|
||||||
|
|
||||||
// Render initial messages AFTER showing loaded resources
|
// Render initial messages AFTER showing loaded resources
|
||||||
this.renderInitialMessages();
|
this.renderInitialMessages();
|
||||||
|
|
||||||
// Start the UI
|
|
||||||
this.ui.start();
|
|
||||||
this.isInitialized = true;
|
|
||||||
|
|
||||||
// Set terminal title
|
// Set terminal title
|
||||||
this.updateTerminalTitle();
|
this.updateTerminalTitle();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user