codex: simplify rollout metadata update path

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-06 20:53:08 -08:00
parent 0e1309282f
commit 50c70d2af7

View File

@@ -2456,18 +2456,16 @@ impl CodexMessageProcessor {
"ephemeral thread does not support metadata updates: {thread_uuid}"
)));
};
if thread.rollout_path().is_some() {
reconcile_rollout(
Some(state_db_ctx),
rollout_path.as_path(),
self.config.model_provider_id.as_str(),
None,
&[],
None,
None,
)
.await;
}
reconcile_rollout(
Some(state_db_ctx),
rollout_path.as_path(),
self.config.model_provider_id.as_str(),
None,
&[],
None,
None,
)
.await;
match state_db_ctx.get_thread(thread_uuid).await {
Ok(Some(_)) => return Ok(()),