Skip to content

codex-windows-sandbox service remains running after reboot and blocks CurrentUser DPAPI validation #46900

Open

Description

@naoya-chujo

What version of the Codex App are you using (From “About Codex” dialog)?

26.915.4065.0

What subscription do you have?

Pro

What platform is your computer?

Windows 11 Pro, version 25H2, OS Build 26200.9457, x64

What issue are you seeing?

On Windows 11, the codex-windows-sandbox service continues running as SYSTEM even after I close the ChatGPT/Codex desktop app and perform a normal Windows restart.

Environment:

  • ChatGPT Windows app version: 26.915.4065.0
  • Windows 11 Pro, version 25H2, OS Build 26200.9457, x64
  • Codex sandbox configuration: [windows] sandbox = "elevated"
  • CODEX_HOME environment variable is not set
  • %USERPROFILE%.codex.sandbox\sandbox.log does not exist

Observed behavior:

  1. Close the ChatGPT/Codex Windows desktop app.
  2. Restart Windows normally.
  3. Log back into Windows.
  4. Check Task Manager.
  5. codex-windows-sandbox is still running under SYSTEM and is also shown as a running ChatGPT/Codex-related Windows service.

Why this matters:
I need to perform a Windows DPAPI CurrentUser validation in a separate user PowerShell process. The validation intentionally refuses to run while any codex/chatgpt-related process exists. I do not want to bypass that security check or manually force-stop/disable the SYSTEM service without an officially supported procedure.

OpenAI Support directed me to report this issue here because there is currently no documented supported procedure for temporarily stopping/restoring codex-windows-sandbox, and no documented verification procedure establishing its isolation from DPAPI CurrentUser.

Additional diagnostics:

  • .sandbox/sandbox.log is not present.
  • In-app feedback was submitted twice, but the feedback dialog closed immediately after submission and no session ID was displayed.
  • Session records exist for 2026-09-20 with filename timestamps 13-22-57, 16-30-32, and 17-36-36.

Expected behavior / requested guidance:
Please provide a supported way to either:

  1. temporarily stop codex-windows-sandbox and restore it afterward, or
  2. officially verify that the persistent SYSTEM sandbox service is isolated from Windows DPAPI CurrentUser operations.

I have not force-stopped the service, changed the sandbox setting, or bypassed the security validation.

What steps can reproduce the bug?

  1. Use the ChatGPT Windows desktop app with Codex and [windows] sandbox = "elevated".
  2. Close the ChatGPT/Codex desktop app completely.
  3. Restart Windows normally.
  4. Sign back in to Windows.
  5. Do not launch ChatGPT or Codex.
  6. Open Task Manager and search for "codex".
  7. Observe that codex-windows-sandbox is still running under SYSTEM.
  8. In Task Manager > Services, observe the corresponding ChatGPT/Codex sandbox service is still running.

This is reproducible after a normal Windows restart. I have not force-stopped the service, disabled it, or changed the sandbox configuration.

What is the expected behavior?

After the ChatGPT/Codex Windows desktop app is closed and Windows is restarted, there should be an officially supported and documented way to place codex-windows-sandbox into a state that allows independent Windows DPAPI CurrentUser validation to be performed safely.

If the SYSTEM service is intentionally designed to remain running, please provide an officially supported method to verify that it is isolated from DPAPI CurrentUser operations.

I do not want to force-stop or disable the service, change the elevated sandbox configuration, or bypass security validation.

Additional information

No response

Activity

  1. added
    app
    on Sep 20, 2026
  2. added
    bug
    windows-os
    sandbox
    on Sep 20, 2026
  3. naoya-chujo commented on Sep 23, 2026

    @naoya-chujo
    Author

    Follow-up: this issue is currently blocking a production go-live for our internal business system.

    We have completed the database protection, read-only production audit, migration Dry Run preflight, Commit preflight, rollback preparation, and post-migration acceptance plan.

    The remaining blocker is the owner-side Windows DPAPI CurrentUser self-test. Our security gate intentionally refuses to run while any Codex/ChatGPT-related process exists, and codex-windows-sandbox continues to run as SYSTEM after the ChatGPT/Codex app is closed and Windows is restarted.

    We do not want to force-stop/disable the service, change sandbox = "elevated", or bypass the security gate without an officially supported procedure.

    Could an OpenAI/Codex maintainer please advise on either:

    a supported way to temporarily stop codex-windows-sandbox and restore it afterward, or
    an official way to verify that the persistent SYSTEM sandbox service is safely isolated from Windows DPAPI CurrentUser operations?

    Environment remains:

    Windows 11 Pro 25H2, OS Build 26200.9457
    ChatGPT Windows app 26.915.4065.0
    [windows] sandbox = "elevated"
    CODEX_HOME not set
    .codex.sandbox\sandbox.log not present

    No production data has been modified while waiting for guidance.

    Thank you. This is the final external blocker before our planned Dry Run and production migration.

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions