on main help sign in
chore: persist reasoning across sessions
47c5fcaKujtim Hoxha
internal/tui/page/chat/chat.go+6−1
@@ -581,7 +581,12 @@ func (p *chatPage) handleReasoningEffortSelected(effort string) tea.Cmd {
581
581
582 // Update the model configuration
582 // Update the model configuration
583 currentModel.ReasoningEffort = effort
583 currentModel.ReasoningEffort = effort
584− cfg.Models[agentCfg.Model] = currentModel
584+ if err := cfg.UpdatePreferredModel(agentCfg.Model, currentModel); err != nil {
585+ return util.InfoMsg{
586+ Type: util.InfoTypeError,
587+ Msg: "Failed to update reasoning effort: " + err.Error(),
588+ }
589+ }
585
590
586 // Update the agent with the new configuration
591 // Update the agent with the new configuration
587 if err := p.app.UpdateAgentModel(); err != nil {
592 if err := p.app.UpdateAgentModel(); err != nil {