Skip to content

core: render remote environment cwd natively#28152

Merged
anp-oai merged 4 commits into
mainfrom
codex/remote-windows-path-requirements
Jun 16, 2026
Merged

core: render remote environment cwd natively#28152
anp-oai merged 4 commits into
mainfrom
codex/remote-windows-path-requirements

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Why

Model-visible <environment_context> should match the environment of the executor, not of the app server.

Stacked on #28146.

What

  • Keep selected environment cwd values as PathUri while building environment context.
  • Render cwd text using the path convention represented by the URI, with the canonical URI as a fallback.
  • Preserve compatibility with legacy TurnContextItem.cwd values when reconstructing and diffing context.
  • Extend the Wine-backed remote Windows test to assert that the model sees powershell and C:\windows.

@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch from 167b3b9 to 5baa76a Compare June 14, 2026 06:34
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from 3fc8e16 to b91a6db Compare June 14, 2026 06:39
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch 2 times, most recently from 6144dc1 to 68d1d00 Compare June 16, 2026 01:09
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch 3 times, most recently from 7ed4c97 to 0d74265 Compare June 16, 2026 05:08
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch 5 times, most recently from 0b0db42 to 8ca024f Compare June 16, 2026 06:48
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from b91a6db to c5d7b2b Compare June 16, 2026 07:07
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch from 8ca024f to d900fb5 Compare June 16, 2026 07:16
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from c5d7b2b to 4e7f589 Compare June 16, 2026 07:19
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch from d900fb5 to cbe850c Compare June 16, 2026 07:27
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from 4e7f589 to 514b62e Compare June 16, 2026 07:33
@anp-oai anp-oai marked this pull request as ready for review June 16, 2026 07:34
@anp-oai anp-oai requested a review from a team as a code owner June 16, 2026 07:34
@anp-oai

anp-oai commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 514b62e1cf

ℹ️ 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".

Comment thread codex-rs/core/src/context/environment_context.rs Outdated
Comment thread codex-rs/core/src/context/environment_context.rs Outdated
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch from cbe850c to efb3ceb Compare June 16, 2026 16:21
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from 514b62e to 54304e5 Compare June 16, 2026 16:37
anp-oai added a commit that referenced this pull request Jun 16, 2026
anp-oai added a commit that referenced this pull request Jun 16, 2026
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from de366e5 to 166ad66 Compare June 16, 2026 18:44
anp-oai added a commit that referenced this pull request Jun 16, 2026
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from 166ad66 to b5ed455 Compare June 16, 2026 19:00
anp-oai added a commit that referenced this pull request Jun 16, 2026
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from b5ed455 to 42b4b7e Compare June 16, 2026 20:26
anp-oai added a commit that referenced this pull request Jun 16, 2026
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from 42b4b7e to c5fabde Compare June 16, 2026 20:53
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch from b6c0886 to be6caaa Compare June 16, 2026 21:15
anp-oai added a commit that referenced this pull request Jun 16, 2026
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from c5fabde to d7de7ef Compare June 16, 2026 21:24
@anp-oai anp-oai force-pushed the codex/app-server-remote-environment-cwd branch from be6caaa to fa970c1 Compare June 16, 2026 21:34
Base automatically changed from codex/app-server-remote-environment-cwd to main June 16, 2026 21:42
@anp-oai anp-oai force-pushed the codex/remote-windows-path-requirements branch from d7de7ef to 6afd483 Compare June 16, 2026 21:44
Comment thread codex-rs/protocol/src/protocol.rs Outdated
Comment thread codex-rs/protocol/src/protocol.rs Outdated
@anp-oai anp-oai merged commit 4c79527 into main Jun 16, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/remote-windows-path-requirements branch June 16, 2026 23:17
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 2026
@openai openai unlocked this conversation Jun 16, 2026
@pakrym-oai

Copy link
Copy Markdown
Collaborator

@codex review this

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 4c79527e31

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

anp-oai added a commit that referenced this pull request Jun 17, 2026
## Why

#28152 jumped the gun on moving the rollout format to store URIs, and
would likely break compat with some features that don't go through the
same types as the core logic.

## What

Make `TurnContextItem.cwd` an `AbsolutePathBuf` again, remove test added
for `PathUri` serialization in rollouts. Also drops a bunch of error
paths that are no longer needed.
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