mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
codex-status
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user