Repository navigation
Description
Summary
On 2026-10-14 (Asia/Macau, UTC+08:00), the Windows Microsoft Store/MSIX Codex desktop package OpenAI.Codex 26.1007.9446.0 launched background ChatGPT.exe processes but never created a visible window. Repeated Start menu/taskbar activation did nothing. This remained reproducible after a complete uninstall/reinstall and a first launch with no restored app profile. The independently installed OpenAI.CodexBeta 26.727.4816.0 opened a visible window on the same machine.
Environment
- Windows x64, OS build 26100.7171
- Stable package:
OpenAI.Codex_26.1007.9446.0_x64__2p2nqsd0c76g0 - Previously installed stable package:
26.1007.2314.0 - Beta package used as a comparison:
OpenAI.CodexBeta 26.727.4816.0 - Codex CLI
0.156.1remained usable (with separate, nonfatal arg0 access warnings)
Observed timeline (local UTC+08:00)
- The Store installed stable build
26.1007.9446.0around 14:24. The older desktop run's last log entry was at 17:58:58. - Around 17:59:39–40, Windows registered/activated the updated package. Subsequent launches created
ChatGPT.exeprocesses, but no renderer and no visible window. Eight TWinUI activations between 18:00 and 18:05 reported successful activation without a window. - A fresh user-data directory launched under an elevated token still showed zero visible windows over 60 seconds. An AUMID launch likewise showed zero windows over 45 seconds.
- At 18:56–19:01 the stable package was uninstalled and reinstalled from Microsoft Store. Its first launch with no restored profile produced five processes, zero windows, and no new desktop log directory. Restoring the saved profile did not change the result.
- At 19:09–19:14, Codex Beta was installed as a separate package family. Its window appeared within about 20 seconds and its desktop logs began updating.
Diagnostics and limits
- For the stable app, the main process was present and reported
Responding=True, whileMainWindowHandle=0. No--type=rendererprocess was observed in the affected run. - Cold-start stderr showed an app-generated restart command line containing
--no-startup-window --restore-last-session --restart, plusCommand line too long for RegisterApplicationRestart. These are clues, not an established root cause. - A
crashpad OpenProcess: Access denied (0x5)message occurred only in a restricted-token probe and disappeared under elevation; it should not be treated as the failure cause. - Old-package deletion errors (AppXDeployment 471/493) and pre-failure
cloudflare_challenge403 entries were also observed. The clean reinstall and no-profile reproduction prevent attributing the no-window symptom to those entries alone. - No new stable desktop log, CrashDump, or WER crash report was available for the no-window reproduction.
Expected behavior
The stable desktop package should create a visible window or surface a usable startup error. Please investigate the stable 26.1007.9446.0 startup/renderer path and advise on a supported workaround. The Beta build works on this machine, but stable remains installed and starts headlessly.
This report was prepared from local diagnostic notes at the affected user's request. It includes no account identifiers, credentials, conversation contents, backup archives, or raw logs.
Activity
github-actions commentedon Oct 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
zhankuian commentedon Oct 17, 2026
Root cause found: on a non-ASCII Windows username, the app resolves the user profile through an ANSI (CP936/GBK) round-trip and then works against a mangled, non-existent path
Reproduced and fixed on a second machine. The launch failure is not a broken package,
broken ACLs or a bad Known Folder registration — nothing on disk is wrong. The app
computes the user profile with an ANSI code-page conversion, gets a mojibake path, and
then tries to use that path.
Environment
10.0.26300x64, system ANSI code page 936 (GBK)OpenAI.Codex_26.1013.3656.0_x64__2p2nqsd0c76g0(Store product9PLM9XGG6VKS)OpenAI.CodexBeta_26.727.4816.0_x64__2p2nqsd0c76g0is affected too (fails one step later)Evidence 1 — every profile path in the app's own logs is mojibake
%LOCALAPPDATA%\Codex\Logs\...\codex-desktop-*.log, raw bytes of the user-name segment:So the app's internal string is
U+057Dfollowed by fourU+FFFD— not the real name.Evidence 2 — that mojibake is exactly "GBK bytes decoded as UTF-8"
The real user name is 3 CJK characters. Its GBK encoding is 6 bytes:
Decoding those 6 bytes as UTF-8 (
MultiByteToWideCharreplaces each invalid byte withU+FFFD) yields
d5 bd → U+057D, then four single-byte failures → four U+FFFD.Byte-for-byte identical to what the logs contain.
Evidence 3 — the mangled directory really exists on disk, and the app populated it
.desktop-createdis written by the packaged app itself (startup-requirements-*.js,mkdir(home)thenwriteFile(join(home, '.desktop-created'), '', { flag: 'wx' })).The relocated
codex.exeruntime lives there too. So the app genuinely believes theuser profile is
<mangled>, not<real>.Evidence 4 — the failure mechanism is a permission error, not a missing path
That tree is created directly under
C:\Users, so it inherits theC:\UsersACL:BUILTIN\Usersgets0x1200a9(read + execute, no write). It never receives theper-user Full-Control ACE that a real profile directory has. A normal-privilege process:
Which is exactly what the beta build surfaces to the user:
Why this matches this issue's symptoms
app.getPath('appData')— the ANSI-derived profile leads toa
%APPDATA%that cannot be created (SHGetFolderPath(CSIDL_APPDATA | CREATE)fails),so Electron raises
Failed to get 'appData' pathand the window never appears.mkdirunder the mangled Codex home.Folder registry values, and removing orphan-SID ACEs all change nothing — because the
defect is the path string, not anything stored on the machine. Which is why this
issue has survived every repair attempt reported so far.
Verified checks on the affected machine (all correct, all irrelevant to the bug)
HKLM\...\ProfileList\<SID>\ProfileImagePathHKCU\Volatile EnvironmentUSERPROFILE/APPDATA/LOCALAPPDATAUser Shell Folders/Shell FoldersSHGetKnownFolderPath(FOLDERID_RoamingAppData / LocalAppData / Profile)hr=0x00000000, correct pathsWorking workaround (verified: the stable build now opens normally)
Replace the mangled directory with a directory junction pointing at the real profile, so
every path the app derives from the mangled prefix resolves into the real
%APPDATA%/%LOCALAPPDATA%/~/.codex:Before:
mkdir <mangled>\.codex\__probe→WinError 5; stable build exits with no window.After: same
mkdirsucceeds; the stable build shows its main window, the renderer andapp-server handshake both complete, and no
Failed to get 'appData' pathis logged.Additional confirmation — the app writes mangled profile paths into its own config on every launch
~/.codex/config.tomlreceives 9 entries with the mangled profile every time the appstarts. Verified by hand-correcting all 9 to the real user name (0 left), then restarting
the app once — all 9 came back:
The same file contains 50 other occurrences of the profile path written correctly, so
only these specific code paths go through the ANSI conversion — which should narrow down
where to look.
Durability check
The junction workaround was re-tested after a full machine reboot (
LastBootUpTimeadvanced, brand-new app PIDs): junction intact,
mkdirthrough it still succeeds, and thefirst post-boot startup log has zero hits for
Failed to get/EPERM/bootstrap failed/fatal_error, withinitialize_handshake_result outcome=success.Suggested fix on your side
Find the ANSI-profile-path call (
GetEnvironmentVariableA/SHGetFolderPathA/getenvon Windows, or a child process whose stdout is decoded as UTF-8) and use thewide (
...W) / UTF-8 equivalent. A user name containing non-ASCII characters should notchange where the app stores its data.
No account identifiers, credentials or raw logs included; the user name is
<user>/<mangled>on purpose.