Add logs to know when we users are changing the model (#3060)
This commit is contained in:
parent
b32c79e371
commit
eb40fe3451
1 changed files with 8 additions and 0 deletions
|
|
@ -1082,6 +1082,7 @@ impl ChatWidget {
|
|||
let is_current = preset.model == current_model && preset.effort == current_effort;
|
||||
let model_slug = preset.model.to_string();
|
||||
let effort = preset.effort;
|
||||
let current_model = current_model.clone();
|
||||
let actions: Vec<SelectionAction> = vec![Box::new(move |tx| {
|
||||
tx.send(AppEvent::CodexOp(Op::OverrideTurnContext {
|
||||
cwd: None,
|
||||
|
|
@ -1093,6 +1094,13 @@ impl ChatWidget {
|
|||
}));
|
||||
tx.send(AppEvent::UpdateModel(model_slug.clone()));
|
||||
tx.send(AppEvent::UpdateReasoningEffort(effort));
|
||||
tracing::info!(
|
||||
"New model: {}, New effort: {}, Current model: {}, Current effort: {}",
|
||||
model_slug.clone(),
|
||||
effort,
|
||||
current_model,
|
||||
current_effort
|
||||
);
|
||||
})];
|
||||
items.push(SelectionItem {
|
||||
name,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue