codex-status

This commit is contained in:
Ahmed Ibrahim
2025-11-25 15:38:54 -08:00
parent 08b6d9ef1f
commit 764aff6753

View File

@@ -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