@@ -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
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