[codex] add waypoints: multi-host remote execution#17362
Draft
[codex] add waypoints: multi-host remote execution#17362
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
49c4046 to
6a44fb6
Compare
Author
|
I have read the CLA Document and I hereby sign the CLA |
eb54e08 to
41e490d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a shared multi-host execution registry above individual Codex sessions. It preserves the existing local/default environment behavior while allowing registered hosts to be selected per
exec_commandinvocation viahost_id.The initial host backend added here is SSH-backed. Codex starts a remote
codex exec-serverthrough the SSH host from~/.ssh/configand proxies the websocket over the SSH command stream, which avoids requiring SSH TCP forwarding. The implementation also captures the remote default cwd and shell so unified exec can format shell commands for the selected host rather than blindly using the local shell.Details
CODEX_EXEC_SERVER_SSH_HOSTSandCODEX_EXEC_SERVER_DEFAULT_HOSTenvironment support.local, URL-backed, and SSH-backed exec hosts.host_idto the unifiedexec_commandtool schema and approval key.{}beforesessionIdexisted.CODEX_TEST_SSH_HOST.Validation
cargo fmt -p codex-exec-server -p codex-core -p codex-toolscargo check -p codex-exec-server -p codex-core -p codex-toolscargo check -p codex-toolscargo test -p codex-exec-server environmentcargo test -p codex-exec-server initialize_response_accepts_legacy_empty_payloadCODEX_TEST_SSH_HOST=<ssh-host> cargo test -p codex-exec-server environment::tests::ssh_environment_manager_bootstraps_configured_host -- --ignored --nocaptureCODEX_SKIP_VENDORED_BWRAP=1 cargo test -p codex-core unified_exec:: --libcargo test -p codex-toolsgit diff --check