mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 14:03:49 +00:00
Fix double spacing before tool executions by removing bottom padding from assistant Markdown
This commit is contained in:
parent
f63ec78524
commit
f5176bb173
1 changed files with 2 additions and 1 deletions
|
|
@ -308,7 +308,8 @@ export class TuiRenderer {
|
|||
for (const content of assistantMsg.content) {
|
||||
if (content.type === "text" && content.text.trim()) {
|
||||
// Assistant text messages with no background - trim the text
|
||||
this.chatContainer.addChild(new Markdown(content.text.trim()));
|
||||
// Set paddingY=0 to avoid extra spacing before tool executions
|
||||
this.chatContainer.addChild(new Markdown(content.text.trim(), undefined, undefined, undefined, 1, 0));
|
||||
} else if (content.type === "thinking" && content.thinking.trim()) {
|
||||
// Thinking traces in dark gray italic
|
||||
const thinkingText = content.thinking
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue