Repository navigation
Description
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
- 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.
- 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.
- This launch fails before the restricted worker can send its admission protocol:
windows sandbox failed: registered Core process has no package identity. - 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.
- The desktop Core has no local control socket/listen endpoint, so app-server proxy cannot supply an existing packaged connection in this session.
- 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.
- 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
- https://github.com/openai/codex/blob/37103d7f01e82162472c6fba7b4088d5a1303321/codex-rs/windows-sandbox-rs/src/app_package.rs — current_process_has_package_identity fails closed as intended.
- https://github.com/openai/codex/blob/37103d7f01e82162472c6fba7b4088d5a1303321/codex-rs/windows-sandbox-rs/src/proc_thread_attr.rs — existing preserve_desktop_app_context logic for restricted launches.
- https://learn.microsoft.com/en-us/powershell/module/appx/invoke-commandindesktoppackage?view=windowsserver2025-ps — debugging-only context and limitations.
This report intentionally excludes user names, machine names, account IDs, task IDs, workspace/source paths, claim data, credentials and raw logs.
Activity
taniguchitakanobu-web commentedon Nov 12, 2026
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):
OpenAI.Codexdesktop package: 26.1106.6628.0, AppX status OK.codex.exe 0.167.0-alpha.4.1.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.CodexSandboxService.OpenAI.Codex: Running.workspace-write,on-request, Windows sandboxunelevated.RegisteredCoreregistry key was absent; only the legacyProvisionedInstallationrecord was found under its parent. This is an observation, not proof of the proximate cause.Observed execution boundary:
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:
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=1was 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:
RegisteredCorereceipt expected to affect this path? They are possible contributing factors, not demonstrated causes.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.
krasnikovkirill commentedon Nov 14, 2026
Reproduced with the updated bundled CLI on Windows
After a normal desktop update, the same child launch failure still occurs with
OpenAI.Codexdesktop package26.1111.2228.0and its bundled CLI0.169.0-alpha.11.1. It also occurred on26.1106.6628.0with bundled CLI0.167.0-alpha.4.1. Both reproductions used the executable from the installed desktop package.subprocess.Popen→ bundledcodex exec(ChatGPT sign-in,read-only, approval policynever,--ephemeral, inheritedCODEX_WINDOWS_REGISTERED_CORE=1).exec_commandfailed before its PowerShell process started:Failed to create unified exec process: registered Core launch requires an installed app(inner exit-1, outer CLI exit0). The synthetic file stayed unchanged. Filesystem write enforcement could not be evaluated.GetPackageFullNamequery returned15700(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.BoLayerDev commentedon Nov 15, 2026
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?
seojungkorea1 commentedon Nov 17, 2026
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 appbefore the command body started. The recorded protection settings wereworkspace-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:
Could maintainers provide:
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.
mrbild90-ux commentedon Nov 19, 2026
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
0.169.0-alpha.11.1from an installedOpenAI.CodexDesktop package.0.170.0fromrust-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.Observed App Server path
app-server --stdioprocess and sendinitialize: PASS for the tested distributions.command/execrequest to the standalone0.170.0server with:argv:C:\Windows\System32\cmd.exe /d /c echo SHPAN_CODEX_SANDBOX_OKsandboxPolicy:{"type":"readOnly","networkAccess":false}timeoutMs:10000outputBytesCap(the bundled CLI previously rejected that optional field as unsupported under Windows sandbox)-32603:exec failed: windows sandbox: registered Core launch requires an installed appThe 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.1CLI also initialized successfully and, after omittingoutputBytesCap, failed with the same registered-Core error.Limits and request
I can provide sanitized request/response diagnostics (without tokens, account identifiers, local paths, or user data) if maintainers need them.
omarabouelela commentedon Nov 20, 2026
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?
turchenko-pavel commentedon Nov 26, 2026
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,
GetPackageFullNamereports the expected OpenAI.Codex package for the Desktop Core andAPPMODEL_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.exethat 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 inheritedCODEX_WINDOWS_REGISTERED_CORE=1and 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.
Yonnghyon commentedon Nov 28, 2026
No-model follow-up on Desktop 26.1120.6357.0 and npm CLI 0.172.0 (2026-11-28)
app/resources/codex.exe --versionreturned0.171.0-alpha.13.2. The separately installed npm@openai/codexshim and its own win32-x64 binary returned0.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 butGet-AppxPackagereturned access denied, so user registration was not independently confirmed through that cmdlet.chatgpt-desktop.exe,codex-chrome-native-host.exe, andcodex-core-command-runner.exe(application IDCodexCoreCommandRunner). It declares no general packagedcodex.exeexecution 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.15700 / APPMODEL_ERROR_NO_PACKAGEfromGetCurrentPackageFullName, 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.sandbox windows --include-managed-config --permission-profile :read-only -- cmd.exe /d /c echo CODEX_READONLY_PROBE_OK. It exited 1 withCreateDesktopW failed: 5; the marker was absent. An earliersandbox windows --helpattempt 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.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.