From aa83d7da24d1b95c7bc1da91266b6069df96bd79 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sun, 21 Dec 2025 16:20:53 -0800 Subject: [PATCH] fix: do not panic on alphas (#8406) alphas are used sometimes as stable release --- codex-rs/core/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/util.rs b/codex-rs/core/src/util.rs index 5304a89ac..db2d0e74e 100644 --- a/codex-rs/core/src/util.rs +++ b/codex-rs/core/src/util.rs @@ -17,7 +17,7 @@ pub(crate) fn backoff(attempt: u64) -> Duration { } pub(crate) fn error_or_panic(message: impl std::string::ToString) { - if cfg!(debug_assertions) || env!("CARGO_PKG_VERSION").contains("alpha") { + if cfg!(debug_assertions) { panic!("{}", message.to_string()); } else { error!("{}", message.to_string());