Codex GUI exits immediately on Windows when user profile path contains Korean characters
What version of the Codex App are you using (From “About Codex” dialog)?
v0.140.0-alpha.2
What subscription do you have?
ChatGPT Plus
What platform is your computer?
_No response_
What issue are you seeing?
Environment
- OS: Windows 11
- Codex Version: v0.140.0-alpha.2
- Installation: Microsoft Store
- User Profile Path: C:\Users\김혜진
Issue
Codex CLI works normally, but Codex GUI exits immediately after launch.
The process appears briefly in Task Manager and then disappears.
No visible error message is shown.
What I tested
- Reinstalled Codex
- Reset / Repair from Windows Apps settings
- Removed ~/.codex
- Removed %LOCALAPPDATA%\OpenAI\Codex
- Removed runtime cache
- Reinstalled multiple times
None of the above resolved the issue.
Important Finding
I created a new Windows account with an English-only profile path:
C:\Users\codextest
On the same machine:
- Codex GUI works correctly under the English account
- Codex GUI immediately exits under the Korean account
CLI works correctly in both accounts.
Runtime Behavior
Under the Korean profile, Codex repeatedly creates staging directories:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node
Examples:
.staging-789504f803e82e2b-12Mxqj
.staging-789504f803e82e2b-88KOd3
.staging-789504f803e82e2b-rshvii
No final runtime directory is ever created.
Log Observation
Sandbox logs show corrupted user path encoding.
Expected:
C:\Users\김혜진\.codex\...
Observed:
C:\Users\源?쒖쭊\.codex\...
This suggests a Unicode/path encoding issue during runtime setup.
Expected Behavior
Codex GUI should launch normally regardless of whether the Windows user profile path contains non-ASCII characters.
Actual Behavior
GUI exits immediately while CLI continues to function correctly.
What steps can reproduce the bug?
- Create or use a Windows 11 account whose profile path contains Korean characters.
Example:
C:\Users\김혜진
- Install Codex from Microsoft Store.
- Launch Codex from the Start Menu.
- Observe that Codex briefly appears in Task Manager and then exits immediately.
- Open PowerShell and run Codex CLI directly:
& "C:\Users\김혜진\AppData\Local\OpenAI\Codex\bin\<version>\Codex.exe"
- Observe that the CLI works correctly.
- Create a new Windows account with an ASCII-only profile path.
Example:
C:\Users\codextest
- Install and launch Codex under the new account.
- Observe that the GUI launches successfully.
Additional observation:
- Under the Korean profile, Codex repeatedly creates:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\.staging-*
- No final runtime directory is created.
- Sandbox logs show corrupted path encoding for the user profile directory.
What is the expected behavior?
_No response_
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
It seems that any non-english user name would cause this bug , the bug appears in my PC(a Chinese username )by continueing generating .stage folders.
I can reproduce this issue.
Environment:
Observed:
Opening Codex Desktop workspace C:\Users\정원혁...
Runtime state:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node
Only empty .staging-* directories are created.
No final runtime directory is generated.
I removed the runtimes directory and retried multiple times. The issue persists.
Additional repro from a Chinese Windows username on zh-CN / CP936. This looks like the same non-ASCII user-profile path issue, but the mojibake variant is especially clear here.
Bug report: Codex for Windows creates mojibake user-profile paths for a Chinese username and repeatedly stages runtime files
Summary
Codex for Windows appears to mishandle a non-ASCII Windows user profile path. On this machine, the real Windows user profile is:
Codex also created and/or wrote to a mojibake variant of that path:
The mojibake string is exactly what results when the UTF-8 bytes of
以日记以年忘are decoded as GBK/CP936. This strongly suggests a UTF-8 vs GBK path encoding bug on Windows.Impact
.staging-*directories totaling about 4 GB.Environment
Evidence
Correct Codex runtime cache:
Mojibake Codex runtime cache:
The bad directory contains repeated runtime staging folders such as:
Encoding confirmation:
Expected behavior
Codex should consistently use the real Windows user profile path:
It should not create or write to a mojibake path derived from incorrectly decoding the username.
Actual behavior
Codex writes to both:
The mojibake path contains repeated incomplete runtime staging directories, which appear to cause wasted disk usage and likely startup/runtime slowdown.
Possible cause
Some Windows path handling code appears to treat UTF-8 bytes as GBK/CP936 text, or otherwise round-trip the user profile path through a non-Unicode code page. This may happen in the runtime downloader/extractor/cache initialization path for
cua_node.Workaround attempted / suggested
C:\CodexorD:\Codex.%USERPROFILE%paths containing non-ASCII characters..staging-*directories under the mojibake path after fully quitting Codex.Please check the Windows app runtime cache/downloader path handling for non-ASCII user profile names, especially on zh-CN systems using code page 936.