mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 11:25:15 +00:00
fix: assistant message footer styles
This commit is contained in:
parent
9c8e56fc96
commit
a4113acd15
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue