feat: update model save (#3589)

Edit model save to save by default as global or on the profile depending
on the session
This commit is contained in:
jimmyfraiture2
2025-09-15 00:25:43 +01:00
committed by GitHub
parent b2f6fc3b9a
commit 99e1d33bd1
3 changed files with 44 additions and 121 deletions

View File

@@ -1192,6 +1192,10 @@ impl ChatWidget {
}));
tx.send(AppEvent::UpdateModel(model_slug.clone()));
tx.send(AppEvent::UpdateReasoningEffort(effort));
tx.send(AppEvent::PersistModelSelection {
model: model_slug.clone(),
effort,
});
tracing::info!(
"New model: {}, New effort: {}, Current model: {}, Current effort: {}",
model_slug.clone(),
@@ -1215,7 +1219,7 @@ impl ChatWidget {
self.bottom_pane.show_selection_view(
"Select model and reasoning level".to_string(),
Some("Switch between OpenAI models for this and future Codex CLI session".to_string()),
Some("Press Enter to confirm, Esc to go back, Ctrl+S to save".to_string()),
Some("Press Enter to confirm or Esc to go back".to_string()),
items,
);
}