fix(coding-agent): show resources before messages when resuming session
Swapped order of initExtensions() and renderInitialMessages() in init() so loaded resources (Context, Skills, Prompts, Extensions) appear at the top of the chat instead of at the bottom when resuming a session.
This commit is contained in:
@@ -471,7 +471,10 @@ export class InteractiveMode {
|
||||
this.setupKeyHandlers();
|
||||
this.setupEditorSubmitHandler();
|
||||
|
||||
// Render initial messages before starting the UI to avoid layout jump
|
||||
// Initialize extensions first so resources are shown before messages
|
||||
await this.initExtensions();
|
||||
|
||||
// Render initial messages AFTER showing loaded resources
|
||||
this.renderInitialMessages();
|
||||
|
||||
// Start the UI
|
||||
@@ -481,9 +484,6 @@ export class InteractiveMode {
|
||||
// Set terminal title
|
||||
this.updateTerminalTitle();
|
||||
|
||||
// Initialize extensions with TUI-based UI context
|
||||
await this.initExtensions();
|
||||
|
||||
// Subscribe to agent events
|
||||
this.subscribeToAgent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user