feat(tui): add an advanced reasoning picker

This commit is contained in:
Felipe Coury
2026-07-13 02:11:55 -03:00
parent 32649bc5e6
commit 8a4d35a1e1
27 changed files with 1447 additions and 92 deletions
@@ -2782,15 +2782,18 @@ impl ThreadRequestProcessor {
developer_instructions,
personality,
);
self.load_and_apply_persisted_resume_metadata(
&thread_history,
&mut request_overrides,
&mut typesafe_overrides,
)
.await;
let has_explicit_model_resume_override =
has_model_resume_override(request_overrides.as_ref(), &typesafe_overrides);
let persisted_metadata = self
.load_and_apply_persisted_resume_metadata(
&thread_history,
&mut request_overrides,
&mut typesafe_overrides,
)
.await;
// Derive a Config using the same logic as new conversation, honoring overrides if provided.
let config = match self
let mut config = match self
.config_manager
.load_for_cwd(request_overrides, typesafe_overrides, history_cwd)
.await
@@ -2802,6 +2805,13 @@ impl ThreadRequestProcessor {
return Ok(());
}
};
if !has_explicit_model_resume_override
&& persisted_metadata
.as_ref()
.is_some_and(|metadata| metadata.reasoning_effort.is_none())
{
config.model_reasoning_effort = None;
}
let response_history = thread_history.clone();