From b75d55db903bddebe158a549dcc05eec2e379374 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Tue, 17 Feb 2026 13:35:11 +0100 Subject: [PATCH] check submit questonare --- pkg/task/ui/questionnaire.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/task/ui/questionnaire.go b/pkg/task/ui/questionnaire.go index f70daa2..b8db8b9 100644 --- a/pkg/task/ui/questionnaire.go +++ b/pkg/task/ui/questionnaire.go @@ -46,6 +46,11 @@ func (q *QuestionnaireModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { if f, ok := form.(*huh.Form); ok { q.form = f } + + if q.form.State == huh.StateCompleted { + return q, tea.Quit + } + return q, cmd }