@@ -71,7 +71,7 @@ type OAuth struct {
7171var _ Dialog = (*OAuth)(nil)
7272
7373// newOAuth creates a new device flow component.
74−func newOAuth(com *common.Common, provider catwalk.Provider, model config.SelectedModel, modelType config.SelectedModelType, oAuthProvider OAuthProvider) (*OAuth, error) {
74+func newOAuth(com *common.Common, provider catwalk.Provider, model config.SelectedModel, modelType config.SelectedModelType, oAuthProvider OAuthProvider) (*OAuth, tea.Cmd) {
7575 t := com.Styles
7676
7777 m := OAuth{}
@@ -101,7 +101,7 @@ func newOAuth(com *common.Common, provider catwalk.Provider, model config.Select
101101 )
102102 m.keyMap.Close = CloseKey
103103
104− return &m, nil
104+ return &m, tea.Batch(m.spinner.Tick, m.oAuthProvider.initiateAuth)
105105}
106106
107107// ID implements Dialog.
@@ -109,11 +109,6 @@ func (m *OAuth) ID() string {
109109 return OAuthID
110110}
111111
112−// Init implements Dialog.
113−func (m *OAuth) Init() tea.Cmd {
114− return tea.Batch(m.spinner.Tick, m.oAuthProvider.initiateAuth)
115−}
116−
117112// HandleMsg handles messages and state transitions.
118113func (m *OAuth) HandleMsg(msg tea.Msg) Action {
119114 switch msg := msg.(type) {