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
Desktop app (Windows): runtime extraction after every update takes 15+ min at ~5 files/sec, looks like a hang #45179
Title suggestion: Desktop app (Windows): runtime extraction after every update takes 15+ min at ~5 files/sec, looks like a hang
Environment:
Windows 11 Home China 10.0.26200
ChatGPT desktop (MSIX) v26.908.4834.0 (reproduced on v26.901 and v26.903 as well)
Symptom:
After every app update, the first launch shows no window for ~15 minutes. The process tree is alive and burning CPU, so it looks like a hang. Users (me included) assume it crashed and force-kill it — which restarts the copy from scratch on the next launch, making it look like an infinite hang loop.
Live diagnosis (v26.908, today):
Monitoring %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\.staging-<hash>-<rand>\ during a "hung" launch shows the app re-copying ~4,700 files from the encrypted MSIX:
measured live: 2,436 → 2,486 files in 10s = 5.2 files/sec (~15 min total for 4,684 files)
app CPU clearly active during the copy (8.1 CPU-seconds in a 10s window)
small-file write benchmark on the same machine/disk: ~290 files/sec — so the bottleneck is not disk I/O
After the copy finishes (~15 min), the app promotes the staging dir to the final hash dir, cleans up staging, and starts normally.
Manually extracting app/resources/* from a downloaded plaintext MSIX into the target hash directory skips the copy entirely and the app starts in seconds — confirming the bottleneck is the per-file decrypt/copy of MSIX-encrypted resources, not antivirus or disk.
Impact:
Every user hits this on every update. The windowless 15-minute "hang" after updates reads as a crash, and force-killing makes it worse. This is very likely generating a steady stream of "app won't start" support load and uninstalls.
Suggestions:
Show a progress indicator (or any window) while extracting runtime files after an update
Cache/reuse unchanged files between versions instead of re-copying all ~4,700
Or ship runtimes as plaintext payload so no per-file decrypt is needed
Happy to provide logs if useful. This has reproduced consistently across the last 4 app updates.
Follow-up: root cause found — staged package files carry FILE_ATTRIBUTE_ENCRYPTED; the per-file decrypt/copy fails (or crawls) on Windows Home
This also explains #45256. I have two Windows 11 Home machines on build 26200.9445 (identical UBR) running the same Codex versions — one fails exactly as described there (background processes start, no window is ever created), the other works. Comparing them isolated the cause.
What happens on the failing machine (Codex 26.908.4834.0)
Every file in the staged package is flagged encrypted — all 5,514 files under C:\Program Files\WindowsApps\OpenAI.Codex_26.908.4834.0_x64__2p2nqsd0c76g0\ carry FILE_ATTRIBUTE_ENCRYPTED (cipher /c reports them as application-protected).
On Windows Home, EFS cannot encrypt: cipher /k returns "The request is not supported", and setting FILE_ATTRIBUTE_ENCRYPTED on a normal file is a silent no-op.
On startup the app deploys its bundled runtime (app\resources\cua_node, ~4,100 files) to %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash> via Node fs.copyFile (CopyFileW). Copying an Encrypted-attributed file on Home fails deterministically: UNKNOWN: unknown error, copyfile (ERROR_ENCRYPTION_FAILED).
Controlled experiment — two machines, identical edition/build/UBR
Machine A (fails)
Machine B (works)
Edition / build / UBR
Home / 26200.9445
Home / 26200.9445
Codex version
26.908.4834.0
26.903.9818.0
Staged package files
5,514 / 5,514 Encrypted
0 Encrypted
Default Appx volume
D:\WindowsApps (secondary drive)
C:\Program Files\WindowsApps (system volume)
Runtime deploy after update
CopyFileW fails → no window
succeeds
What fixed it
Switched the default Appx volume back to the system volume (Settings → System → Storage → "Where new content is saved" → C:), uninstalled, reinstalled from the Store. Fresh staging on the system volume: 5,514 files, 0 Encrypted — the app's own runtime deploy now completes normally.
(Interim workaround: a scheduled task that detects the abandoned .staging-* dirs, kills the app's processes, and completes the runtime with robocopy /E, which reads the encrypted source fine and writes clean plaintext files.)
Activity
github-actions commentedon Sep 13, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
huangzi-d commentedon Sep 14, 2026
Follow-up: root cause found — staged package files carry
FILE_ATTRIBUTE_ENCRYPTED; the per-file decrypt/copy fails (or crawls) on Windows HomeThis also explains #45256. I have two Windows 11 Home machines on build 26200.9445 (identical UBR) running the same Codex versions — one fails exactly as described there (background processes start, no window is ever created), the other works. Comparing them isolated the cause.
What happens on the failing machine (Codex 26.908.4834.0)
C:\Program Files\WindowsApps\OpenAI.Codex_26.908.4834.0_x64__2p2nqsd0c76g0\carryFILE_ATTRIBUTE_ENCRYPTED(cipher /creports them as application-protected).cipher /kreturns "The request is not supported", and settingFILE_ATTRIBUTE_ENCRYPTEDon a normal file is a silent no-op.app\resources\cua_node, ~4,100 files) to%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash>via Nodefs.copyFile(CopyFileW). Copying an Encrypted-attributed file on Home fails deterministically:UNKNOWN: unknown error, copyfile(ERROR_ENCRYPTION_FAILED)..staging-*directories mid-copy, shows no error, and the app keeps running half-deployed — background processes alive, renderer/app-server dead, main window never created (the ChatGPT Windows app hangs on launch on Windows build 26200; background processes start but no window is created #45256 symptom). Bundled plugin staging fails the same way on every startup (... UNKNOWN: unknown error, copyfile ... .app.json).Controlled experiment — two machines, identical edition/build/UBR
What fixed it
Switched the default Appx volume back to the system volume (Settings → System → Storage → "Where new content is saved" → C:), uninstalled, reinstalled from the Store. Fresh staging on the system volume: 5,514 files, 0 Encrypted — the app's own runtime deploy now completes normally.
(Interim workaround: a scheduled task that detects the abandoned
.staging-*dirs, kills the app's processes, and completes the runtime withrobocopy /E, which reads the encrypted source fine and writes clean plaintext files.)