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

@@ -51,6 +51,12 @@ pub(crate) enum AppEvent {
/// Update the current model slug in the running app and widget.
UpdateModel(String),
/// Persist the selected model and reasoning effort to the appropriate config.
PersistModelSelection {
model: String,
effort: Option<ReasoningEffort>,
},
/// Update the current approval policy in the running app and widget.
UpdateAskForApprovalPolicy(AskForApproval),