Simplify assistant message spacing - just add spacer to components

This commit is contained in:
Mario Zechner 2025-11-11 21:51:12 +01:00
parent f5176bb173
commit e2649341f0
3 changed files with 9 additions and 3 deletions

View file

@ -210,7 +210,7 @@ export class TUI extends Container {
for (let i = firstChanged; i < newLines.length; i++) {
if (i > firstChanged) buffer += "\r\n";
if (visibleWidth(newLines[i]) > width) {
throw new Error("Rendered line exceeds terminal width");
throw new Error(`Rendered line ${i} exceeds terminal width\n\n${newLines[i]}`);
}
buffer += newLines[i];
}