[codex] Honor remote environment cwd and shell#28123
Merged
anp-oai merged 1 commit intoJun 13, 2026
Merged
Conversation
e650ab4
into
codex/turn-environment-cwd-path-uri
29 checks passed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
Cross-OS remote execution needs both the selected environment cwd and its native shell to survive orchestration. After turn environment selections carry cwd as
PathUri, the remaining behavior still rewrites a remote primary cwd to the local legacy fallback and builds commands with the orchestrator session shell. On a Linux-to-Windows connection that prevents a real Windows process from starting.Stacked on #28122.
What
legacy_fallback_cwdonto a primary local environmentC:\windowsand verify successful process lifecycle completionTesting
bazel test //codex-rs/core/tests/remote_env_windows:smoke-test --test_output=errorsjust test -p codex-protocoljust test -p codex-core unified_exec::testsjust test -p codex-core cwd_update_rewrites_sticky_environment_cwd