Skip to content

path-uri: render native paths across platforms#27819

Merged
anp-oai merged 15 commits into
mainfrom
codex/cross-platform-path-rendering
Jun 14, 2026
Merged

path-uri: render native paths across platforms#27819
anp-oai merged 15 commits into
mainfrom
codex/cross-platform-path-rendering

Conversation

@anp-oai

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

Copy link
Copy Markdown
Collaborator

Why

We're moving to PathUri in more places to support cross-OS app-server/exec-server, but we don't want to expose the URI encoding to users of app-server's public APIs yet.

We'll need to translate at the app-server API boundary between client-visible "regular" paths that are appropriate for the OS of the environment for which the paths make sense, which means using the environment's path personality to do the conversion.

PathUri doesn't yet attempt to encode environment ID, so for now we'll sniff the most likely path convention for a given path.

What

  • Add PathConvention and NativePathString with host-independent POSIX, Windows drive, and UNC rendering.
  • Cover cross-host rendering, encoding, Unicode, invalid components.

@anp-oai anp-oai force-pushed the codex/cross-platform-path-rendering branch from 187ee86 to f773a8e Compare June 12, 2026 23:29
@anp-oai anp-oai changed the base branch from main to codex/infallible-path-uri June 12, 2026 23:29
Base automatically changed from codex/infallible-path-uri to main June 12, 2026 23:58
@anp-oai anp-oai force-pushed the codex/cross-platform-path-rendering branch from d92bef6 to b31483c Compare June 13, 2026 00:02
@anp-oai anp-oai marked this pull request as ready for review June 13, 2026 00:04
@anp-oai anp-oai requested a review from a team as a code owner June 13, 2026 00:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b31483c038

ℹ️ 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/exec-server/src/protocol.rs Outdated
anp-oai added a commit that referenced this pull request Jun 13, 2026
Comment thread codex-rs/exec-server/src/protocol.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/api_path_string_tests.rs
anp-oai added a commit that referenced this pull request Jun 13, 2026
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/api_path_string.rs
Comment thread codex-rs/utils/path-uri/src/native_path_string_tests.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/native_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/api_path_string.rs
Comment thread codex-rs/utils/path-uri/src/api_path_string_tests.rs Outdated
Comment thread codex-rs/utils/path-uri/src/api_path_string_tests.rs Outdated
Comment thread codex-rs/utils/path-uri/src/api_path_string_tests.rs
anp-oai added a commit that referenced this pull request Jun 13, 2026
Comment thread codex-rs/utils/path-uri/src/api_path_string.rs Outdated
Comment thread codex-rs/utils/path-uri/src/tests.rs
Comment thread codex-rs/utils/path-uri/src/tests.rs
Comment thread codex-rs/utils/path-uri/src/api_path_string.rs Outdated
anp-oai added a commit that referenced this pull request Jun 14, 2026
@anp-oai anp-oai force-pushed the codex/cross-platform-path-rendering branch from 3971173 to b19077b Compare June 14, 2026 05:09
@anp-oai anp-oai enabled auto-merge (squash) June 14, 2026 05:10
@anp-oai anp-oai merged commit 5e9249e into main Jun 14, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/cross-platform-path-rendering branch June 14, 2026 05:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 14, 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