Skip to content

Preserve local path conventions in automatic approvals - #32261

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3fd31cfb4e8b46f9968ff66d5e986ca777430185
Jul 10, 2026
Merged

Preserve local path conventions in automatic approvals#32261
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3fd31cfb4e8b46f9968ff66d5e986ca777430185

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 10, 2026

Copy link
Copy Markdown

Preserve local path conventions in automatic approvals

Why

Drive-shaped POSIX paths such as /C:/workspace can be mistaken for Windows
paths when an automatic approval request converts them from PathUri.

What changed

  • Keep approval paths as PathUri values together with their environment ID
    until the automatic review request is built.
  • Recover host-native paths for local working directories when strict
    conversion cannot determine the path convention.
  • Continue rejecting incompatible paths from remote environments.

Testing

Add coverage for drive-shaped local POSIX paths, foreign remote paths, and
preserving apply-patch path URIs while building approval actions.

## Why

Drive-shaped POSIX paths such as `/C:/workspace` can be mistaken for Windows
paths when an automatic approval request converts them from `PathUri`.

## What changed

- Keep approval paths as `PathUri` values together with their environment ID
  until the automatic review request is built.
- Recover host-native paths for local working directories when strict
  conversion cannot determine the path convention.
- Continue rejecting incompatible paths from remote environments.

## Testing

Add coverage for drive-shaped local POSIX paths, foreign remote paths, and
preserving apply-patch path URIs while building approval actions.

GitOrigin-RevId: 3fd31cfb4e8b46f9968ff66d5e986ca777430185
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3fd31cfb4e8b46f9968ff66d5e986ca777430185 branch from 33cf8e5 to b66c25c Compare July 10, 2026 20:19
@copyberry
copyberry Bot merged commit b66c25c into main Jul 10, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3fd31cfb4e8b46f9968ff66d5e986ca777430185 branch July 10, 2026 20:20
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 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.

1 participant