@@ -593,22 +593,15 @@ func (a *appModel) View() tea.View {
593593 view.MouseMode = tea.MouseModeCellMotion
594594 view.BackgroundColor = t.BgBase
595595 if a.wWidth < 25 || a.wHeight < 15 {
596− view.SetContent(
597− lipgloss.NewCanvas(
598− lipgloss.NewLayer(
599− t.S().Base.Width(a.wWidth).Height(a.wHeight).
600− Align(lipgloss.Center, lipgloss.Center).
601− Render(
602− t.S().Base.
603− Padding(1, 4).
604− Foreground(t.White).
605− BorderStyle(lipgloss.RoundedBorder()).
606− BorderForeground(t.Primary).
607− Render("Window too small!"),
608− ),
609− ),
610− ).Render(),
611− )
596+ view.Content = t.S().Base.Width(a.wWidth).Height(a.wHeight).
597+ Align(lipgloss.Center, lipgloss.Center).
598+ Render(t.S().Base.
599+ Padding(1, 4).
600+ Foreground(t.White).
601+ BorderStyle(lipgloss.RoundedBorder()).
602+ BorderForeground(t.Primary).
603+ Render("Window too small!"),
604+ )
612605 return view
613606 }
614607
@@ -659,11 +652,8 @@ func (a *appModel) View() tea.View {
659652 )
660653 }
661654
662− canvas := lipgloss.NewCanvas(
663− layers...,
664− )
665−
666− view.Content = canvas.Render()
655+ comp := lipgloss.NewCompositor(layers...)
656+ view.Content = comp.Render()
667657 view.Cursor = cursor
668658
669659 if a.sendProgressBar && a.app != nil && a.app.AgentCoordinator != nil && a.app.AgentCoordinator.IsBusy() {