diff --git a/internal/tui/view.go b/internal/tui/view.go index d62f371..b470a97 100644 --- a/internal/tui/view.go +++ b/internal/tui/view.go @@ -244,10 +244,15 @@ func (v *View) BuildLive(width int) []string { } } } + insertedToolGap := false for _, tc := range v.ToolCalls { if finalised[tc.ID] { continue } + if !insertedToolGap && len(out) > 0 { + out = append(out, "") + } + insertedToolGap = true out = append(out, v.renderToolCall(tc, width)...) // out = append(out, "") }