Skip to content

[Windows][26.915.3509.0] In-app updater stages package but leaves old version registered after LocalSystem sandbox service was added #46370

Open

Description

@hanjie-chen

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

26.915.31029

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64 Windows 10 Pro 22H2

What issue are you seeing?

The Codex Windows desktop in-app updater detected and downloaded package 26.915.3509.0, then closed the application. However, the registered package remained on 26.911.7940.0.

Reopening Codex returned to the old version, and the update was still shown as incomplete.

The updater log reported that the update was successfully downloaded:

2026-09-18T04:09:55.987Z [windows-store-updater] Checking for update: buildVersion=26.911.7940.0 manifestBuildVersion=26.915.3509.0
2026-09-18T04:10:00.421Z [windows-store-updater] completed=true hasUpdate=true overallState=Completed
2026-09-18T04:10:00.421Z [sparkle] action=download_completed result=succeeded

AppXDeploymentServer recorded a successful SYSTEM-context staging operation for:

OpenAI.Codex_26.915.3509.0_x64__2p2nqsd0c76g0

However, the staging summary showed "Registration cost: 0 ms", and I could not find a subsequent successful registration/finalization operation from the updater.

The target package manifest introduces a packaged LocalSystem service:

  • packagedServices capability
  • localSystemServices capability
  • Service name: CodexSandboxService.OpenAI.Codex
  • Executable: app/resources/codex-windows-sandbox-service.exe
  • Startup type: auto
  • Account: localSystem

As a diagnostic test, a separate non-elevated registration attempt failed with:

0x80073D28: The package installation failed because administrator privileges are required.
Administrator privileges are required to install a packaged service.

Running the same package-family registration from an elevated Windows PowerShell 5.1 process succeeded.

After elevated registration:

  • The registered package version became 26.915.3509.0
  • Package status became Ok
  • CodexSandboxService.OpenAI.Codex was installed and running
  • Codex opened normally

This appears to be an updater/elevation handoff problem related to the newly added packaged LocalSystem sandbox service.

What steps can reproduce the bug?

  1. Start Codex on Windows 10 x64 with MSIX package version 26.911.7940.0.
  2. Wait for the in-app updater to offer version 26.915.3509.0.
  3. Click the Update button.
  4. The update downloads and Codex closes.
  5. Reopen Codex.
  6. Observe that the registered package is still 26.911.7940.0 and the update remains incomplete.
  7. Check the AppX deployment events: version 26.915.3509.0 was staged, but registration was not completed.
  8. As a diagnostic test, run the following from a non-elevated Windows PowerShell 5.1 process:

Add-AppxPackage -RegisterByFamilyName -MainPackage 'OpenAI.Codex_2p2nqsd0c76g0' -ForceApplicationShutdown

  1. The command fails with 0x80073D28 because installing the packaged service requires administrator privileges.
  2. Run the same command from an elevated Windows PowerShell 5.1 process.
  3. Registration succeeds and the new version works.

What is the expected behavior?

The in-app updater should recognize that the target package installs a packaged LocalSystem service and complete registration using the required privileged deployment path.

If elevation is required, it should request elevation through UAC.

The updater should not close Codex and silently leave the previous package version registered. If registration fails, it should show a clear error message and recovery instructions.

Additional information

Related issues with similar user-visible update failures:

This report may have a different underlying cause: the target version adds a packaged LocalSystem sandbox service, and non-elevated registration now fails with 0x80073D28.

Potentially related sandbox-service work:

I can provide a sanitized AppX deployment event timeline if needed. I have not attached the complete application logs because they contain local paths and other machine-specific information.

