@@ -503,6 +503,7 @@ func (a *appModel) moveToPage(pageID page.PageID) tea.Cmd {
503503// View renders the complete application interface including pages, dialogs, and overlays.
504504func (a *appModel) View() tea.View {
505505 var view tea.View
506+ view.AltScreen = true
506507 t := styles.CurrentTheme()
507508 view.BackgroundColor = t.BgBase
508509 if a.wWidth < 25 || a.wHeight < 15 {
@@ -577,7 +578,6 @@ func (a *appModel) View() tea.View {
577578 view.Layer = canvas
578579 view.Cursor = cursor
579580 view.MouseMode = tea.MouseModeCellMotion
580− view.AltScreen = true
581581
582582 if a.sendProgressBar && a.app != nil && a.app.AgentCoordinator != nil && a.app.AgentCoordinator.IsBusy() {
583583 // HACK: use a random percentage to prevent ghostty from hiding it