mirror of
https://github.com/openai/codex.git
synced 2026-11-24 07:20:27 +00:00
Recover deferred environments after provisioning failure (#42388)
## What changed - Allow a valid Ready report to replace a deferred environment's provisioning failure while preserving the same environment instance. - Treat provisioning failures as retryable and reconnect when a completed or concurrently publishing startup attempt contains a stale failure. - Report provisioning failures from `status()` without starting a connection, and retain Ready state when a late failure arrives. ## Testing - Cover recovery after failed and invalid provisioning reports, capability-root resolution after recovery, and the race between Ready and publication of an earlier startup failure. GitOrigin-RevId: cce419403248168da81bc5a6ab20f919aed81142
This commit is contained in:
1 parent
2b554fd3f9
commit
e6249b5296
9 files changed
+243
-67
No files matched your search
@@ -818,7 +818,8 @@ pub(crate) fn is_retryable_recovery_error(error: &ExecServerError) -> bool {
|
||||
is_transport_closed_error(error)
|
||||
|| matches!(
|
||||
error,
|
||||
ExecServerError::WebSocketConnectTimeout { .. }
|
||||
ExecServerError::ProvisioningFailed(_)
|
||||
| ExecServerError::WebSocketConnectTimeout { .. }
|
||||
| ExecServerError::WebSocketConnect { .. }
|
||||
| ExecServerError::InitializeTimedOut { .. }
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user