mirror of
https://github.com/openai/codex.git
synced 2026-04-29 17:06:51 +00:00
refresh models on thread manager start
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user