Release v0.7.18

This commit is contained in:
Mario Zechner 2025-11-18 22:08:44 +01:00
parent a11c1aa4ff
commit 22d8a0ae4a
16 changed files with 284 additions and 174 deletions

View file

@ -38,12 +38,16 @@ export class AssistantMessageComponent extends Container {
if (content.type === "text" && content.text.trim()) {
// Assistant text messages with no background - trim the text
// Set paddingY=0 to avoid extra spacing before tool executions
this.contentContainer.addChild(new Markdown(content.text.trim(), undefined, undefined, undefined, 1, 0));
this.contentContainer.addChild(new Markdown(content.text.trim(), 1, 0));
} else if (content.type === "thinking" && content.thinking.trim()) {
// Thinking traces in dark gray italic
// Use Markdown component because it preserves ANSI codes across wrapped lines
const thinkingText = chalk.gray.italic(content.thinking);
this.contentContainer.addChild(new Markdown(thinkingText, undefined, undefined, undefined, 1, 0));
// Use Markdown component with default text style for consistent styling
this.contentContainer.addChild(
new Markdown(content.thinking.trim(), 1, 0, {
color: "gray",
italic: true,
}),
);
this.contentContainer.addChild(new Spacer(1));
}
}

View file

@ -186,7 +186,7 @@ export class TuiRenderer {
this.ui.addChild(new DynamicBorder(chalk.cyan));
this.ui.addChild(new Text(chalk.bold.cyan("What's New"), 1, 0));
this.ui.addChild(new Spacer(1));
this.ui.addChild(new Markdown(this.changelogMarkdown.trim(), undefined, undefined, undefined, 1, 0));
this.ui.addChild(new Markdown(this.changelogMarkdown.trim(), 1, 0));
this.ui.addChild(new Spacer(1));
this.ui.addChild(new DynamicBorder(chalk.cyan));
}
@ -989,7 +989,7 @@ export class TuiRenderer {
this.chatContainer.addChild(new DynamicBorder(chalk.cyan));
this.ui.addChild(new Text(chalk.bold.cyan("What's New"), 1, 0));
this.ui.addChild(new Spacer(1));
this.chatContainer.addChild(new Markdown(changelogMarkdown));
this.chatContainer.addChild(new Markdown(changelogMarkdown, 1, 1));
this.chatContainer.addChild(new DynamicBorder(chalk.cyan));
this.ui.requestRender();
}

View file

@ -15,7 +15,7 @@ export class UserMessageComponent extends Container {
}
// User messages with dark gray background
this.markdown = new Markdown(text, undefined, undefined, { r: 52, g: 53, b: 65 });
this.markdown = new Markdown(text, 1, 1, { bgColor: "#343541" });
this.addChild(this.markdown);
}
}