Fix aborted message spacing

This commit is contained in:
Mario Zechner 2025-11-13 22:28:31 +01:00
parent a3f6544c31
commit ed9786e5d6
2 changed files with 1 additions and 580 deletions

File diff suppressed because one or more lines are too long

View file

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