appendStatus wraps one segment in styleStatus and appends it, keeping renderStatusBar readable instead of repeating the wrap at each call site.
(segs []string, s string)
| 330 | } |
| 331 | |
| 332 | func (m Model) renderStatusBar() string { |
| 333 | sep := styleStatus.Render(" · ") |
| 334 | segs := []string{backendLabel(m.cfg, m.connected)} |
| 335 | |
| 336 | if live := m.sessionTokens + m.streamingEstimate; live > 0 { |
| 337 | segs = appendStatus(segs, humanTokens(live)) |