Skip to content

Windows registered-Core identity is lost across approved child execution #60633

Open

Description

@Studmeister247

Windows registered-Core identity is lost across approved child execution

Observed version

OpenAI.Codex 26.1103.7773.0, Windows x64 Store package. Package status is Ok and its matching sandbox service is running. Restarting the desktop app did not resolve this reproduction.

Reproduction and observed results

  1. An approved desktop command runs PowerShell and Python below the genuine signed desktop Core. OS GetPackageFullName reports the expected OpenAI package for ChatGPT.exe and its codex.exe child, but APPMODEL_ERROR_NO_PACKAGE (15700) for the PowerShell/Python descendants.
  2. The Python process starts the observed bundled codex.exe with the inherited registered-Core request and the maintained sandbox command. The profile is root read access, no network, no additional writable roots for this source-free diagnostic. The payload only prints a fixed marker.
  3. This launch fails before the restricted worker can send its admission protocol: windows sandbox failed: registered Core process has no package identity.
  4. A separately launched stdio app-server's documented command/exec with a readOnly/network-disabled print-only command fails with the same package-identity error. Its windowsSandbox/readiness nevertheless returns ready.
  5. The desktop Core has no local control socket/listen endpoint, so app-server proxy cannot supply an existing packaged connection in this session.
  6. Diagnostic only: Microsoft's Invoke-CommandInDesktopPackage with the installed package's App ID and PreventBreakaway starts a hidden Python identity probe with genuine matching OS package identity. A second fixed print-only sandbox probe, preserving CODEX_WINDOWS_REGISTERED_CORE=1 and the same managed read-only/network-disabled profile, exits 0 with PACKAGE_RESTRICTED_STARTUP_OK and empty stderr.
  7. The package debugging launcher does not carry CODEX_THREAD_ID from the active desktop task. It is therefore not adopted as a production workaround or intake admission. No caller identity, cached receipt or claim material was supplied to that probe.

Related upstream change

OpenAI/codex PR #46575 (merged September 19, 2026) preserves OS package identity for sandboxed descendants and deliberately rejects registered-Core callers lacking that identity. This is relevant background, not a verified upgrade fix for the installed build or for the preceding approved shell/Python launch. See #46575 .

Expected fix

Provide a supported task-bound launch from the signed packaged desktop host that preserves OS package context, the active task's runtime environment, intended private stdio handles and worker-tree lifetime. Retain managed restrictions, both fresh native task/worktree binding checks, registered runtime ownership and executable checks, source/hash freshness and fail-closed behavior. Test normal approved command execution and subsequent restricted child launches, including cancellation and desktop update transitions.

Explicitly not used as workarounds

No registered-Core flag was removed to force a legacy path. No package/service settings, global permissions, tokens or admission checks were changed. No runtime binary was patched or replaced. Readiness was not treated as worker admission. No claim work or paid API/model calls occurred in these probes.

Source pointers

