From fedf05910715b0c6349092cd6afbfa68a41c830d Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 13 Jan 2026 09:22:35 -0500 Subject: [PATCH] fix(ui): dialog: saveKeyAndContinue should return Action --- internal/ui/dialog/api_key_input.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/dialog/api_key_input.go b/internal/ui/dialog/api_key_input.go index 57e4df189899426a72e92435044615fa178266c6..bbc3d3746b26e51103ce8545eca5fe3ebaaf977a 100644 --- a/internal/ui/dialog/api_key_input.go +++ b/internal/ui/dialog/api_key_input.go @@ -286,12 +286,12 @@ func (m *APIKeyInput) verifyAPIKey() tea.Msg { return ActionChangeAPIKeyState{APIKeyInputStateError} } -func (m *APIKeyInput) saveKeyAndContinue() tea.Msg { +func (m *APIKeyInput) saveKeyAndContinue() Action { cfg := m.com.Config() err := cfg.SetProviderAPIKey(string(m.provider.ID), m.input.Value()) if err != nil { - return uiutil.ReportError(fmt.Errorf("failed to save API key: %w", err)) + return ActionCmd{uiutil.ReportError(fmt.Errorf("failed to save API key: %w", err))} } return ActionSelectModel{