Fix: failed to open session (#999)

This commit is contained in:
Aiden Cline
2025-07-15 05:40:29 -05:00
committed by GitHub
parent 95e0957d64
commit 636fe0fb64
2 changed files with 8 additions and 2 deletions

View File

@@ -498,6 +498,9 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
a.app.Session = msg
a.app.Messages = messages
return a, util.CmdHandler(app.SessionLoadedMsg{})
case app.SessionCreatedMsg:
a.app.Session = msg.Session
return a, util.CmdHandler(app.SessionLoadedMsg{})
case app.ModelSelectedMsg:
a.app.Provider = &msg.Provider
a.app.Model = &msg.Model