Activity

  1. added
    app
    on Sep 18, 2026
  2. added
    bug
    windows-os
    on Sep 18, 2026
  3. hui6900 commented on Sep 24, 2026

    @hui6900

    Same shape here on Windows 11 Pro 26200 (x64), updating a Store-signed OpenAI.Codex (product 9PLM9XGG6VKS) from 26.917.8451.0 to 26.917.9434.0 — plus one detail that may explain why the commit never happens.

    Observed

    • The Store background update item staged the new package and switched the preferred version (当前首选版本 … 新的首选版本为 26.917.9434.0), but the commit failed:
      0x80073D02 — Unable to install because the following apps need to be closed: OpenAI.Codex_26.917.8451.0_x64__2p2nqsd0c76g0
    • No GUI process was running at the time. What was running is the package's own LocalSystem service CodexSandboxService.OpenAI.Codex (startup type auto, executable app/resources/codex-windows-sandbox-service.exe), which keeps the old package's files mapped — so "close the app" is not sufficient here.
    • An earlier elevated Add-AppxPackage did not fail fast either: AppXDeploymentServer logged Failed to reach state BlockDeploymentIfNeeded after ~29 min (active time 470 ms). It parks waiting for the in-use condition instead of returning the error, which is why this looks like a hang.

    Workaround that completed the update in ~9 seconds (elevated):

    Stop-Service CodexSandboxService.OpenAI.Codex
    Add-AppxPackage -Path ChatGPT-x64-26.917.9434.0.msix -ForceApplicationShutdown
    Start-Service CodexSandboxService.OpenAI.Codex
    

    Package ends at 26.917.9434.0, status Ok, service back to Running, old package directory removed.

    Suggestion: the commit path should stop the packaged service before registering (service shutdown, not only application shutdown), since that service runs regardless of whether the app UI is open.

    Caveat: the successful run changed two things at once (stopping the service and adding -ForceApplicationShutdown), so I can't separate them with certainty. The service is the only package-owned process running at the time, hence the prime suspect.

  4. gtp97 commented on Oct 10, 2026

    @gtp97

    Reproduced again on a newer Windows 11 Store/MSIX upgrade path, so this issue appears to remain present in the October build.

    Environment:

    • Windows 11 x64, OS build 10.0.26200
    • Installed package before update: OpenAI.Codex_26.901.6511.0_x64__2p2nqsd0c76g0
    • Target package: OpenAI.Codex_26.1007.2314.0_x64__2p2nqsd0c76g0
    • User account belongs to the local Administrators group, but the app/update process was not elevated

    Observed on 2026-10-10:

    • The Store service reported Found update for package = OpenAI.Codex_2p2nqsd0c76g0.
    • The request came from ChatGPT-SearchForUpdatesWithPausedAddAsync.
    • AppXDeploymentServer attempted to stage the target package twice.
    • Both attempts failed with event 404 / 0x80073D28: administrator privileges are required to install a packaged service.
    • The old version remained registered and usable, but the update did not complete and there was no clear recovery path or discoverable manual-update control in the app.
    • Store/BITS/Windows Update/Delivery Optimization services were running, and no Windows Store or Delivery Optimization blocking policy was present.

    After manual elevated intervention, the registered package is now 26.1007.2314.0 and status is OK.

    This confirms that the updater/elevation handoff problem described here still affects a current Store-delivered update. Suggested UX/recovery improvements:

    1. Detect ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES and request UAC explicitly.
    2. Show the exact failure and a safe recovery action instead of silently retrying/interruption.
    3. Provide a visible “Check for updates / Retry update” entry in Settings or Help.

    I am not attaching full logs because they contain machine-specific information; the event details above are sanitized.

  5. zm-oai commented on Nov 6, 2026

    @zm-oai
    Contributor

    I tested an in-app Microsoft Store update on Windows 11 x64 starting from 26.1007.2314.0, the target version in the October follow-up. To exercise a first-time service install, I removed the sandbox service declaration and capabilities from the starting MSIX and test-signed it. The application files matched the production release.

    • Before clicking Update, I declined the separate codex-windows-sandbox-setup.exe UAC prompt at startup and verified that the service was absent. The unelevated app then downloaded a real Store offer.
    • Clicking Update registered Store-signed 26.1103.3517.0 for the same Windows user. Windows installed CodexSandboxService.OpenAI.Codex and started it as LocalSystem. No UAC prompt appeared during the update.
    • The app restarted automatically. PID 5748 exited cleanly at 19:19:09.659 UTC and PID 2256 started at 19:19:11.228 UTC, 1.569 seconds later. Search worked in the restarted app.

    This confirms the upgrade can succeed on this later client. The cause of the original Windows 10 registration failure is still open. In this test, Windows logged ChatGPT-SearchForUpdatesWithPausedAddAsync both before and after the click, so that caller name alone cannot establish whether the October staging attempts followed a click.

  6. forgottenlab commented on Nov 25, 2026

    @forgottenlab

    Hi! I have collected another Windows MSIX staging and registration case that may provide a useful comparison with this investigation.

    I also read the later test by zm-oai:

    #46370 (comment)

    In particular, the observation that ChatGPT-SearchForUpdatesWithPausedAddAsync can appear both before and after an update-button click is consistent with my independent findings.

    On November 25, 2026, I observed the same caller during automatic background downloading, without clicking the update button.

    My environment was Windows 11 25H2, build 26200.9168.

    The observed package states were:

    26.1120.5083.0 — Installed for the current user
    26.1120.6357.0 — Staged under SYSTEM
    

    The Store reported successful downloading and staging, but restarting Codex alone did not complete registration.

    After a normal Windows restart, AppReadiness successfully registered the new package during sign-in.

    The final AppX registration caller was explicitly recorded as:

    <Data Name='CallingProcess'>svchost.exe,AppReadiness</Data>

    I did not manually invoke an elevated package-registration command for this update.

    The new registered package was independently verified as:

    Name          : OpenAI.Codex
    Version       : 26.1120.6357.0
    Status        : Ok
    SignatureKind : Store
    

    The full investigation is available here:

    #38843 (comment)

    Sections 4.3, 5, and 11–12 provide the most relevant evidence.

    My case does not establish whether the original failure was related to packaged-service elevation, an in-use service, or another deployment condition. I did not reproduce the original first-time sandbox-service installation experiment.

    However, it provides additional evidence that:

    • The paused-add caller name alone cannot establish whether a user clicked Update.
    • Successful staging is not equivalent to successful user registration.
    • Windows AppReadiness can finalize a previously staged Codex update during sign-in.

    I hope this comparison helps narrow the investigation into the different Windows registration and update-finalization paths.

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