From e378c2a436ca00154df0dbc098c04254f3f3979d Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 1 Aug 2026 15:08:25 +0000 Subject: [PATCH] fix: remove alt screen to prevent huh/bubbletea terminal conflict tea.WithAltScreen() caused the alternate buffer to conflict with huh form rendering. Using normal screen lets huh render inline. Also reverted broken tea.Suspend/tea.Resume (not valid commands). --- internal/ui/ui.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/ui/ui.go b/internal/ui/ui.go index 2f245dc..e2aa48d 100644 --- a/internal/ui/ui.go +++ b/internal/ui/ui.go @@ -59,7 +59,7 @@ type deployCompleteMsg struct { func Run(r preflight.Result) error { preflightResult = r m := Model{state: viewRoute} - p := tea.NewProgram(m, tea.WithAltScreen()) + p := tea.NewProgram(m) if _, err := p.Run(); err != nil { return err } @@ -137,21 +137,16 @@ func (m Model) View() string { } func (m Model) startDeploy() tea.Cmd { + m.deploying = true return func() tea.Msg { - m.deploying = true - s, err := runDeployForm() if err != nil { return deployCompleteMsg{err} } - - // Deploy native node err = deployNative(s) - if err == nil { state.Save(&s) } - return deployCompleteMsg{err} } }