This report intentionally excludes user names, machine names, account IDs, task IDs, workspace/source paths, claim data, credentials and raw logs.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Nov 10, 2026
  2. taniguchitakanobu-web commented on Nov 12, 2026

    @taniguchitakanobu-web

    Additional reproduction / diagnostic evidence (Windows 11, 2026-11-12)

    I reproduced the same package-identity loss across an approved desktop child-process boundary on a newer desktop build. This is supporting evidence, not a claim that the underlying root cause is identical.

    Environment (read-only checks):

    • Installed OpenAI.Codex desktop package: 26.1106.6628.0, AppX status OK.
    • Packaged parent Core: session records show codex.exe 0.167.0-alpha.4.1.
    • A nested subprocess invokes a separately installed codex.exe; its path currently resolves through a junction to CLI 0.157.1. The exact executable version/hash at the time of the failures was not recorded, so the present resolution is not historical proof.
    • PowerShell 7.6.9, Python 3.12.14.
    • Matching CodexSandboxService.OpenAI.Codex: Running.
    • Effective configuration: workspace-write, on-request, Windows sandbox unelevated.
    • The RegisteredCore registry key was absent; only the legacy ProvisionedInstallation record was found under its parent. This is an observation, not proof of the proximate cause.

    Observed execution boundary:

    packaged desktop Core
      -> approved exec_command
      -> PowerShell -> Python
      -> subprocess.Popen -> separate codex.exe exec --json --ephemeral --sandbox read-only
      -> inner exec_command process creation FAILED (before read-only Python worker)
    

    In live, non-mutating OS API checks (GetPackageFullName / GetApplicationUserModelId), the packaged desktop/parent Core had package identity, while both the approved PowerShell child and its Python descendant returned 15700 / APPMODEL_ERROR_NO_PACKAGE. This held for both ordinary and per-command-approved launches.

    Three distinct read-only child CLI executions failed on 2026-11-12 between 13:31:08 and 13:32:18 JST (UTC+09:00), each with:

    Failed to create unified exec process:
    registered Core process has no package identity
    

    The outer CLI returned a technical-error response with process exit code 0; no inner read-only Python worker started. Therefore a zero outer exit code must not be interpreted as a successful sandboxed operation. No subsequent independent audit was started.

    The inherited CODEX_WINDOWS_REGISTERED_CORE=1 was observed, but that flag was not treated as evidence of actual OS package identity. The installed binaries' signatures were valid. I did not change the flag, sandbox permissions, binaries, registry, services, automation, or code; no retries or production workaround were attempted.

    Questions for maintainers / request for a supported fix:

    1. Is there a supported task-bound child CLI launch path from an approved desktop command that preserves the OS-assigned package identity and the active task context, review/admission checks, private stdio handles and worker lifetime?
    2. Are the separate CLI 0.157.1 versus packaged parent Core 0.167.0-alpha.4.1 and the missing RegisteredCore receipt expected to affect this path? They are possible contributing factors, not demonstrated causes.
    3. Is there a supported fixed version or recovery procedure that retains CODEX_WINDOWS_REGISTERED_CORE=1, read-only sandboxing, and fail-closed guarantees? Please include a test for approved PowerShell/Python descendants that invoke restricted child CLI processes.

    No identifying user/workspace paths, task IDs, authentication details, or raw private logs are included here.

  3. krasnikovkirill commented on Nov 14, 2026

    @krasnikovkirill

    Reproduced with the updated bundled CLI on Windows

    After a normal desktop update, the same child launch failure still occurs with OpenAI.Codex desktop package 26.1111.2228.0 and its bundled CLI 0.169.0-alpha.11.1. It also occurred on 26.1106.6628.0 with bundled CLI 0.167.0-alpha.4.1. Both reproductions used the executable from the installed desktop package.

    • Launch chain: approved desktop command → PowerShell → Python subprocess.Popen → bundled codex exec (ChatGPT sign-in, read-only, approval policy never, --ephemeral, inherited CODEX_WINDOWS_REGISTERED_CORE=1).
    • The inner exec_command failed before its PowerShell process started: Failed to create unified exec process: registered Core launch requires an installed app (inner exit -1, outer CLI exit 0). The synthetic file stayed unchanged. Filesystem write enforcement could not be evaluated.
    • A subsequent read-only Windows GetPackageFullName query returned 15700 (APPMODEL_ERROR_NO_PACKAGE) for the PowerShell and Python processes in that diagnostic chain. This was a separate observation after the failed run. The error from the nested CLI matches the missing process package identity branch in the source for this exact version.

    Could you point us to a supported recovery procedure or a fixed desktop build for this exact bundled-child scenario? We need a task-bound launch that preserves the Windows package identity and the active desktop task context, with Registered Core, read-only isolation, approval policy never, and ChatGPT sign-in intact.

  4. BoLayerDev commented on Nov 15, 2026

    @BoLayerDev

    Additional reproduction with npm Codex CLI 0.169.0, Nov 15, 2026

    Environment checked after the repro: Windows 11 Home 26H2, x64, build 26300.9974; desktop package OpenAI.Codex 26.1111.2228.0, status OK. The failed run’s launch record pins the nested npm CLI to 0.169.0.

    At about 11:38 UTC, the chain was approved desktop command → PowerShell → npm Codex launcher → nested Codex exec → inner command creation. The job used workspace-write with network access disabled. Inner creation failed with “registered Core process has no package identity.” The tool recorded −1 for the failed creation, while the outer CLI exited 0. No payload ran.

    Separately, I reproduced it without a model request using: codex sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo RUNNER_PROBE_OK

    The probe exited 1 with the same error and never printed RUNNER_PROBE_OK. Registered Core mode was inherited and left unchanged. A separate GetPackageFullName check on a Python child of the desktop command environment returned 15700 (APPMODEL_ERROR_NO_PACKAGE). That supports the diagnosis but isn’t a measurement from inside the failing CLI. No sandbox settings, packages, or services were changed.

    The earlier reports cover bundled CLI builds. This adds a pinned stable npm reproduction and an execution check that doesn’t rely on the outer exit code. Is there a supported recovery or fixed build that preserves Windows package identity, active task binding, and the existing managed restrictions?

  5. seojungkorea1 commented on Nov 17, 2026

    @seojungkorea1

    Request for supported diagnosis / recovery — Windows execution blocked before command startup (2026-11-17)

    Our existing development chat recorded Failed to create unified exec process: registered Core launch requires an installed app before the command body started. The recorded protection settings were workspace-write, on-request, and network access disabled. No payload execution or isolation-test success is claimed.

    Read-only environment observations reported by our security review:

    • Installed Desktop package: OpenAI.Codex 26.1111.2228.0; bundled CLI: 0.169.0-alpha.11.1.
    • A separate Python Router launches npm CLI 0.167.0 through Node into a stdio app-server. That external CLI process was observed without Windows package identity, while packaged Desktop processes had identity. The Router's child environment does not currently separate the inherited CODEX_WINDOWS_REGISTERED_CORE flag.
    • Crucially, we have NOT established whether the particular failed development-chat turn was hosted directly by Desktop or resumed through the external Router. The separate Router observation is not proof of the failing turn's launch ancestry.

    Could maintainers provide:

    1. A supported, non-mutating way to identify the actual execution host/ancestry responsible for this failure and distinguish a Desktop execution issue from external-CLI environment inheritance?
    2. A supported recovery procedure or confirmed fixed build that restores the existing chat's command execution while preserving its sandbox, approval settings, network restrictions, and task binding?
    3. The supported integration boundary for an external stdio app-server when launched from a Desktop-derived environment, including whether/how registered-Core environment state should be handled for a process without package identity?

    No workaround has been adopted. We have not changed the Router, package/service registration, global environment, permissions, or sandbox policy, and have not retried the blocked command. We will validate the original operation and independent isolation checks after a supported recovery is identified. This report excludes business files, usernames, machine/workspace paths, task identifiers, credentials, and raw session logs. A reply in this issue provides a traceable response route.

  6. mrbild90-ux commented on Nov 19, 2026

    @mrbild90-ux

    Additional reproduction: official standalone Codex CLI 0.170.0 still fails Windows sandbox command launch (2026-11-19)

    I reproduced the registered-Core launch failure with two different Codex CLI distributions on Windows 11 Pro x64, using an App Server non-model command rather than a model turn.

    Verified versions / setup

    • Desktop-bundled CLI: 0.169.0-alpha.11.1 from an installed OpenAI.Codex Desktop package.
    • Separately downloaded official stable CLI 0.170.0 from rust-v0.170.0, extracted to an isolated user working directory. The downloaded asset's SHA-256 matched the digest published by the GitHub release API before execution. No global installer, npm -g, service, registry change or PATH modification was used.
    • The existing Desktop executable's hash was unchanged before and after the test.

    Observed App Server path

    1. Start the CLI's own app-server --stdio process and send initialize: PASS for the tested distributions.
    2. Send one command/exec request to the standalone 0.170.0 server with:
      • argv: C:\Windows\System32\cmd.exe /d /c echo SHPAN_CODEX_SANDBOX_OK
      • sandboxPolicy: {"type":"readOnly","networkAccess":false}
      • timeoutMs: 10000
      • working directory: isolated synthetic test directory
      • no outputBytesCap (the bundled CLI previously rejected that optional field as unsupported under Windows sandbox)
    3. The command failed with JSON-RPC -32603:
      exec failed: windows sandbox: registered Core launch requires an installed app

    The expected echo text was not returned, and the command body did not successfully start. The CLI process itself subsequently exited normally, which does not indicate sandbox-command success. No model turns were requested.

    Earlier tests with the bundled 0.169.0-alpha.11.1 CLI also initialized successfully and, after omitting outputBytesCap, failed with the same registered-Core error.

    Limits and request

    • This confirms a launch failure in the current environment; it does not establish the exact root cause or prove enforcement of sandbox isolation, since no sandboxed command actually ran.
    • I did not remove/change registered-Core configuration, spoof AppX package identity, disable the Windows sandbox, elevate privileges, or modify Desktop sessions.
    • Is there a supported way to launch a separate official CLI / stdio App Server with Windows read-only sandbox from a Desktop-derived child-process context while preserving the managed registered-Core restrictions? If this is a known bug, is there a fixed version or supported recovery/diagnostic procedure?

    I can provide sanitized request/response diagnostics (without tokens, account identifiers, local paths, or user data) if maintainers need them.

  7. omarabouelela commented on Nov 20, 2026

    @omarabouelela

    I hit the same error on Windows build 26300 with npm Codex CLI 0.157.0. A managed sandbox probe using --include-managed-config --permission-profile :read-only to run PowerShell Get-Location exits 1 with windows sandbox failed: registered Core process has no package identity, before inference.

    The probe previously passed on the same host with the same CLI path and launcher. The user config fingerprint changed between attempts, but the old config wasn’t retained, so the cause is unconfirmed.

    Is there a supported launch or recovery procedure, or a confirmed fixed build, that preserves the managed read-only restrictions? Which redacted diagnostics would help?

  8. turchenko-pavel commented on Nov 26, 2026

    @turchenko-pavel

    Windows Desktop - supported launch for a child Codex CLI with Registered Core

    On Windows 11 build 26300.10075, Codex Desktop 26.1120.6357.0 can run commands normally from its own app-server. An approved command from that app-server starts PowerShell, which starts Python. In this chain, GetPackageFullName reports the expected OpenAI.Codex package for the Desktop Core and APPMODEL_ERROR_NO_PACKAGE (15700) for both PowerShell and Python.

    A read-only identity check used Python to create a suspended process from the same signed app/resources/codex.exe that the active Desktop Core uses. The executable hashes matched. The new process reported 15700 before its initial thread ran. We terminated it without resuming the thread. An earlier, separate no-model command probe through the selected standalone CLI had inherited CODEX_WINDOWS_REGISTERED_CORE=1 and failed to start the sandboxed command, reporting that the provisioning service was unavailable and refusing helper fallback. The Windows service was running. The protected installation record's ready package and Codex home matched the active installation.

    The packaged Desktop app-server uses stdio on this machine. We found no local control socket or listener to which an independent client can attach.

    Is there a supported way for an approved Desktop task to launch a separate Codex CLI with the genuine OpenAI.Codex package identity and normal managed sandbox enforcement? A documented local connection to the already packaged app-server would also work for our use case. If this requires a fix, which signed Windows release contains it, and what is the supported no-model diagnostic that confirms it without provisioning sandbox accounts or changing ACLs? The intended integration needs private command input and output, and cancellation limited to its own run.

    No packages, runtime settings, service configuration, or permissions were changed. The Registered Core flag was preserved throughout both probes.

  9. Yonnghyon commented on Nov 28, 2026

    @Yonnghyon

    No-model follow-up on Desktop 26.1120.6357.0 and npm CLI 0.172.0 (2026-11-28)

    • The WindowsApps package directory reports OpenAI.Codex 26.1120.6357.0 x64. The bundled app/resources/codex.exe --version returned 0.171.0-alpha.13.2. The separately installed npm @openai/codex shim and its own win32-x64 binary returned 0.172.0. Both version probes exited 0 with access-denied warnings from the CLI's internal temporary alias handling. The default standalone-installer bin path was also checked and had no codex.exe. The current shell could read the manifest but Get-AppxPackage returned access denied, so user registration was not independently confirmed through that cmdlet.
    • The manifest declares chatgpt-desktop.exe, codex-chrome-native-host.exe, and codex-core-command-runner.exe (application ID CodexCoreCommandRunner). It declares no general packaged codex.exe execution alias. I found documentation for desktop activation and a separate CLI, but no public contract for calling the command-runner alias as a task-bound CLI or attaching to the already-running desktop app-server. The alias was inspected only. Microsoft's package-context cmdlet was available but the issue describes it as a debugging diagnostic and it was not invoked.
    • The diagnostic PowerShell process returned 15700 / APPMODEL_ERROR_NO_PACKAGE from GetCurrentPackageFullName, and the inherited registered-Core request was set. This matches the shell-side state reported in this issue. The desktop parent process identity and the exact historical launch chain were not independently established here.
    • From that shell, the npm CLI ran sandbox windows --include-managed-config --permission-profile :read-only -- cmd.exe /d /c echo CODEX_READONLY_PROBE_OK. It exited 1 with CreateDesktopW failed: 5; the marker was absent. An earlier sandbox windows --help attempt also entered the sandbox and failed with the same error. This establishes a failure to start in the current execution context. The error differs from the issue's registered-Core rejection and does not establish the same failing branch or explain the desktop API denial.
    • The existing npm installation is sufficient for version diagnostics. We have not verified a task-bound alternative that preserves Windows-assigned identity and managed policy, or identified an officially confirmed fixed release. A separate normal user-terminal probe, if authorized and allowed by organizational policy, could test independent CLI operation under its own managed policy without altering environment variables. A successful independent run would not establish Desktop task binding. For Desktop integration, please identify the supported entry point or signed fixed build and a no-model, read-only launch test with managed policy and task binding intact. Any installation/update or sandbox provisioning would require separate approval before changing the system.

    No inference, configuration/permission changes, package updates, package identity bypasses, or environment changes were performed.

    References: Windows deployment, CLI command reference, registered-Core check, CLI release.

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