You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/ui/styles/provider.go builds 48 lipgloss.NewStyle() chains insideRender* methods that run per item per frame (provider.go:36,47,61,67,80,108,…) — style construction churn across a 2619-LOC conversation render on every repaint. Separately, there is no terminal background detection anywhere (tea.RequestBackgroundColor unused), so themes cannot auto-match light/dark terminals.
Design
Build styles once per theme change and store them as fields on the provider (the theme is stable between explicit changes); Render* methods only call .Render().
Optional follow-along: return tea.RequestBackgroundColor from Init, handle tea.BackgroundColorMsg (msg.IsDark()), and pick the default theme variant via lipgloss v2 LightDark.
Acceptance criteria
No NewStyle() calls remain in per-frame render paths (grep-checkable)
Rendering byte-identical before/after (goldens unchanged), apart from intentional background-detection behavior if implemented
Activity
refactor: cache lipgloss styles per theme change; auto-select light t…
inference-gateway-releaser commentedon Jul 11, 2026
🎉 This issue has been resolved in version 0.142.2 🎉
The release is available on:
Your semantic-release bot 📦🚀
feat(judge): decide tool approvals with a decision model through /v1/…