From bb0b77af16d7e1704552a021d67b9fb9c549f9ee Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 12 Nov 2025 16:45:51 +0100 Subject: [PATCH] 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" --- packages/coding-agent/src/tui/tui-renderer.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/coding-agent/src/tui/tui-renderer.ts b/packages/coding-agent/src/tui/tui-renderer.ts index 44b69194..5d23dcd3 100644 --- a/packages/coding-agent/src/tui/tui-renderer.ts +++ b/packages/coding-agent/src/tui/tui-renderer.ts @@ -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(); }