summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdotdevin <[email protected]>2025-08-11 13:38:29 -0500
committeradamdotdevin <[email protected]>2025-08-11 13:38:39 -0500
commit4ff64c620900b3951d924736bc2de02a0b268e22 (patch)
treedb31d36e7824d31fd0117189155ac1f234a0805c
parent22023fa9e73513e0ff677646cc3fe18785c5635c (diff)
downloadopencode-4ff64c620900b3951d924736bc2de02a0b268e22.tar.gz
opencode-4ff64c620900b3951d924736bc2de02a0b268e22.zip
fix: take up less vertical space
-rw-r--r--packages/tui/internal/components/chat/message.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/tui/internal/components/chat/message.go b/packages/tui/internal/components/chat/message.go
index c7f8b0ee2..1bbf3c5ca 100644
--- a/packages/tui/internal/components/chat/message.go
+++ b/packages/tui/internal/components/chat/message.go
@@ -375,7 +375,6 @@ func renderText(
info = author + timestamp
}
if !showToolDetails && toolCalls != nil && len(toolCalls) > 0 {
- content = content + "\n"
for _, toolCall := range toolCalls {
title := renderToolTitle(toolCall, width-2)
style := styles.NewStyle()
@@ -390,9 +389,9 @@ func renderText(
sections := []string{content}
if extra != "" {
- sections = append(sections, "\n"+extra)
+ sections = append(sections, "\n"+extra+"\n")
}
- sections = append(sections, "\n"+info)
+ sections = append(sections, info)
content = strings.Join(sections, "\n")
switch message.(type) {