Skip to content

[codex] Retry temporarily offline exec-server recovery - #30098

Merged
richardopenai merged 3 commits into
mainfrom
codex/retry-environment-offline-recovery
Jun 25, 2026
Merged

[codex] Retry temporarily offline exec-server recovery#30098
richardopenai merged 3 commits into
mainfrom
codex/retry-environment-offline-recovery

Conversation

@richardopenai

Copy link
Copy Markdown
Contributor

Summary

  • retry ERS 409 environment_offline responses inside the existing exec-server recovery loop
  • keep all other registry conflicts terminal
  • add focused coverage for both cases

Root cause

When an exec server disconnects and reconnects, the client already starts recovery and calls ERS /connect. During the transient executor presence gap, ERS can return 409 environment_offline. The retry classifier treated every 409 as terminal, so the first response aborted the existing 25-second recovery window before the executor came back online. That then caused active processes to be marked lost.

This change classifies only the structured environment_offline conflict as retryable. Recovery continues with the existing bounded deadline, exponential backoff, and jitter.

Validation

  • just test -p codex-exec-server client::recovery::tests — 4 passed
  • just fix -p codex-exec-server — passed
  • just fmt — passed
  • Full just test -p codex-exec-server reached unrelated macOS filesystem-sandbox integration failures because nested /usr/bin/sandbox-exec is denied in this environment (sandbox_apply: Operation not permitted).

@richardopenai
richardopenai marked this pull request as ready for review June 25, 2026 18:49
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Review source: Codex Cloud Agents (CCA)

Codex Cloud Agents (CCA) couldn't complete this review. The original Codex Review is unaffected.

@richardopenai
richardopenai enabled auto-merge (squash) June 25, 2026 19:08
@richardopenai
richardopenai merged commit 964b138 into main Jun 25, 2026
31 checks passed
@richardopenai
richardopenai deleted the codex/retry-environment-offline-recovery branch June 25, 2026 19:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants