codex: distinguish shutdown durability failures (#16599)

This commit is contained in:
Eric Traut
2026-04-08 22:25:36 -07:00
parent 7b22f4a97d
commit 93eb7ec719
5 changed files with 55 additions and 27 deletions
+3
View File
@@ -137,6 +137,8 @@ pub enum CodexErr {
UnsupportedOperation(String),
#[error("{0}")]
RefreshTokenFailed(RefreshTokenFailedError),
#[error("shutdown failed: {0}")]
ShutdownFailed(String),
#[error("Fatal error: {0}")]
Fatal(String),
// -----------------------------------------------------------------
@@ -171,6 +173,7 @@ impl CodexErr {
| CodexErr::Interrupted
| CodexErr::EnvVar(_)
| CodexErr::Fatal(_)
| CodexErr::ShutdownFailed(_)
| CodexErr::UsageNotIncluded
| CodexErr::QuotaExceeded
| CodexErr::InvalidImageRequest()