Skip to content

fix(supervisor): keep session retries during startup - #3765

Merged
elezar merged 1 commit into
mainfrom
codex/supervisor-session-startup
Sep 28, 2026
Merged

elezar merged 1 commit into
mainfrom
codex/supervisor-session-startup

Conversation

@drew

@drew drew commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Keep the supervisor alive while its gateway session retries during startup. The control readiness socket remains unavailable until the gateway accepts the session, so transient gateway delays leave the sandbox provisioning instead of failing startup after 10 seconds.

Related Issue

No issue required: localized fix for an existing startup timeout that conflicts with the session worker's retry behavior. Observed in Release Dev.

Changes

  • Let the existing supervisor session retry loop run through gateway startup or restart delays.
  • Start the control readiness listener only after session acceptance, and cover the pending-to-accepted transition in a unit test.
  • Document the provisioning and readiness behavior.

Testing

  • mise run pre-commit passes
  • mise run test passes
  • Unit tests added/updated
  • mise run e2e:vm passes
  • mise run ci reaches an unrelated local Go SDK failure: tests expect no system gateways, but this host has /etc/openshell/gateways/default.

Checklist

Signed-off-by: Drew Newberry <anewberry@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown

@drew
drew marked this pull request as ready for review September 28, 2026 05:28
@elezar
elezar added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit 7a4da31 Sep 28, 2026
75 checks passed
@elezar
elezar deleted the codex/supervisor-session-startup branch September 28, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants