Skip to content

Infer Windows UNC paths with forward and mixed slashes - #49424

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/720893de517addb7a938e6784d1ed0f05df3ec0d
Sep 30, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/720893de517addb7a938e6784d1ed0f05df3ec0d

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Infer Windows UNC paths with forward and mixed slashes

Why

LegacyAppPathString treated //server/share/project as POSIX, losing its UNC interpretation when inferring a PathUri.

What changed

Infer Windows syntax whenever an API path starts with two separators, including forward and mixed slashes, independently of the host. For example, //server/share/project now converts to file://server/share/project. Double-slash POSIX paths require an explicit PathConvention::Posix; inferred paths still undergo validation.

Testing

Add regression tests for UNC and namespace paths, mixed separators, URI serialization round trips, explicit POSIX conversion, convention mismatches, and malformed UNC paths.

## Why

`LegacyAppPathString` treated `//server/share/project` as POSIX, losing its UNC interpretation when inferring a `PathUri`.

## What changed

Infer Windows syntax whenever an API path starts with two separators, including forward and mixed slashes, independently of the host. For example, `//server/share/project` now converts to `file://server/share/project`. Double-slash POSIX paths require an explicit `PathConvention::Posix`; inferred paths still undergo validation.

## Testing

Add regression tests for UNC and namespace paths, mixed separators, URI serialization round trips, explicit POSIX conversion, convention mismatches, and malformed UNC paths.

GitOrigin-RevId: 720893de517addb7a938e6784d1ed0f05df3ec0d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/720893de517addb7a938e6784d1ed0f05df3ec0d branch from 9d8ee2b to d1d0e89 Compare September 30, 2026 01:28
@copyberry
copyberry Bot merged commit d1d0e89 into main Sep 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/720893de517addb7a938e6784d1ed0f05df3ec0d branch September 30, 2026 01:28
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 30, 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