mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
Match export output style to thinking level display
Changed export success/error messages to match the style used for thinking level changes: - Use Spacer(1) instead of empty Text for proper blank line spacing - Use chalk.dim() for success message instead of chalk.green() - Add left padding (1, 0) to match other system messages - Removed checkmark/x symbols for cleaner look Now "Session exported to: filename.html" appears dimmed with proper spacing, just like "Thinking level: off"
This commit is contained in:
parent
5cab91f839
commit
bb0b77af16
1 changed files with 5 additions and 5 deletions
|
|
@ -541,15 +541,15 @@ export class TuiRenderer {
|
|||
// Export session to HTML
|
||||
const filePath = exportSessionToHtml(this.sessionManager, this.agent.state, outputPath);
|
||||
|
||||
// Show success message in chat
|
||||
this.chatContainer.addChild(new Text("", 0, 0)); // Spacer
|
||||
this.chatContainer.addChild(new Text(chalk.green(`✓ Session exported to: ${filePath}`), 0, 0));
|
||||
// Show success message in chat - matching thinking level style
|
||||
this.chatContainer.addChild(new Spacer(1));
|
||||
this.chatContainer.addChild(new Text(chalk.dim(`Session exported to: ${filePath}`), 1, 0));
|
||||
this.ui.requestRender();
|
||||
} catch (error: any) {
|
||||
// Show error message in chat
|
||||
this.chatContainer.addChild(new Text("", 0, 0)); // Spacer
|
||||
this.chatContainer.addChild(new Spacer(1));
|
||||
this.chatContainer.addChild(
|
||||
new Text(chalk.red(`✗ Failed to export session: ${error.message || "Unknown error"}`), 0, 0),
|
||||
new Text(chalk.red(`Failed to export session: ${error.message || "Unknown error"}`), 1, 0),
|
||||
);
|
||||
this.ui.requestRender();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue