wip: refactoring tui

This commit is contained in:
adamdottv
2025-05-30 15:37:04 -05:00
parent c69c9327da
commit ca562266b7

View File

@@ -168,6 +168,7 @@ func (a appModel) Init() tea.Cmd {
return dialog.ShowInitDialogMsg{Show: shouldShow}
})
// TODO: store last selected model somewhere
cmds = append(cmds, func() tea.Msg {
providers, _ := a.app.ListProviders(context.Background())
return state.ModelSelectedMsg{Provider: providers[0], Model: providers[0].Models[0]}