From 264d40efdcc16d891099f7424100c9872185b7c1 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 19 Jan 2026 08:21:27 -0800 Subject: [PATCH] Fix invalid input error on Azure endpoint (#9387) Users of Azure endpoints are reporting that when they use `/review`, they sometimes see an error "Invalid 'input[3].id". I suspect this is specific to the Azure implementation of the `responses` API. The Azure team generally copies the OpenAI code for this endpoint, but they do have minor differences and sometimes lag in rolling out bug fixes or updates. The error appears to be triggered because the `/review` implementation is using a user ID with a colon in it. Addresses #9360 --- codex-rs/core/src/tasks/review.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/tasks/review.rs b/codex-rs/core/src/tasks/review.rs index 9157e922e..5b0d0bebe 100644 --- a/codex-rs/core/src/tasks/review.rs +++ b/codex-rs/core/src/tasks/review.rs @@ -190,8 +190,8 @@ pub(crate) async fn exit_review_mode( review_output: Option, ctx: Arc, ) { - const REVIEW_USER_MESSAGE_ID: &str = "review:rollout:user"; - const REVIEW_ASSISTANT_MESSAGE_ID: &str = "review:rollout:assistant"; + const REVIEW_USER_MESSAGE_ID: &str = "review_rollout_user"; + const REVIEW_ASSISTANT_MESSAGE_ID: &str = "review_rollout_assistant"; let (user_message, assistant_message) = if let Some(out) = review_output.clone() { let mut findings_str = String::new(); let text = out.overall_explanation.trim();