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:
Mario Zechner 2025-11-12 16:45:51 +01:00
parent 5cab91f839
commit bb0b77af16

View file

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