mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
fix: reduce usage of open_if_present (#11344)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user