Repository navigation
Description
Summary
After updating the Windows desktop app, switching back from another application and opening existing chats repeatedly freezes the interface. This has recurred across four diagnosed desktop builds in September. Materializing the current package's missing cua_node cache restores responsiveness until a later update changes the runtime hash.
Related: #45593, #45858, #46748 (runtime rename failures), and #47770 (synchronous runtime materialization blocks the main thread). This report adds repeated focus/chat-navigation stalls after the main window is already usable, current-build measurements, and before/after recovery evidence.
Environment
- Desktop MSIX package: OpenAI.Codex_26.928.2636.0_x64__2p2nqsd0c76g0.
- Windows x64, version 23H2, OS build 22631.6199.
- Installed package executable has a valid OpenAI Authenticode signature.
- Observation date: 2026-09-30. Timestamps below are UTC.
- Expected runtime cache: %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\be2aaea167c12e53.
- Before repair, that directory was absent; the previous b63ee7ee40c23b77 cache still existed.
Reproduction observed on this machine
- Update the packaged desktop app to a build with a new bundled runtime hash.
- Launch it; the main UI becomes usable but runtime deployment keeps failing.
- Switch to another Windows application and back.
- Open an existing chat that has not yet been loaded in this app session.
- Observe repeated unresponsive intervals and the same runtime relocation errors.
- After the matching runtime cache is successfully created outside the desktop process, repeat the switches: responsiveness returns without restarting the desktop app.
This is an observed affected-machine sequence, not a claim that all Windows installations reproduce it.
Current-build evidence before repair
Between 12:15:31.371Z and 12:26:06.030Z, the live desktop main log recorded 55 bundled_executable_relocation_failed events, all with operation=rename_staging and errorCode=EPERM. Underlying errors report errno=-4048 and syscall=rename.
Selected normalized fields; personal paths, chat identifiers, and stack traces omitted:
bundled_executable_relocation_failed
operation=rename_staging errorCode=EPERM
errno=-4048 syscall=rename
destinationPath=%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\be2aaea167c12e53
bundled_plugins_reconcile_started reason=focus
... runtime relocation failure ...
bundled_plugins_reconcile_failed
- Three measured focus reconciliation failures lasted 7,456 ms, 5,324 ms, and 10,897 ms.
- Two cold chat navigations took 19,167.6 ms and 13,911.5 ms.
- Corresponding thread hydration spans took 18,505.1 ms and 13,683.9 ms. The runtime_resume_started -> runtime_resume_finished intervals were only 336 ms and 224 ms; much of the delay occurred before runtime resume began.
- Six main_thread_jank_snapshot events were present at the baseline capture.
Read-only inspection of the current installed bundle, application-network-startup-D74LEWDz.js, shows the cua_node resolver recursively copying the runtime with synchronous filesystem operations and calling renameSync on the staging directory. Its failure path removes the staging tree and throws unless a valid destination already exists. The missing cache remains eligible for another full attempt on later resolution. The code and observed repeated failures support a local initialization/retry contribution to these freezes.
The underlying Windows reason for EPERM has not been established. No blocking-handle or filter-driver trace was captured, so this report does not attribute it to antivirus, ACLs, or a specific race.
Recovery and verification
At 12:26:45.528Z:
- Backed up the previous runtime cache.
- Copied the complete cua_node tree from this exact signed installation into a separate staging directory, then renamed it to the expected hash directory.
- Verified file sizes and SHA-256 equality for all 2,367 files (251,349,204 bytes) before and after publishing the directory.
- Did not change the signed application, network/proxy settings, security settings, chat data, or configuration.
Through 12:28:20.444Z:
- Zero new runtime relocation failures.
- Zero new bundled plugin reconciliation failures.
- Zero new main_thread_jank_snapshot events.
- The first post-repair focus reconciliation completed successfully in 3,457 ms.
- Two recorded warm chat navigation spans were 341.7 ms and 228.6 ms.
- The user explicitly confirmed that switching was normal again after being asked to test both window switching and an existing chat.
The recorded post-repair navigation spans are warm, so they are not a controlled cold-versus-cold benchmark. The observation window is short. This is a current-version workaround, not proof of a permanent fix.
Recurrence history on the same machine
| Diagnosed date | Desktop version | Expected runtime hash | Observation |
|---|---|---|---|
| Sep 19 | 26.915.4065.0 | df473e5367fa2b42 | Repeated focus initialization failures, roughly 5–13 seconds |
| Sep 23 | 26.917.8451.0 | 7f75cff94511d5f8 | Focus stalls around 5–10 seconds; cold navigation 10.6–17.6 seconds |
| Sep 27 | 26.924.2738.0 | b63ee7ee40c23b77 | Same EPERM/rename failure; navigation timed out around 30 seconds |
| Sep 30 | 26.928.2636.0 | be2aaea167c12e53 | 55 relocation failures; current measurements above |
Matching-cache recovery was followed by user-confirmed normal switching on these occasions. The issue returns after subsequent updates require a different cache.
Expected behavior / requested investigation
- Keep focus handling, navigation, IPC, and the main event loop responsive while preparing runtimes.
- Avoid repeatedly copying and deleting the entire runtime synchronously on each later initialization after a failed rename.
- Investigate the Windows rename failure, serialize attempts for the same hash, and consider bounded retry/backoff and a supported cache-repair action.
- Surface runtime deployment failures clearly instead of making chat switching appear hung.
This report intentionally contains only sanitized diagnostic evidence; no conversation contents, credentials, account details, or full local logs are included.
Update: 2026-11-15 recurrence and transient rename reproduction
Reproduced again after updating to Windows desktop 26.1111.2228.0 on 2026-11-15 (UTC+8).
Before recovery:
- Required runtime cache
bfa21d187eb00b05was missing; an older generation existed. - 32
bundled_executable_relocation_failedevents, allEPERM/rename_staging. - Recorded chat navigation: 4,929.3 ms; hydration: 17,058.5 ms; 3 main-thread jank snapshots.
The matching runtime was copied from the current, signature-verified OpenAI installation and all 2,470 files / 309,754,822 bytes were checked by size and SHA-256 before and after publication. The app stayed running. From 15:52:30 to 15:59:17 UTC, there were 0 new relocation failures and 0 new main-thread jank snapshots. The user explicitly confirmed that window/chat switching, scrolling, and typing returned to normal. The one recorded subsequent navigation was 3,619.2 ms; these are different samples, not a controlled performance benchmark.
Additional isolated reproduction: outside the desktop process, copying the same 2,470 files recursively using copyFileSync, then immediately calling renameSync on a separate staging directory in the same runtime-cache parent, reproduced EPERM. Retrying the same complete directory after 500 ms succeeded. No permissions or security settings were changed between attempts. The diagnostic directory was then removed.
This supports a transient publication failure in that experiment, rather than an invariably denied rename. It does not identify the lock holder/filter driver, prove antivirus involvement, or establish that every app failure has the same immediate cause.
Read-only inspection of the current installed resolver still shows synchronous recursive copying, immediate staging rename, and removal of staging on failure; there is no bounded rename retry at this call site. Later resolution can repeat the full preparation.
A local mitigation is now installed on this affected machine: after matching app-deployment events or user logon, a separate normal-privilege process verifies the registered signed package, fills only a missing cache, validates the full tree, and performs bounded rename retries while retaining the staged copy. It refuses differing existing caches. The complete copy/publish path and the scheduled-task execution were tested. The next actual app update has not yet been observed, and this is a workaround, not an upstream fix.
Please investigate retaining verified staging data, bounded asynchronous publication retries, and keeping runtime preparation off the UI thread. The underlying Windows blocker still needs identification. No raw logs, conversation content, credentials, or personal filesystem paths are included.
Activity
github-actions commentedon Sep 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ajblack262626-prog commentedon Oct 2, 2026
Recurrence after updating to Codex Desktop 26.930.2377.0 on Windows, 2026-10-02. The same machine again developed long freezes when focusing the app and switching chats. The existing workaround restored responsiveness again; this remains reproducible across updates.
Before repair, in the current app session (08:46–08:51 UTC):
81ea4d5168ddd0a3was absent; the previous cache154806497bb51baeexisted.bundled_executable_relocation_failedevents, all withoperation=rename_staging,errorCode=EPERM,errno=-4048,syscall=rename.application-network-startup-DN7Ktmlk.jsin this release.Recovery:
cua_noderuntime to a staging directory outside the app process, validated all 2,367 files / 251,349,184 bytes against the source using sizes and SHA-256, and renamed it to the expected cache directory. Existing runtime caches were backed up. No signed application files, chat data, network settings, or security settings were changed.These are a short observation window and different navigation samples, not a controlled benchmark. The underlying Windows reason for the app's
EPERMremains undetermined. A manually prepared valid cache again stops the repeated failure, but a new runtime hash after another update brings the problem back.Please investigate the update-time cache publication failure and prevent repeated runtime initialization from stalling focus/chat navigation. A permanent fix is still needed; this comment documents another recurrence and recovery, not a resolved issue.
ajblack262626-prog commentedon Oct 3, 2026
Another recurrence immediately after updating to Codex Desktop 26.930.3930.0 on Windows, 2026-10-03, one day after the previous recovery.
The cache repaired yesterday (
81ea4d5168ddd0a3) still existed. This release required a new cache (45309f9050f7314b), which was missing.Before repair in the current app session:
rename_staging/EPERM/errno=-4048, between 07:20:03.666 and 07:22:29.231 UTC.The same cache recovery worked again. The running installation's OpenAI signature was verified; its bundled runtime was copied outside the app process, and all 2,367 files / 251,349,200 bytes were checked against the source using sizes and SHA-256 before and after publication. The old cache was backed up. The new cache was published at 07:23:57.424 UTC, without restarting Codex.
Post-repair logs through 07:26:07.794 UTC:
These are short-window observations from different navigation samples, not a controlled benchmark. The Windows cause of the app's rename failure remains unproven. The version-specific workaround restores operation, but another update immediately reintroduces the missing-cache/retry problem. Please keep investigating the cache publication failure and repeated work on the UI's focus/navigation path.
The user has been asked to test window and chat switching; their subjective confirmation is still pending. The recovery measurements above come from the local app logs.
ajblack262626-prog commentedon Oct 8, 2026
Recurrence on 2026-10-09 (UTC+8) with Codex Desktop 26.930.4958.0. This time the user reported no deliberate update immediately before the freezes, and both switching windows/chats and scrolling/typing were affected.
Additional deployment evidence: Windows AppXDeploymentServer events show this package successfully registered on 2026-10-07 at 14:35:40–41 UTC+8 (successful Register event 400 and registration completion event 821). The previous repaired version was 26.930.3930.0. This establishes that the installed version changed before the incident; it does not establish what initiated the update.
The same cache failure was present:
7d8d3ac5ca9f6767missing; previous cache45309f9050f7314bstill present.rename_staging/EPERM/errno=-4048, between 16:45:01.461 and 16:47:14.186 UTC on October 8.Recovery again used the signed installation's bundled runtime, with an old-cache backup and full size/SHA-256 verification of 2,367 files / 251,349,224 bytes. The new cache was published at 16:49:13.805 UTC, without restarting the app.
Through 16:50:02.919 UTC, no new relocation, reconciliation, or primary-runtime restore failures and no new main-thread jank snapshots were recorded. First focus reconciliation completed in 2.825 s, cold navigation in 865.6 ms, and hydration in 710.8 ms. The user explicitly confirmed that switching, scrolling, and typing all returned to normal.
This is a short observation window with different navigation samples, not a controlled benchmark. The underlying Windows rename failure remains unresolved. The failure can appear to the user as a recurrence without an update because package registration may have happened earlier.
CyanTang commentedon Oct 24, 2026
Adding a user-confirmed recovery on 2026-10-24 for Codex Windows MSIX Desktop
26.1021.3705.0(Windows 11 x64).After an update the app initially couldn't start due to a separate
codex.exerename_staging/EPERMfailure. Restoring the four matching bundled EXEs from the same installed official app package (SHA-256 checked) made the app start again. However, switching focus from a browser back to Codex and switching chats still caused Windows to report Not Responding.The new desktop logs then showed repetitive failures such as:
The existing
cua_nodedirectories were from earlier builds; the current required runtime hash directory was missing. In the sampled ~10-minute pre-fix main log, there were 58 relocation failures and 11 main-thread jank snapshots. Long history/thread hydration times were also recorded.Working workaround on this machine: completely exit Codex, identify the current runtime hash from the current log, and copy the entire
app\resources\cua_nodedirectory from that same locally installed official MSIX package into%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<current-hash>. The PowerShell copy succeeded for 2,384 files (~241 MB) with 0 copy failures; source/destination file counts and byte totals matched, and SHA-256 of requiredmanifest.json,bin\node.exe,bin\node_repl.exematched.Outcome: the affected user reopened the app and reported that switching away and back to Codex was smooth, without the previously observed freezes. No longer-term post-fix performance log was collected, so this is user-observed improvement, not proof of a permanent fix or the cause of
EPERM. No network, Defender, ACL, TLS-verification, raw-chat or project-data changes were necessary for the CUA Node recovery.This closely matches the behavior in this Issue. It may help investigate why a failed staging rename keeps triggering runtime materialization on focus/thread navigation. Please avoid reusing the sample hash across builds or copying binaries from untrusted sources.
Update — sanitized public walkthrough now available: https://github.com/CyanTang/codex-windows-troubleshooting (English and Chinese README, version-checked PowerShell recovery steps, and safety/diagnostic notes). The original private logs and screenshots were not published.
ajblack262626-prog commentedon Nov 6, 2026
Reproduced again on Windows with 26.1103.3517.0 on 2026-11-07 (UTC+8). The required
cua_nodecachec4873bdffed0b168was absent; the previous cache was present. In the current session, all 38 relocation failures targeted that missing cache and reportedrename_staging/EPERM. Two successful chat navigations took 5.482 s and 12.513 s; the app logged four main-thread jank snapshots.We rebuilt only the missing cache from the current signed installation and checked 2,461 files against the source by size and SHA-256, without restarting the app. In the 44-second post-repair observation, three navigations completed in 974, 424, and 690 ms; no new relocation failures or main-thread jank snapshots were logged. Navigation state was recorded as unknown, so this is not a controlled cold/warm comparison. The user confirmed that switching windows and chats, scrolling, and typing returned to normal.
godyao2014 commentedon Nov 9, 2026
Still reproducible on Windows MSIX 26.1103.4239.0 (2026-11-09): repeated cua_node rename_staging / EPERM freezes the desktop UI
Additional first-hand reproduction and recovery evidence for the Windows runtime relocation problem.
Observed behavior
Sanitized error fields (normalized, not a full raw log)
Earlier incidents also logged plugin reconciliation failures because the bundled node/node_repl runtime could not be resolved.
Recovery performed on the latest build
Investigation boundaries
Requested investigation
Please investigate the failed staging rename and repeated synchronous runtime preparation after updates. Keeping this work off the UI thread, bounding retries, and preserving/reusing a verified staged copy would help avoid repeated UI hangs while the underlying rename failure is handled. Please provide an actionable diagnostic rather than repeatedly retrying the same preparation path.
Privacy
This report intentionally excludes raw logs, local usernames, computer names, absolute user/workspace paths, conversation IDs, report IDs, tokens, credentials, and task contents. Paths use environment-variable placeholders.