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:
Mario Zechner 2026-01-29 03:55:44 +01:00
parent ded2d6399e
commit d1e33599f6

View file

@ -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();