fix: prevent recursive form launch — set deploying before huh runs
m.deploying is now set synchronously before the goroutine starts, preventing bubbletea from re-capturing number keys meant for the huh form. Removed duplicate '1' key handler from wizard view.
This commit is contained in:
parent
a6e12d54cc
commit
f5ddb145cb
1 changed files with 1 additions and 3 deletions
|
|
@ -79,15 +79,13 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
m.state = viewWizard
|
||||
return m, nil
|
||||
}
|
||||
if m.state == viewWizard && !m.deploying {
|
||||
return m, m.startDeploy()
|
||||
}
|
||||
case "2":
|
||||
if m.state == viewDeployChoice {
|
||||
return m, func() tea.Msg { return tea.Quit() } // exit TUI for tunnel flow
|
||||
}
|
||||
case "enter":
|
||||
if m.state == viewWizard && !m.deploying {
|
||||
m.deploying = true
|
||||
return m, m.startDeploy()
|
||||
}
|
||||
if m.state == viewDone || m.state == viewError {
|
||||
|
|
|
|||
Loading…
Reference in a new issue