Fix aborted message spacing

This commit is contained in:
Mario Zechner
2025-11-13 22:28:31 +01:00
Unverified
parent abf42af7b8
commit 417229abd0
2 changed files with 1 additions and 580 deletions
File diff suppressed because one or more lines are too long
@@ -53,7 +53,7 @@ export class AssistantMessageComponent extends Container {
const hasToolCalls = message.content.some((c) => c.type === "toolCall");
if (!hasToolCalls) {
if (message.stopReason === "aborted") {
this.contentContainer.addChild(new Text(chalk.red("Aborted"), 1, 0));
this.contentContainer.addChild(new Text(chalk.red("\nAborted"), 1, 0));
} else if (message.stopReason === "error") {
const errorMsg = message.errorMessage || "Unknown error";
this.contentContainer.addChild(new Text(chalk.red(`Error: ${errorMsg}`)));