Repository navigation
Description
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?
- On Windows 10 build 19045 x64, install/open ChatGPT/Codex (currently package version 26.917.9434.0).
- Fully quit the app, including its tray icon.
- In the Start menu, find ChatGPT and choose Run as administrator.
- 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
[-][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[/+][-][Windows 10] Run as administrator fails with package-not-found popup[/-][+][Windows 10] Run as administrator now launches, but app and agent remain unelevated[/+]Hopespoir commentedon Oct 11, 2026
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
The administrator check can be reproduced in an agent command using:
Read-only parent-process inspection shows:
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)
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.
Hopespoir commentedon Oct 11, 2026
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-4f1b466b6e3aAdding this reference so the submitted feedback can be correlated with this GitHub issue.
Navist commentedon Nov 4, 2026
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
Installed MSIX manifest
The actual installed package was inspected using
Get-AppxPackageandGet-AppxPackageManifest.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
The desktop app-server command line includes:
The
prefer_mxcflag does not establish that MXC is active. The configured legacy fallback isunelevated.Observed process ancestry
Read-only process inspection identified:
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:
However, checks executed through the Codex Desktop agent have repeatedly reported:
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
Administrator=False.An additional attempt to launch the installed packaged executable from an already elevated PowerShell session with
--do-not-de-elevatefailed: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
runFullTrustnor 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
elevatedsandbox 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
allowElevation?26.1029.7803.0that preserves the installed desktop application and existing projects?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.
Hopespoir commentedon Nov 24, 2026
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:
--do-not-de-elevateflag.Read-only Windows API checks returned
TokenElevation=0andTokenElevationType=Limitedfor 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-elevateto 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-elevatereturned 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.CO_E_NOTINITIALIZEDfrom the packaged relaunch helper. That could explain the earlier no-window symptom here, although we have no matching HRESULT capture from this PC.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