Skip to content

Refresh signed exec-server URLs on reconnect#28374

Merged
apanasenko-oai merged 3 commits into
mainfrom
codex/exec-server-reconnect-url-refresh
Jun 18, 2026
Merged

Refresh signed exec-server URLs on reconnect#28374
apanasenko-oai merged 3 commits into
mainfrom
codex/exec-server-reconnect-url-refresh

Conversation

@apanasenko-oai

Copy link
Copy Markdown
Collaborator

Summary

  • add a provider API that supplies a fresh signed WebSocket URL for each remote exec-server connection
  • refresh the signed URL after disconnects and retry once when a handshake returns 401 Unauthorized
  • allow EnvironmentManager consumers to register remote environments backed by the URL provider

Tests

  • just test -p codex-exec-server -E 'test(remote_websocket_client_refreshes_url_after_unauthorized_handshake) | test(remote_websocket_client_refreshes_url_after_disconnect)' — 2 passed
  • cargo check -p codex-core-api — passed
  • just fix -p codex-exec-server — passed
  • just fix -p codex-core-api — no test targets; no-op
  • just fmt — passed
  • just test -p codex-exec-server — 187 passed; 32 unrelated macOS sandbox tests could not invoke nested sandbox-exec (Operation not permitted)

@apanasenko-oai apanasenko-oai marked this pull request as ready for review June 15, 2026 19:15
apanasenko-oai added a commit that referenced this pull request Jun 15, 2026
Comment thread codex-rs/exec-server/src/client.rs Outdated
Comment thread codex-rs/exec-server/src/client.rs Outdated
Comment thread codex-rs/exec-server/src/environment.rs Outdated
apanasenko-oai added a commit that referenced this pull request Jun 15, 2026
@apanasenko-oai apanasenko-oai force-pushed the codex/exec-server-reconnect-url-refresh branch from cf5b671 to 91b0049 Compare June 15, 2026 23:47
@apanasenko-oai apanasenko-oai requested a review from a team as a code owner June 15, 2026 23:58
@apanasenko-oai apanasenko-oai force-pushed the codex/exec-server-reconnect-url-refresh branch from 8e66c41 to 029a662 Compare June 17, 2026 22:42
@apanasenko-oai apanasenko-oai merged commit ac3fe64 into main Jun 18, 2026
31 checks passed
@apanasenko-oai apanasenko-oai deleted the codex/exec-server-reconnect-url-refresh branch June 18, 2026 03:58
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 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