feat(tui): render attachments

This commit is contained in:
adamdottv
2025-07-04 10:54:53 -05:00
parent f9abc7c84f
commit 94ef341c9d
2 changed files with 51 additions and 3 deletions

View File

@@ -223,6 +223,7 @@ func renderText(
showToolDetails bool,
highlight bool,
width int,
extra string,
toolCalls ...opencode.ToolInvocationPart,
) string {
t := theme.CurrentTheme()
@@ -269,7 +270,11 @@ func renderText(
}
}
content = strings.Join([]string{content, info}, "\n")
sections := []string{content, info}
if extra != "" {
sections = append(sections, "\n"+extra)
}
content = strings.Join(sections, "\n")
switch message.Role {
case opencode.MessageRoleUser: