Add padding to Aborted text for consistent spacing

This commit is contained in:
Mario Zechner 2025-11-11 23:42:42 +01:00
parent dbee5b69ec
commit cef526ce4d

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")));
this.contentContainer.addChild(new Text(chalk.red("Aborted"), 1, 0));
} else if (message.stopReason === "error") {
const errorMsg = message.errorMessage || "Unknown error";
this.contentContainer.addChild(new Text(chalk.red(`Error: ${errorMsg}`)));