refresh models on thread manager start

This commit is contained in:
Ahmed Ibrahim
2026-01-13 14:51:50 -08:00
parent fe85da4ba4
commit a6e26bfaf1
13 changed files with 68 additions and 75 deletions

View File

@@ -304,11 +304,8 @@ pub async fn run_main(cli: Cli, codex_linux_sandbox_exe: Option<PathBuf>) -> any
true,
config.cli_auth_credentials_store_mode,
);
let thread_manager = ThreadManager::new(
config.codex_home.clone(),
auth_manager.clone(),
SessionSource::Exec,
);
let thread_manager = ThreadManager::new(config.clone(), auth_manager.clone(), SessionSource::Exec)
.await;
let default_model = thread_manager
.get_models_manager()
.get_default_model(&config.model, &config, RefreshStrategy::default())