on main help sign in
fix: upgrade bubbletea to fix rendering issues (#1340)
a885da8Ayman Bagabas
go.mod+1−1
@@ -13,7 +13,7 @@ require (
13 github.com/bmatcuk/doublestar/v4 v4.9.1
13 github.com/bmatcuk/doublestar/v4 v4.9.1
14 github.com/charlievieth/fastwalk v1.0.14
14 github.com/charlievieth/fastwalk v1.0.14
15 github.com/charmbracelet/bubbles/v2 v2.0.0-beta.1.0.20250820203609-601216f68ee2
15 github.com/charmbracelet/bubbles/v2 v2.0.0-beta.1.0.20250820203609-601216f68ee2
16− github.com/charmbracelet/bubbletea/v2 v2.0.0-beta.5
16+ github.com/charmbracelet/bubbletea/v2 v2.0.0-beta.6
17 github.com/charmbracelet/catwalk v0.8.1
17 github.com/charmbracelet/catwalk v0.8.1
18 github.com/charmbracelet/colorprofile v0.3.2
18 github.com/charmbracelet/colorprofile v0.3.2
19 github.com/charmbracelet/fang v0.4.3
19 github.com/charmbracelet/fang v0.4.3
go.sum+2−2
@@ -80,8 +80,8 @@ github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904 h1:
80github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904/go.mod h1:8TIYxZxsuCqqeJ0lga/b91tBwrbjoHDC66Sq5t8N2R4=
80github.com/charmbracelet/anthropic-sdk-go v0.0.0-20251024181547-21d6f3d9a904/go.mod h1:8TIYxZxsuCqqeJ0lga/b91tBwrbjoHDC66Sq5t8N2R4=
81github.com/charmbracelet/bubbles/v2 v2.0.0-beta.1.0.20250820203609-601216f68ee2 h1:973OHYuq2Jx9deyuPwe/6lsuQrDCatOsjP8uCd02URE=
81github.com/charmbracelet/bubbles/v2 v2.0.0-beta.1.0.20250820203609-601216f68ee2 h1:973OHYuq2Jx9deyuPwe/6lsuQrDCatOsjP8uCd02URE=
82github.com/charmbracelet/bubbles/v2 v2.0.0-beta.1.0.20250820203609-601216f68ee2/go.mod h1:6HamsBKWqEC/FVHuQMHgQL+knPyvHH55HwJDHl/adMw=
82github.com/charmbracelet/bubbles/v2 v2.0.0-beta.1.0.20250820203609-601216f68ee2/go.mod h1:6HamsBKWqEC/FVHuQMHgQL+knPyvHH55HwJDHl/adMw=
83−github.com/charmbracelet/bubbletea/v2 v2.0.0-beta.5 h1:oAChAeh730gtLKK/BpaTeJHzmj3KFuEfQ7AZgf2VGHM=
83+github.com/charmbracelet/bubbletea/v2 v2.0.0-beta.6 h1:nXNg4TmtfoQXFdF2BSSjTxFp9bSHQCILkIKK3FXMW/E=
84−github.com/charmbracelet/bubbletea/v2 v2.0.0-beta.5/go.mod h1:SUTLq+/pGQ5qntHgt0JswfVJFfgJgWDqyvyiSLVlmbo=
84+github.com/charmbracelet/bubbletea/v2 v2.0.0-beta.6/go.mod h1:SUTLq+/pGQ5qntHgt0JswfVJFfgJgWDqyvyiSLVlmbo=
85github.com/charmbracelet/catwalk v0.8.1 h1:Okn6EgMSHlNCYQrSQkyAjLuLiSzDmReGLc0MPcG2F9g=
85github.com/charmbracelet/catwalk v0.8.1 h1:Okn6EgMSHlNCYQrSQkyAjLuLiSzDmReGLc0MPcG2F9g=
86github.com/charmbracelet/catwalk v0.8.1/go.mod h1:ReU4SdrLfe63jkEjWMdX2wlZMV3k9r11oQAmzN0m+KY=
86github.com/charmbracelet/catwalk v0.8.1/go.mod h1:ReU4SdrLfe63jkEjWMdX2wlZMV3k9r11oQAmzN0m+KY=
87github.com/charmbracelet/colorprofile v0.3.2 h1:9J27WdztfJQVAQKX2WOlSSRB+5gaKqqITmrvb1uTIiI=
87github.com/charmbracelet/colorprofile v0.3.2 h1:9J27WdztfJQVAQKX2WOlSSRB+5gaKqqITmrvb1uTIiI=
internal/tui/tui.go+1−1
@@ -503,6 +503,7 @@ func (a *appModel) moveToPage(pageID page.PageID) tea.Cmd {
503// View renders the complete application interface including pages, dialogs, and overlays.
503// View renders the complete application interface including pages, dialogs, and overlays.
504func (a *appModel) View() tea.View {
504func (a *appModel) View() tea.View {
505 var view tea.View
505 var view tea.View
506+ view.AltScreen = true
506 t := styles.CurrentTheme()
507 t := styles.CurrentTheme()
507 view.BackgroundColor = t.BgBase
508 view.BackgroundColor = t.BgBase
508 if a.wWidth < 25 || a.wHeight < 15 {
509 if a.wWidth < 25 || a.wHeight < 15 {
@@ -577,7 +578,6 @@ func (a *appModel) View() tea.View {
577 view.Layer = canvas
578 view.Layer = canvas
578 view.Cursor = cursor
579 view.Cursor = cursor
579 view.MouseMode = tea.MouseModeCellMotion
580 view.MouseMode = tea.MouseModeCellMotion
580− view.AltScreen = true
581
581
582 if a.sendProgressBar && a.app != nil && a.app.AgentCoordinator != nil && a.app.AgentCoordinator.IsBusy() {
582 if a.sendProgressBar && a.app != nil && a.app.AgentCoordinator != nil && a.app.AgentCoordinator.IsBusy() {
583 // HACK: use a random percentage to prevent ghostty from hiding it
583 // HACK: use a random percentage to prevent ghostty from hiding it