Skip to content

Windows Desktop apply_patch rejects C: workspace symlink while effective writable root is D: #58213

Open

Description

@slackmasterstan

What version of the Codex App are you using?

  • ChatGPT Windows Desktop: 26.1007.2314.0
  • Bundled Codex CLI/runtime present: 0.162.0-alpha.17.2
  • Active app-server daemon present: 0.166.0
  • Separately installed standalone Codex CLI: 0.163.0 (not confirmed to implement this session's apply_patch call)

What platform is your computer?

Windows 11 x64, native Windows Codex integrated into ChatGPT Desktop.

What issue are you seeing?

The native apply_patch tool refuses an authorized project file when addressed through the workspace's canonical C: path, reporting:

Failed to read file to update ...: path contains a reparse point

In this setup, C:\My Drive is an actual directory symbolic link to D:\My Drive. The C: and D: paths resolve to the same repository and files. Read-only checks confirmed matching filesystem file IDs and identical Git root, HEAD, and working-tree status through both paths. Thus, the path does traverse a reparse point, but it is the user's configured alias for the same workspace.

The session permission metadata grants workspace-write access, but its effective writable roots are under D:\My Drive\Projects\Coding. Meanwhile, C:\Users\<user>\.codex\config.toml lists the corresponding roots under C:. This is an observed mismatch between configured and effective roots.

Earlier sessions had successfully edited through the C: path, but there is no saved per-session policy/runtime snapshot to identify exactly what changed. The local evidence establishes recent runtime installation activity, not that a particular update caused this failure. The standalone CLI version also does not identify the implementation handling Desktop's patch call.

A separate shell attempt reported that the Windows unelevated restricted-token sandbox could not enforce split writable-root sets and refused to run unsandboxed. That is a separate sandbox enforcement error; the apply_patch call itself reported the reparse-point error. No file write was attempted through an alternate path.

Expected behavior

Codex should honor the authorized workspace when a configured drive-letter path traverses a symlink that maps to the same underlying directory as an effective writable root, while preserving protection against unintended reparse-point traversal. Alternatively, it should report the configured/effective root mismatch clearly and provide a supported way to reconcile it.

Steps to reproduce

  1. On Windows, configure/open a workspace under a path such as C:\My Drive\Projects\Coding\<repo> where C:\My Drive is a directory symlink to D:\My Drive.
  2. Start a Codex Desktop workspace-write session whose effective writable roots name the mapped D: path while the on-disk Codex config names C:.
  3. Ask Codex to update an existing file using native apply_patch and target the canonical C: path.
  4. Observe the path contains a reparse point rejection before any file is changed.

Repository and file names are omitted. No settings or project files were changed during diagnosis.

Related reports

This report concerns a path that really does traverse a symlink, plus the mismatch between the canonical C: workspace path and the session's effective D: writable roots.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions