From 764aff67535aed13b22416c9aa1f375ecaf88b80 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Tue, 25 Nov 2025 15:38:54 -0800 Subject: [PATCH] codex-status --- codex-rs/core/src/status.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/codex-rs/core/src/status.rs b/codex-rs/core/src/status.rs index e4df839189..31056da867 100644 --- a/codex-rs/core/src/status.rs +++ b/codex-rs/core/src/status.rs @@ -72,13 +72,13 @@ impl IdleWarning { return None; } - if let Ok(status) = fetch_codex_health().await { - if !status.is_operational() { - self.warning_sent = true; - return Some(format!( - "OpenAI status: {status:?}. Responses may be delayed or stalled." - )); - } + if let Ok(status) = fetch_codex_health().await + && !status.is_operational() + { + self.warning_sent = true; + return Some(format!( + "Codex is facing an incident. Current status: {status:?}. Responses may be delayed or stalled." + )); } None