Skip to content

[Windows 10] Run as administrator now launches, but app and agent remain unelevated #46682

Open

Description

@Hopespoir

Current status — 2026-10-11

On package 26.1007.2314.0, Start menu → Run as administrator now opens the app without the previous Windows popup. However, ChatGPT.exe, codex.exe, and commands launched by the agent remain unelevated. The app was fully exited, including its tray icon, before this test. A command in the resulting session reports administrator membership false and Medium Mandatory Level. The LocalSystem sandbox service is running, but this does not establish administrator access for the agent. See the dated follow-up comment for current diagnostics and investigation suggestions.

The September report below is retained as historical context; its popup and version details describe the earlier behavior.


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

Initially 26.915.4065.0; the failure persists after updating and reinstalling 26.917.9434.0. Versions were checked through Windows package information; the About dialog was not independently checked.

What subscription do you have?

Unknown / not provided; failure occurs during Windows app launch.

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64 (Windows 10 Home)

What issue are you seeing?

The ChatGPT/Codex desktop app launches normally at medium integrity, but launching it with Administrator privileges fails. Windows shows a popup with an error sound; the user describes its message as saying the package cannot be found. This prevents use of existing desktop app chats, projects, and ongoing tasks with Administrator privileges.

Diagnostics on the affected PC:

  • Current installed package: OpenAI.Codex_26.917.9434.0_x64__2p2nqsd0c76g0. Get-AppxPackage reports Status: Ok. The previous failure was also seen on 26.915.4065.0.
  • app\ChatGPT.exe exists and normal launch works. Get-StartApps lists OpenAI.Codex_2p2nqsd0c76g0!App.
  • The manifest targets Windows.Desktop MinVersion=10.0.19041.0; the PC is build 19045.
  • The current manifest declares runFullTrust but not allowElevation. This is a possible packaging clue, not a confirmed cause.
  • AppModel-Runtime/Admin event ID 204, 2026-09-19 08:48 local time, on version 26.915.4065.0: 0x800704C7: Cannot create the process for package because an error was encountered while elevating the token. [LaunchProcess]
  • UAC is enabled (EnableLUA=1).
  • After reinstalling on 2026-09-25, Windows logged a successful package registration and the Codex packaged service is present and running.

What steps can reproduce the bug?

  1. On Windows 10 build 19045 x64, install/open ChatGPT/Codex (currently package version 26.917.9434.0).
  2. Fully quit the app, including its tray icon.
  3. In the Start menu, find ChatGPT and choose Run as administrator.
  4. Observe the same package-not-found popup and no elevated app session. Normal launch still works.

The user tried Windows' app Repair multiple times, then uninstalled and reinstalled the app. Neither resolved the elevated-launch failure. The failure occurs before a Codex task starts, so there is no session ID or context-window metric for the attempt.

What is the expected behavior?

The desktop app launches elevated, and the Codex agent inherits that permission level, as the official Windows instructions describe.

Additional information

Official instructions: https://learn.chatgpt.com/docs/windows/windows-app

Related #28107 and #25296 concern the app launching but the agent/tool host ending up at medium integrity. In this report, the elevated desktop app launch itself fails.

Please verify whether this Store-signed package is intended to support elevation on Windows 10 and whether its manifest or app activation path explains the failure. No manifest modification or UAC policy change was performed.

