app-server: preserve target-native environment cwd#28146
Conversation
2ea8378 to
0899d52
Compare
| @@ -3844,27 +3852,6 @@ fn turn_start_params_treat_null_or_omitted_environments_as_default() { | |||
| ); | |||
| } | |||
|
|
|||
| #[test] | |||
There was a problem hiding this comment.
for human reviewers: this layer can't enforce that absolute paths are required anymore, this is moved to a thread start test
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 167b3b9a5a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
3971173 to
b19077b
Compare
5baa76a to
e22628c
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e22628cbbe
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
6144dc1 to
68d1d00
Compare
68d1d00 to
9f9f025
Compare
## Why In #28146 I missed the invariant that an absolute `exec_command` workdir must override the environment cwd. The existing integration test would have caught that regression, but it was ignored as flaky. ## What Re-enable `unified_exec_respects_workdir_override`. ## Validation `just test -p codex-core unified_exec_respects_workdir_override`
b6c0886 to
be6caaa
Compare
be6caaa to
fa970c1
Compare
Why
app-server may run on a different OS from the selected exec-server environment. Parsing that environment’s cwd with the Codex host’s path rules prevents thread startup.
What
Carry environment cwd values as
LegacyAppPathStringat the app-server boundary andPathUriinternally. Existing tool-call schemas and relative-path behavior stay host-native; remaining local-only consumers convert explicitly and leave follow-up TODOs.The Wine integration test verifies app-server can start a thread and complete an ordinary turn with a Windows environment cwd from Linux.
Validation
bazel test //codex-rs/core/tests/remote_env_windows:smoke-test --test_output=errorscodex-coreandcodex-app-server-protocol