Repository navigation
Open
Labels
appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Description
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.
Reacted by Scott Beeson
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ScottBeeson commentedon Oct 5, 2026
I'm also experiencing this issue.
Feedback ID: 01a10ce4-c459-7710-b48c-20cba154d0e8
boceiliev commentedon Nov 13, 2026
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
OpenAI.Codex_26.1106.6628.0_x64__2p2nqsd0c76g0; package status is OK.Observed results
OpenProcessToken/GetTokenInformation(TokenElevation)inspection of the successor ChatGPT.exe and codex.exe processes returned not elevated.WindowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator) = False, including after fully exiting and relaunching the app.--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-elevateto 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.