Activity

  1. added
    app
    on Sep 19, 2026
  2. added
    bug
    windows-os
    on Sep 19, 2026
  3. changed the title [-][Windows 10][26.915.4065.0] Run as administrator fails with package-not-found popup[/-] [+][Windows 10] Run as administrator fails with package-not-found popup[/+] on Sep 25, 2026
  4. changed the title [-][Windows 10] Run as administrator fails with package-not-found popup[/-] [+][Windows 10] Run as administrator now launches, but app and agent remain unelevated[/+] on Oct 11, 2026
  5. Hopespoir commented on Oct 11, 2026

    @Hopespoir
    Author

    Follow-up — 2026-10-11: startup error gone, administrator access still missing

    After several updates, Start menu → Run as administrator opens the app without the previous package-not-found popup. The app and its agent still run without administrator privileges. The app was completely exited, including its tray icon, before this launch; this was not simply opening an existing app instance.

    Current environment and measured results

    • Windows 10 Home x64, version 10.0.19045 / build 19045.
    • Installed package: OpenAI.Codex_26.1007.2314.0_x64__2p2nqsd0c76g0; Get-AppxPackage status: Ok. Version obtained from package information, not the About dialog.
    • Task Manager shows ChatGPT.exe and both codex.exe processes with Elevated = No.
    • A PowerShell command launched by the agent in the resulting desktop session, with full access / filesystem sandbox disabled, reports:
    test result
    WindowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator) False
    whoami /groups integrity SID S-1-16-8192 (Medium Mandatory Level)
    BUILTIN\Administrators Group used for deny only

    The administrator check can be reproduced in an agent command using:

    ([Security.Principal.WindowsPrincipal]::new([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
    whoami /groups

    Read-only parent-process inspection shows:

    explorer.exe → ChatGPT.exe → codex.exe → pwsh.exe
    

    CodexSandboxService.OpenAI.Codex is Running as LocalSystem, with codex-windows-sandbox-service.exe showing Elevated = Yes. This service was already present during the September investigation. Its elevation does not establish administrator privileges for the agent's commands. The Windows sandbox documentation explains that the legacy elevated sandbox uses administrator-approved setup while its commands run without administrator privileges.

    Specific areas to investigate (hypotheses, not a confirmed root cause)

    1. Packaged app activation / elevation on Windows 10. The installed AppxManifest.xml still declares runFullTrust, packagedServices and localSystemServices, but no allowElevation capability. The App entry launches app/ChatGPT.exe with EntryPoint=Windows.FullTrustApplication. Please verify whether the package's capabilities and launch path support the documented Start menu elevation workflow. Microsoft's capability documentation distinguishes full-trust/medium-integrity applications from elevation; runFullTrust alone is not evidence of an administrator token.
    2. Token preservation through app startup and command execution. Check the actual tokens of the first app process, any startup relaunch/broker, the Codex backend, and the command runner. The current manifest also registers CodexCoreCommandRunner → app/resources/codex-command-runner.exe as Windows.FullTrustApplication. We have not established which part of this path discards or fails to obtain elevation. Since the app itself is also unelevated, this cannot yet be attributed solely to shell sandboxing.
    3. Documented behavior versus intended design. The current official Windows app instructions say to launch the app as administrator so the agent inherits that permission level. If desktop elevation is intentionally unsupported on Windows 10, please clarify that limitation and provide a supported route for administrator commands while retaining desktop chats/projects.

    UAC remains enabled: EnableLUA=1, ConsentPromptBehaviorAdmin=5, PromptOnSecureDesktop=1. Multiple Repairs and an uninstall/reinstall were previously tried without resolving the issue. No package manifest or UAC policy was modified.

    Related reports: #28107 and #25296. The earlier popup/event evidence remains in the original description as historical context. Please keep this issue open for the remaining administrator-access failure, or link it to the appropriate existing issue if it shares a root cause.

  6. Hopespoir commented on Oct 11, 2026

    @Hopespoir
    Author

    Submitted the same current-behavior summary through the desktop app’s feedback form on 2026-10-11, including a link to the diagnostic follow-up above. The app confirmed “Feedback submitted”.

    Feedback ID: 01a0babd-1200-7592-8c9f-4f1b466b6e3a

    Adding this reference so the submitted feedback can be correlated with this GitHub issue.

  7. Navist commented on Nov 4, 2026

    @Navist

    Additional Windows 10 reproduction — Codex Desktop 26.1029.7803.0

    I can reproduce the administrator-elevation failure on a newer Microsoft Store build of Codex Desktop, 26.1029.7803.0, running Windows 10 Education 22H2 x64.

    The desktop application works normally, but its integrated agent consistently fails to obtain administrator privileges, including after attempts to launch the application as administrator.

    Environment

    OS: Windows 10 Education 22H2 x64
    Codex Desktop: 26.1029.7803.0
    MSIX package: OpenAI.Codex
    Package status: Ok
    Architecture: x64
    Installation: Microsoft Store
    

    Installed MSIX manifest

    The actual installed package was inspected using Get-AppxPackage and Get-AppxPackageManifest.

    Main application:
      Executable: app/ChatGPT.exe
      EntryPoint: Windows.FullTrustApplication
    
    Command runner:
      Executable: app/resources/codex-command-runner.exe
      EntryPoint: Windows.FullTrustApplication
    
    Packaged sandbox service:
      Name: CodexSandboxService.OpenAI.Codex
      StartAccount: localSystem
      StartupType: auto
    
    Declared capabilities:
      runFullTrust
      unvirtualizedResources
      packagedServices
      localSystemServices
    

    The inspected capability list does not include allowElevation.

    This may be relevant to the packaged application activation mechanism, but I have not established that it is the cause.

    Codex configuration

    sandbox_mode = "workspace-write"
    approval_policy = "on-request"
    
    [windows]
    sandbox = "unelevated"

    The desktop app-server command line includes:

    features.code_mode_host=true
    features.prefer_mxc=true
    app-server --analytics-default-enabled
    

    The prefer_mxc flag does not establish that MXC is active. The configured legacy fallback is unelevated.

    Observed process ancestry

    Read-only process inspection identified:

    ChatGPT.exe
      PID: 20600
      |
      +-- codex.exe
          PID: 23016
          Role: app-server
    

    These PIDs identify the processes during the diagnostic capture and are not expected to remain constant.

    The command runner is declared in the installed manifest, but its live token and parent process were not captured.

    Administrator-token comparison

    A separate, normally elevated Windows PowerShell process successfully reports:

    Administrator: True
    Integrity: High Mandatory Level
    BUILTIN\Administrators: Enabled
    

    However, checks executed through the Codex Desktop agent have repeatedly reported:

    Administrator: False
    

    Therefore, Windows can provide an elevated token to this account, while the desktop agent does not obtain one through the attempted administrator-launch workflow.

    The exact desktop and app-server process integrity levels were not measured in this capture, so I am not claiming that those specific processes were independently verified as Medium or Limited.

    Reproduction

    1. Open Codex Desktop and run an administrator-role check from the agent.
    2. Observe Administrator=False.
    3. Attempt to start Codex Desktop using Windows' Run as administrator workflow.
    4. Check the agent's administrator role again.
    5. Observe that the agent remains unelevated.

    An additional attempt to launch the installed packaged executable from an already elevated PowerShell session with --do-not-de-elevate failed:

    Start-Process:
    This command cannot be run due to the error:
    Access is denied.
    

    No executable patching, WindowsApps permission modification, or security-policy changes were performed.

    Expected behavior

    The official Windows desktop documentation states that launching the application as administrator allows the Codex agent to inherit elevated permissions:

    https://learn.chatgpt.com/docs/windows/windows-app#run-commands-with-elevated-permissions

    When administrator execution is explicitly requested and approved, the desktop agent should be able to execute administrator-required Windows operations through a supported mechanism.

    Actual behavior

    The desktop agent does not obtain administrator privileges.

    Normal Windows elevation works outside Codex, and the installed application package reports a healthy registration.

    Neither runFullTrust nor the presence of a LocalSystem sandbox service establishes that the agent command runner has an elevated token.

    The official Windows sandbox documentation also distinguishes the legacy elevated sandbox implementation from an administrator-elevated agent command:

    https://learn.chatgpt.com/docs/windows/windows-sandbox

    Related issues

    Issue #25296 also contains a November 2026 Windows 10 reproduction involving build 26.1027.6604.0. That report found that executing a detached physical copy could preserve elevation, whereas the original Store-installed application could not. This is useful diagnostic evidence but is not a supported fix for the installed Store package.

    Questions for maintainers

    1. Is administrator-elevated agent execution officially supported for the Store-installed Codex Desktop application on Windows 10 build 19045?
    2. Is the current MSIX capability declaration intentional, including the absence of allowElevation?
    3. Does package activation, application relaunch, or app-server startup discard the elevated token?
    4. Is there a supported correction for package 26.1029.7803.0 that preserves the installed desktop application and existing projects?
    5. If Windows 10 elevation is unsupported, could the documentation clarify the limitation rather than instructing users to use Run as administrator?

    The goal is administrator execution inside Codex Desktop, with explicit approval and normal Windows security protections. Switching to a separately elevated CLI session does not resolve this desktop application issue.

    No credentials, private logs, or personal filesystem paths are included in this report.

  8. Hopespoir commented on Nov 24, 2026

    @Hopespoir
    Author

    Windows 10 retest on 26.1120.5083.0 (2026-11-24)

    On Windows 10 Home 22H2 x64, build 19045.6466, the original Start menu Run as administrator action again opens the desktop app after a short delay. An intervening update had brought back the symptom of no window opening. The current package is OpenAI.Codex 26.1120.5083.0, up from 26.1117.4957.0, and Windows logged successful registration. The installed ChatGPT.exe file version is 158.0.8127.37.

    For the latest launch, AppModel-Runtime/Admin event 201 logged two ChatGPT.exe processes for the same packaged app:

    Local time PID Observation
    21:02:22.450 21384 First process. It had exited before token inspection.
    21:02:22.811 12264 Surviving main process, parent explorer.exe, with the --do-not-de-elevate flag.

    Read-only Windows API checks returned TokenElevation=0 and TokenElevationType=Limited for the surviving main process and both running codex.exe processes. A PowerShell command in the agent's current Windows sandbox separately returned administrator membership False and Medium integrity. The main app and backend token measurements are independent of the agent sandbox.

    The 361 ms sequence and the flag on the surviving process match Chromium's startup relaunch without elevation, which appends --do-not-de-elevate to prevent a second relaunch. The first process's token and exit status were unavailable on this machine, so the mechanism remains an inference for this launch.

    Navist’s independent Windows 10 reproduction showed that ordinary elevated PowerShell worked on Store build 26.1029.7803.0 while the desktop agent still lacked administrator rights. Their attempt to start the installed executable directly with --do-not-de-elevate returned Access is denied. Our newer capture adds direct token measurements of the surviving app and backend, supporting a regression test through the original packaged Start menu entry.

    Could maintainers check whether the packaged startup relaunch treats an explicit Windows Run as administrator request the same as an ordinary launch? A regression test could start the installed Store package through the original Start menu entry on Windows 10 and Windows 11, capture the first and surviving app tokens and exit status, and verify the backend and command tokens under the documented administrator workflow. The expected behavior should distinguish elevated execution from commands deliberately running in the Windows sandbox. If the Store package intentionally falls back to standard privileges, please make that visible in the app and document the supported route for administrator work in an existing desktop chat. OpenAI's Windows app instructions

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