@@ -321,16 +321,19 @@ func (t *baseToolMessageItem) RawRender(width int) string {
321321
322322// Render renders the tool message item at the given width.
323323func (t *baseToolMessageItem) Render(width int) string {
324− style := t.sty.Chat.Message.ToolCallBlurred
325− if t.focused {
326− style = t.sty.Chat.Message.ToolCallFocused
327− }
328−
324+ var prefix string
329325 if t.isCompact {
330− style = t.sty.Chat.Message.ToolCallCompact
326+ prefix = t.sty.Chat.Message.ToolCallCompact.Render()
327+ } else if t.focused {
328+ prefix = t.sty.Chat.Message.ToolCallFocused.Render()
329+ } else {
330+ prefix = t.sty.Chat.Message.ToolCallBlurred.Render()
331331 }
332−
333− return style.Render(t.RawRender(width))
332+ lines := strings.Split(t.RawRender(width), "\n")
333+ for i, ln := range lines {
334+ lines[i] = prefix + ln
335+ }
336+ return strings.Join(lines, "\n")
334337}
335338
336339// ToolCall returns the tool call associated with this message item.