You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MXC blocks browser tools and shell commands when an unrelated network drive is disconnected #51665
On Windows, an unrelated disconnected mapped network drive prevented Chrome browser tools (cua.getState) and sandboxed shell commands from starting.
Error (drive letter redacted):
MXC launcher: enumerate MXC volume <mapped drive>: The specified network name is no longer available. (os error 64)
The workspace was on an accessible local drive and did not reference the disconnected network drive. Commands outside the sandbox worked. Resetting the browser tool did not resolve the failure.
Expected: an unavailable unrelated network drive should not prevent tools from launching.
Related: #50915. Please check handling of ERROR_NETNAME_DELETED (64) in inaccessible_volume().
Confirmed the same failure on Codex Desktop 26.1007.2314.0 with bundled CLI 0.162.0-alpha.17.2. Native execution stalled before the requested shell started, then returned the MXC volume enumeration error with Windows error 64.
Two mapped SMB drives pointed to a network that was no longer reachable. Removing the stale drive mappings, their remembered reconnect entries, and a remaining SMB mapping record restored native PowerShell, CMD, and Node execution without restarting Codex. Local file access also succeeded.
This provides a workaround for this instance. MXC should still tolerate an unavailable drive unrelated to the workspace.
A PowerShell InitializeDefaultDrives warning remains, although commands and local file access now succeed; its cause has not been established.
Additional confirmation — Windows error 1265
I encountered the same issue with ChatGPT/Codex Desktop version 26.1007.21434.
An unrelated, disconnected mapped network drive prevented Codex from executing even basic commands in local projects.
The MXC launcher reported:
MXC launcher: enumerate MXC volume X:
Windows authentication/domain controller failure
(os error 1265)
The affected projects were located on a local drive and had no relationship to the network mapping.
Resolution:
Confirmed that the mapped drive was disconnected and inaccessible.
Removed the unused mapping using net use X: /delete.
Retested Codex in two unrelated local projects.
Both projects immediately executed commands successfully.
No project files or security settings were modified.
This confirms that error 1265 is another failure mode associated with MXC enumerating unrelated, inaccessible network drives.
The workaround was successful, but MXC should ideally handle unavailable network volumes without preventing execution in unrelated local workspaces.
Matching public source: tag rust-v0.163.0-alpha.10.2, commit 4ebc485ca321243727539187169425fcf972f2c4.
The affected existing chat fails before PowerShell starts:
MXC launcher: enumerate MXC volume <unrelated mapped drive>: The specified network name is no longer available. (os error 64)
The workspace is on an accessible local drive. With [windows] allow_mxc = false in requirements.toml and sandbox = "elevated" in user config, a newly created chat can execute commands, while the existing affected chat continues to hit MXC. That chat-to-chat difference is observed; its persistence mechanism has not been established.
In codex-rs/mxc-sandbox/src/policy.rs, inaccessible_volume() does not recognize ERROR_NETNAME_DELETED (64). This error was verified on this Windows/Rust environment not to be covered by the existing ErrorKind checks. Proposed minimal change:
Extracted the actual original and changed predicate from the pinned source and compiled Windows Rust tests using constants from the installed Windows SDK. Original: the error-64 assertion fails. Changed: it passes; ERROR_INVALID_PARAMETER remains unrecognized.
Added the same two regression tests inside the actual policy module and ran:
cargo test --locked -p codex-mxc-sandbox volume_error_tests -- --nocapture
test result: ok. 2 passed; 0 failed; 20 filtered out
Toolchain: Rust 1.95.0, x86_64-pc-windows-msvc.
A full CLI build has now succeeded: cargo build --locked --offline -p codex-cli --bin codex (dev profile, debug symbols disabled). The resulting Windows executable reports codex-cli 0.163.0-alpha.10.2; both --version and app-server --help return exit code 0. The installed CLI's SHA-256 remains unchanged; the candidate has not been activated in the app.
Build reproducibility note: the release tag's lock file initially contained local workspace versions 0.0.0. Regenerating it normalized those to the release version; all external dependency versions and checksums were programmatically verified unchanged. This is a tested predicate-level fix candidate, not a claim of completed end-to-end MXC repair. No mapped drive was accessed, disconnected, or changed during this investigation; actual MXC launch was deliberately not used for validation because of the user's no-access constraint.
User impact: investigating this Codex failure consumed usage budget; the user reports reaching the five-hour limit and spending a personal rate-limit reset entitlement to continue debugging.
Please incorporate the appropriate error-64 handling and regression coverage into an upcoming Windows Codex update so users do not need to rebuild Codex or remove unrelated drive mappings.
Activity
github-actions commentedon Oct 7, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Phantomthedog commentedon Oct 11, 2026
Confirmed the same failure on Codex Desktop 26.1007.2314.0 with bundled CLI 0.162.0-alpha.17.2. Native execution stalled before the requested shell started, then returned the MXC volume enumeration error with Windows error 64.
Two mapped SMB drives pointed to a network that was no longer reachable. Removing the stale drive mappings, their remembered reconnect entries, and a remaining SMB mapping record restored native PowerShell, CMD, and Node execution without restarting Codex. Local file access also succeeded.
This provides a workaround for this instance. MXC should still tolerate an unavailable drive unrelated to the workspace.
A PowerShell
InitializeDefaultDriveswarning remains, although commands and local file access now succeed; its cause has not been established.volkhen commentedon Oct 12, 2026
Additional confirmation — Windows error 1265
I encountered the same issue with ChatGPT/Codex Desktop version 26.1007.21434.
An unrelated, disconnected mapped network drive prevented Codex from executing even basic commands in local projects.
The MXC launcher reported:
MXC launcher: enumerate MXC volume X:
Windows authentication/domain controller failure
(os error 1265)
The affected projects were located on a local drive and had no relationship to the network mapping.
Resolution:
No project files or security settings were modified.
This confirms that error 1265 is another failure mode associated with MXC enumerating unrelated, inaccessible network drives.
The workaround was successful, but MXC should ideally handle unavailable network volumes without preventing execution in unrelated local workspaces.
hayateppp commentedon Oct 19, 2026
Additional diagnosis and locally verified fix for Windows error 64.
Environment:
rust-v0.163.0-alpha.10.2, commit4ebc485ca321243727539187169425fcf972f2c4.The affected existing chat fails before PowerShell starts:
The workspace is on an accessible local drive. With
[windows] allow_mxc = falsein requirements.toml andsandbox = "elevated"in user config, a newly created chat can execute commands, while the existing affected chat continues to hit MXC. That chat-to-chat difference is observed; its persistence mechanism has not been established.In
codex-rs/mxc-sandbox/src/policy.rs,inaccessible_volume()does not recognizeERROR_NETNAME_DELETED (64). This error was verified on this Windows/Rust environment not to be covered by the existing ErrorKind checks. Proposed minimal change:Validation completed:
Toolchain: Rust 1.95.0, x86_64-pc-windows-msvc.
A full CLI build has now succeeded:
cargo build --locked --offline -p codex-cli --bin codex(dev profile, debug symbols disabled). The resulting Windows executable reportscodex-cli 0.163.0-alpha.10.2; both--versionandapp-server --helpreturn exit code 0. The installed CLI's SHA-256 remains unchanged; the candidate has not been activated in the app.Build reproducibility note: the release tag's lock file initially contained local workspace versions
0.0.0. Regenerating it normalized those to the release version; all external dependency versions and checksums were programmatically verified unchanged. This is a tested predicate-level fix candidate, not a claim of completed end-to-end MXC repair. No mapped drive was accessed, disconnected, or changed during this investigation; actual MXC launch was deliberately not used for validation because of the user's no-access constraint.User impact: investigating this Codex failure consumed usage budget; the user reports reaching the five-hour limit and spending a personal rate-limit reset entitlement to continue debugging.
Please incorporate the appropriate error-64 handling and regression coverage into an upcoming Windows Codex update so users do not need to rebuild Codex or remove unrelated drive mappings.