summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdotdevin <[email protected]>2025-08-11 10:57:18 -0500
committeradamdotdevin <[email protected]>2025-08-11 10:57:18 -0500
commita4113acd157cf4192aac4161b76c2aa1d55aefc6 (patch)
tree49a8f56d01d328a4bcfe3cab7e359ed6dcf1e9c0
parent9c8e56fc96df1f680671f8a16a202fcd9e9c4b1e (diff)
downloadopencode-a4113acd157cf4192aac4161b76c2aa1d55aefc6.tar.gz
opencode-a4113acd157cf4192aac4161b76c2aa1d55aefc6.zip
fix: assistant message footer styles
-rw-r--r--packages/tui/internal/components/chat/message.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/tui/internal/components/chat/message.go b/packages/tui/internal/components/chat/message.go
index 12156ea91..c7f8b0ee2 100644
--- a/packages/tui/internal/components/chat/message.go
+++ b/packages/tui/internal/components/chat/message.go
@@ -375,7 +375,7 @@ func renderText(
info = author + timestamp
}
if !showToolDetails && toolCalls != nil && len(toolCalls) > 0 {
- content = content + "\n\n"
+ content = content + "\n"
for _, toolCall := range toolCalls {
title := renderToolTitle(toolCall, width-2)
style := styles.NewStyle()
@@ -383,16 +383,16 @@ func renderText(
style = style.Foreground(t.Error())
}
title = style.Render(title)
- title = "∟ " + title + "\n"
+ title = "\n∟ " + title
content = content + title
}
}
sections := []string{content}
if extra != "" {
- sections = append(sections, "\n"+extra+"\n")
+ sections = append(sections, "\n"+extra)
}
- sections = append(sections, info)
+ sections = append(sections, "\n"+info)
content = strings.Join(sections, "\n")
switch message.(type) {