mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
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:
parent
ded2d6399e
commit
d1e33599f6
1 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue