Skip to content

[Windows] Desktop app does not retain elevated administrator token #46018

Open

Description

@1477009639zw-blip

Summary\n\nOn Windows 11, the ChatGPT desktop app for Codex does not retain an elevated administrator token. After starting the app with administrator privileges, both the desktop process and its Codex child process still run with a limited token.\n\n## Expected behavior\n\nStarting the ChatGPT desktop app as administrator should allow the Codex agent to inherit elevated permissions, as described in the Windows app documentation:\nhttps://learn.chatgpt.com/docs/windows/windows-app#run-commands-with-elevated-permissions\n\n## Reproduction steps\n\n1. Close all ChatGPT/Codex processes.\n2. Start the Start-menu entry named ChatGPT using Run as administrator.\n3. Create a local Codex task and inspect the terminal/process token.\n4. Repeat after fully restarting the app.\n5. From an elevated PowerShell, run the bundled CLI command codex app and inspect the newly started desktop process.\n\n## Actual behavior\n\nEvery attempt produces a normal limited token:\n\n- ChatGPT.exe: Elevated = False, ElevationType = Limited\n- codex.exe: Elevated = False, ElevationType = Limited\n- Integrated shell: Medium integrity\n- The result is unchanged after a full app restart, so this is not a stale child process.\n- Calling the packaged executable directly with Start-Process ... -Verb RunAs fails with Access denied because it is under the WindowsApps package directory.\n\n## Environment\n\n- Windows 11 Pro, build 26200\n- ChatGPT desktop package: OpenAI.Codex 26.908.9136.0\n- Codex CLI: 0.154.0-alpha.6.2\n- Package manifest entry point: Windows.FullTrustApplication\n- No newer package was offered by winget at the time of testing.\n\nThis prevents local tasks that need administrator rights (for example services, drivers, firewall rules, or HKLM changes) from completing in the desktop app. No logs or session transcripts are attached because they may contain private data.

Activity

  1. added
    bug
    app
    windows-os
    on Sep 16, 2026
  2. github-actions commented on Sep 16, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. ScottBeeson commented on Oct 5, 2026

    @ScottBeeson

    I'm also experiencing this issue.

    Feedback ID: 01a10ce4-c459-7710-b48c-20cba154d0e8

  4. boceiliev commented on Nov 13, 2026

    @boceiliev

    Additional reproduction — Windows 11 build 26300, desktop package 26.1106.6628.0 (2026-11-13)

    The same administrator-elevation failure persists on this newer desktop build.

    Environment and update check

    • Windows 11 Business, OS version 10.0.26300 (x64).
    • Installed package: OpenAI.Codex_26.1106.6628.0_x64__2p2nqsd0c76g0; package status is OK.
    • WinGet's OpenAI.ChatGPT catalog currently offers the same version.
    • Microsoft Store → Updates & downloads → Check for updates completed on 2026-11-13. ChatGPT remained listed with Open, last modified 2026-11-11, with no ChatGPT update offered to this device. WinGet's msstore product metadata reports Version: Unknown, so that metadata alone was not treated as an update check.

    Observed results

    • The current Windows account belongs to the local Administrators group.
    • Standard Windows UAC elevation works: an independently launched Windows PowerShell process, started via RunAs and approved by the user, returned administrator membership True.
    • An elevated launcher likewise confirmed True, then started the installed desktop executable.
    • The initially launched desktop process exited. Its successor desktop process remained unelevated.
    • Read-only OpenProcessToken / GetTokenInformation(TokenElevation) inspection of the successor ChatGPT.exe and codex.exe processes returned not elevated.
    • Commands in the resulting Codex session returned WindowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator) = False, including after fully exiting and relaunching the app.
    • The successor ChatGPT.exe command line included --do-not-de-elevate, despite the elevated launcher's original Start-Process call passing no application arguments.

    Specific startup path worth investigating
    Chromium's AutoDeElevate implementation relaunches an elevated browser using an unelevated shell token and appends --do-not-de-elevate to the successor to prevent a relaunch loop. The observed process exit, successor token and automatically appended switch are consistent with that path. Please verify whether this inherited Chromium behavior is incorrectly active during an explicitly requested administrator launch of the desktop app; this is a diagnosis to confirm, not a claim of a maintainer-confirmed root cause.

    The official Windows instructions still say that starting the app as administrator allows the agent to inherit that permission level.

    No application binaries or package manifest were patched, and UAC/security policies were not disabled. A proposed launcher change was not applied and is not being presented as a working fix. No raw logs, credentials, account names, machine names, or private project data are attached.

    Is there a supported fix or a desktop release planned that preserves the explicitly approved elevated token? Related reports: #25296, #28107 and #46682.

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