fix: reduce usage of open_if_present (#11344)

This commit is contained in:
jif-oai
2026-02-10 19:25:07 +00:00
committed by GitHub
parent 0639c33892
commit 847a6092e6
11 changed files with 448 additions and 534 deletions

View File

@@ -353,11 +353,7 @@ impl Codex {
};
match thread_id {
Some(thread_id) => {
let state_db_ctx = state_db::open_if_present(
config.codex_home.as_path(),
config.model_provider_id.as_str(),
)
.await;
let state_db_ctx = state_db::get_state_db(&config, None).await;
state_db::get_dynamic_tools(state_db_ctx.as_deref(), thread_id, "codex_spawn")
.await
}