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
[Bug]: Windows junction-backed CODEX_HOME prevents Codex accounts from loading #5864
On Windows, when the default %USERPROFILE%/.codex directory is a junction to another volume, the installed OpenCodeX desktop binary cannot canonicalize the effective Codex home during native-profile admission. The Codex account settings endpoint then returns HTTP 500 instead of the configured account list. I expected the existing Codex accounts to load normally.
Reproduction
On Windows, make %USERPROFILE%/.codex a directory junction to another local volume (for example, D:/CodexState), retaining a valid Codex home and account pool.
Install OpenCodeX 2.66.0 for Windows and launch the bundled proxy without setting CODEX_HOME.
Open the Codex account settings view, or call the authenticated GET /api/codex-auth/accounts management route.
Observe HTTP 500 with NativeProfileError: The effective CODEX_HOME is not an accessible directory. The related request path can also report an EUNKNOWN filesystem error while probing auth.json.
Set CODEX_HOME to the physical junction target and restart OpenCodeX; the same binary returns HTTP 200 and the existing three pool accounts load.
Version
OpenCodeX 2.66.0 (Windows installer)
Operating system
Windows 11 23H2 (10.0.22631)
Provider and model
Logs or error output
NativeProfileError: The effective CODEX_HOME is not an accessible directory. from native profile context resolution, followed by HTTP 500 for GET /api/codex-auth/accounts.
Screenshots and supporting files
Redacted configuration
%USERPROFILE%/.codex is a directory junction to a physical Codex home on another local volume. No tokens or account identifiers are included here.
Checks
I searched existing issues and documentation.
I removed secrets, tokens, account details, request credentials, and personal data.
Activity
lidge-jun commentedon Sep 26, 2026
Fixed on
devby #5865, carried in #5901 (merge dd1e327). It ships with the next release.fix(codex): canonicalize junction-backed default Codex home (lidge-ju…
merge: sync upstream v2.67.0 stable (e70b3d8..4bc9229)