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
Windows: repeated 272 MB .staging runtime folders under mojibake user path fill C: drive #28691
On Windows, Codex repeatedly creates large .staging-* runtime folders under AppData\Local\OpenAI\Codex\runtimes\cua_node. Each staging folder is about 272 MB, and many of them can be created within minutes, quickly filling the C: drive.
This appears related to a non-ASCII Windows user profile path. The actual Windows username contains Chinese characters, but the path shown by Codex / Explorer appears as mojibake.
Each folder is approximately 272 MB. In my local check, 7 folders used about 1.9 GB total.
Expected behavior
Codex should either:
successfully reuse or finalize the downloaded cua_node runtime, or
clean up failed .staging-* directories automatically, or
avoid repeatedly downloading/extracting the same runtime.
Actual behavior
Codex keeps creating new .staging-* folders and leaves old ones behind. This can fill the C: drive very quickly.
Possible cause
This may be related to Unicode / non-ASCII Windows user profile paths. The real username contains Chinese characters, but the runtime cache path appears under a mojibake username path.
Screenshot
Attached screenshot shows the repeated .staging-* folders in Windows Explorer.
Confirmed that manifest.json, bin\node.exe, and bin\node_repl.exe were present.
Restarted Codex normally.
Results
After the workaround, Codex launched successfully and became noticeably more responsive.
During seven consecutive checks over approximately 61 seconds:
Runtime directory existed: True
.staging-* directory count: 0
Total runtime directory size: 0.294 GB, stable throughout the monitoring period
No new staging directories were observed during this test.
Conclusion
Manually pre-populating the final runtime directory appears to bypass the repeated staging issue on this version.
A non-ASCII Windows user profile path may be a contributing factor, although I have not confirmed the root cause. This is a successful short-term workaround, not yet a verified permanent fix.
It would be helpful if the desktop client could properly finalize or reuse bundled runtimes and clean up failed staging directories automatically.
Activity
github-actions commentedon Jun 17, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
zin8819781 commentedon Jun 17, 2026
Z1WZ05 commentedon Jun 18, 2026
问题如何解决?
ZZarekt commentedon Nov 11, 2026
Confirmed on Codex Desktop 26.1103.7773.0 — successful workaround
I encountered the same issue on Windows with a Chinese-character user profile path.
Environment
26.1103.7773.0(Microsoft Store/MSIX, x64)C:\Users\<Chinese username>76f5b5935a63c7baObserved behavior
Codex repeatedly generated
.staging-*directories under%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node, consuming approximately 20.6 GB of disk space.The application also became noticeably slow. Updating Codex did not resolve the problem.
Successful workaround
Completely exited Codex.
Located the bundled runtime at
<Codex installation>\app\resources\cua_node.Copied the complete bundled runtime (2,461 files) into the expected final directory:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\76f5b5935a63c7baConfirmed that
manifest.json,bin\node.exe, andbin\node_repl.exewere present.Restarted Codex normally.
Results
After the workaround, Codex launched successfully and became noticeably more responsive.
During seven consecutive checks over approximately 61 seconds:
True.staging-*directory count:00.294 GB, stable throughout the monitoring periodNo new staging directories were observed during this test.
Conclusion
Manually pre-populating the final runtime directory appears to bypass the repeated staging issue on this version.
A non-ASCII Windows user profile path may be a contributing factor, although I have not confirmed the root cause. This is a successful short-term workaround, not yet a verified permanent fix.
It would be helpful if the desktop client could properly finalize or reuse bundled runtimes and clean up failed staging directories automatically.