Fix thinking trace styling when text wraps
This commit is contained in:
@@ -42,11 +42,10 @@ export class AssistantMessageComponent extends Container {
|
|||||||
this.contentContainer.addChild(new Markdown(content.text.trim(), undefined, undefined, undefined, 1, 0));
|
this.contentContainer.addChild(new Markdown(content.text.trim(), undefined, undefined, undefined, 1, 0));
|
||||||
} else if (content.type === "thinking" && content.thinking.trim()) {
|
} else if (content.type === "thinking" && content.thinking.trim()) {
|
||||||
// Thinking traces in dark gray italic
|
// Thinking traces in dark gray italic
|
||||||
const thinkingText = content.thinking
|
// Apply styling to entire block so wrapping preserves it
|
||||||
.split("\n")
|
const thinkingText = chalk.gray.italic(content.thinking);
|
||||||
.map((line) => chalk.gray.italic(line))
|
|
||||||
.join("\n");
|
|
||||||
this.contentContainer.addChild(new Text(thinkingText, 1, 0));
|
this.contentContainer.addChild(new Text(thinkingText, 1, 0));
|
||||||
|
this.contentContainer.addChild(new Spacer(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user