Skip to content

Windows: repeated 272 MB .staging runtime folders under mojibake user path fill C: drive #28691

Open

Description

@zin8819781
Image

Summary

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.

Environment

  • OS: Windows
  • Codex app: desktop app
  • User profile path contains Chinese characters
  • Observed date: 2026-06-17

Path

C:\Users\<mojibake username>\AppData\Local\OpenAI\Codex\runtimes\cua_node

In my case, the real username is Chinese, but the folder shown in Explorer appears mojibake, for example:

C:\Users\寮犵...\AppData\Local\OpenAI\Codex\runtimes\cua_node

Observed behavior

Codex created multiple staging directories in a short period:

.staging-789504f803e82e2b-GyDDsT
.staging-789504f803e82e2b-U2UHZe
.staging-789504f803e82e2b-c0PV0t
.staging-789504f803e82e2b-wEMdXj
.staging-789504f803e82e2b-kgZMnC
.staging-789504f803e82e2b-mjtoyD
.staging-789504f803e82e2b-OKm86E

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.

Activity

  1. added
    bug
    app
    windows-os
    on Jun 17, 2026
  2. zin8819781 commented on Jun 17, 2026

    @zin8819781
    Author
  3. Z1WZ05 commented on Jun 18, 2026

    @Z1WZ05

    问题如何解决?

  4. ZZarekt commented on Nov 11, 2026

    @ZZarekt

    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

    • Codex Desktop: 26.1103.7773.0 (Microsoft Store/MSIX, x64)
    • Windows user profile: C:\Users\<Chinese username>
    • Runtime generation: 76f5b5935a63c7ba

    Observed 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

    1. Completely exited Codex.

    2. Located the bundled runtime at <Codex installation>\app\resources\cua_node.

    3. Copied the complete bundled runtime (2,461 files) into the expected final directory:

      %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\76f5b5935a63c7ba

    4. Confirmed that manifest.json, bin\node.exe, and bin\node_repl.exe were present.

    5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions