feat(tui): show provider next to model

This commit is contained in:
adamdottv
2025-06-18 16:09:49 -05:00
parent 8c32cfe829
commit 183ca64ef9
3 changed files with 7 additions and 3 deletions

View File

@@ -208,6 +208,7 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
cmds = append(cmds, cmd)
case dialog.CompletionDialogCloseMsg:
a.showCompletionDialog = false
a.completions.SetProvider(a.completionManager.DefaultProvider())
case client.EventSessionUpdated:
if msg.Properties.Info.Id == a.app.Session.Id {
a.app.Session = &msg.Properties.Info
@@ -494,7 +495,7 @@ func (a appModel) executeCommand(command commands.Command) (tea.Model, tea.Cmd)
func NewModel(app *app.App) tea.Model {
completionManager := completions.NewCompletionManager(app)
initialProvider := completionManager.GetProvider("")
initialProvider := completionManager.DefaultProvider()
messages := chat.NewMessagesComponent(app)
editor := chat.NewEditorComponent(app)