Skip to content

apply-patch: carry paths as PathUri#28854

Merged
anp-oai merged 6 commits into
mainfrom
codex/apply-patch-path-uri
Jun 18, 2026
Merged

apply-patch: carry paths as PathUri#28854
anp-oai merged 6 commits into
mainfrom
codex/apply-patch-path-uri

Conversation

@anp-oai

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

Copy link
Copy Markdown
Collaborator

Why

Allows the model to edit files that are hosted on a different OS than where app-server is running.

What

  • Use PathUri for apply_patch-internal data structures
  • Limit PathUri -> AbsolutePathBuf conversion to cases where the inferred path convention matches the host OS, allows requiring valid paths to pass to perms check
  • Adds PathConvention::path_segments() for iterating over path segments regardless of OS
  • Handle cross-platform relative paths in path filename parsing for sniffing a shell
  • Ensure we can apply patches in the wine e2e test

Base automatically changed from codex/unified-exec-path-uri-events to main June 18, 2026 05:00
@anp-oai anp-oai force-pushed the codex/apply-patch-path-uri branch from 4c29479 to 1f21171 Compare June 18, 2026 05:01
Comment thread codex-rs/core/src/tools/runtimes/apply_patch_tests.rs Outdated
anp-oai added a commit that referenced this pull request Jun 18, 2026
@anp-oai anp-oai marked this pull request as ready for review June 18, 2026 05:52
@anp-oai anp-oai requested a review from a team as a code owner June 18, 2026 05:52
@anp-oai

anp-oai commented Jun 18, 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. Keep it up!

Reviewed commit: ad51632d5c

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

anp-oai added a commit that referenced this pull request Jun 18, 2026
Comment thread codex-rs/utils/path-uri/src/lib.rs Outdated
anp-oai added a commit that referenced this pull request Jun 18, 2026
anp-oai added a commit that referenced this pull request Jun 18, 2026
anp-oai added a commit that referenced this pull request Jun 18, 2026
@anp-oai anp-oai force-pushed the codex/apply-patch-path-uri branch from 52a32b6 to 566b12f Compare June 18, 2026 17:47
@anp-oai anp-oai enabled auto-merge (squash) June 18, 2026 17:56
anp-oai added a commit that referenced this pull request Jun 18, 2026
anp-oai added a commit that referenced this pull request Jun 18, 2026
anp-oai added a commit that referenced this pull request Jun 18, 2026
@anp-oai anp-oai force-pushed the codex/apply-patch-path-uri branch from 566b12f to 647d9ed Compare June 18, 2026 18:31
anp-oai added a commit that referenced this pull request Jun 18, 2026
anp-oai added a commit that referenced this pull request Jun 18, 2026
anp-oai added a commit that referenced this pull request Jun 18, 2026
@anp-oai anp-oai force-pushed the codex/apply-patch-path-uri branch from 647d9ed to 82e6e0c Compare June 18, 2026 18:52
@anp-oai anp-oai force-pushed the codex/apply-patch-path-uri branch from 82e6e0c to d783cdf Compare June 18, 2026 19:14
@anp-oai anp-oai merged commit 0f89dd7 into main Jun 18, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/apply-patch-path-uri branch June 18, 2026 19:31
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 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