Windows Desktop 26.527.3686.0 AppsFolder launch opens Chrome and exits; direct Codex.exe launch works
Summary
On Windows, launching Codex Desktop through the normal packaged app activation path (shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App, e.g. Start menu / original desktop shortcut) unexpectedly opens Chrome and the Codex Desktop window does not start or stay running.
Launching the packaged executable directly from the MSIX install directory with Electron logging flags does start the app successfully.
Environment
- Codex Desktop package:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0 - Codex Desktop version:
26.527.3686.0 - Install location:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0 - OS: Windows 11 Pro for Workstations, version
10.0.22000, build22000 - Codex CLI also installed separately:
codex-cli 0.130.0
Steps to reproduce
- Launch Codex Desktop using the normal packaged app entry point:
- Start menu entry, or
- a shortcut targeting
explorer.exe shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App
- Observe that Chrome opens unexpectedly.
- Observe that the Codex Desktop app does not visibly start / does not remain running.
- Launch the packaged executable directly instead:
$app = 'C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app'
Start-Process -FilePath "$app\Codex.exe" -WorkingDirectory $app -ArgumentList '--enable-logging=stderr','--v=1'
- Observe that Codex Desktop launches successfully and the main window reaches
ready-to-show.
Expected behavior
The Start menu / AppsFolder activation path should launch Codex Desktop directly and reliably, without opening Chrome unexpectedly or exiting before the main window is usable.
Actual behavior
The packaged app activation path opens Chrome and Codex Desktop does not become usable. A direct Codex.exe launch with --enable-logging=stderr --v=1 works as a workaround.
Workarounds tried
Reset-AppxPackage -Package OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0- Re-registering the package manifest with
Add-AppxPackage -DisableDevelopmentMode -Register ...\AppxManifest.xml - Removing stale
.staging-*directories under%LOCALAPPDATA%\OpenAI\Codex\bin - Replacing the desktop shortcut with a wrapper that resolves the current AppX package and directly starts
Codex.exewith--enable-logging=stderr --v=1
The wrapper workaround is currently usable, but the native AppsFolder / Start menu entry remains unreliable.
Relevant logs
The direct/package launch that succeeds still reports repeated EPERM staging/rename failures:
2026-05-30T04:55:12.522Z info Launching app packaged=true platform=win32
2026-05-30T04:55:13.242Z warning bundled_executable_relocation_failed destinationPath=%LOCALAPPDATA%\OpenAI\Codex\bin\7dea4a003bc76627 errorCode=EPERM errorMessage="Bundled executable relocation failed during rename_staging" errorName=BundledExecutableRelocationError executableName=codex.exe failedExecutableName=codex.exe operation=rename_staging originalError={"errno":-4048,"code":"EPERM","syscall":"rename","path":"%LOCALAPPDATA%\\OpenAI\\Codex\\bin\\.staging-7dea4a003bc76627-...","dest":"%LOCALAPPDATA%\\OpenAI\\Codex\\bin\\7dea4a003bc76627"} platform=win32 sourceKind=windowsapps
2026-05-30T04:55:14.055Z info [window-manager] window ready-to-show appearance=primary hostId=local startupElapsedMs=108 webContentsId=1 windowId=1
2026-05-30T04:55:23.616Z warning [BundledPluginsMarketplace] bundled_plugins_marketplace_resolve_failed errorCode=EPERM errorMessage="EPERM: operation not permitted, rename '%USERPROFILE%\\.codex\\.tmp\\bundled-marketplaces\\openai-bundled.staging-...' -> '%USERPROFILE%\\.codex\\.tmp\\bundled-marketplaces\\openai-bundled'"
There is also a separate warning during first-turn/project startup:
Primary runtime install failed before first turn errorMessage="Codex Workspace dependencies are not supported on Windows 10."
That appears separate from the app launch failure, but it may be relevant because this machine is Windows 11 build 22000 while the runtime installer reports the Windows 10 unsupported path.
Notes
This started after the Desktop package changed to 26.527.3686.0; older local logs show prior 26.506.*, 26.513.*, and 26.519.* package generations. I could not find an existing issue matching BundledExecutableRelocationError / rename_staging exactly.
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Update after reinstall:
I uninstalled/reinstalled Codex Desktop and the issue still reproduces with the native Start menu / AppsFolder activation path.
Current package after reinstall is still:
After reinstall, the desktop workaround shortcut was removed/cleared, so I recreated it to directly launch:
That workaround continues to work: launching the recreated desktop shortcut starts Codex Desktop, the app process stays running, and no new Chrome process is created. The native AppsFolder / Start menu entry remains the problematic path.
Additional plugin regression after reinstall / workaround details:
After reinstalling Codex Desktop 26.527.3686.0, the app could be launched via the direct shortcut workaround, but bundled plugins that previously worked were unavailable or broken, specifically Chrome and Computer Use.
Observed broken state:
codex plugin marketplace listdid not includeopenai-bundled; onlyopenai-curated/ another marketplace were visible.~/.codex/config.tomlstill had[plugins."chrome@openai-bundled"],[plugins."computer-use@openai-bundled"], and[plugins."browser@openai-bundled"]enabled, but the configuredopenai-bundledsource had previously pointed at a transient path under~/.codex/.tmp/bundled-marketplaces/openai-bundled, which was missing.Repair that restored Browser / Chrome / Computer Use visibility:
After that:
And after restarting Desktop:
Chrome-specific issue after reinstall:
HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension%LOCALAPPDATA%\OpenAI\extension\com.openai.codexextension.jsoninstallManifest.mjsattempted to writeextension-host-config.jsonnext toextension-host.exeinsideC:\Program Files\WindowsApps\..., which failed withEPERMbecause the MSIX package directory is read-only.Workaround used:
extension-host.exeto%LOCALAPPDATA%\OpenAI\extension\extension-host.exe%LOCALAPPDATA%\OpenAI\extension\extension-host-config.jsonnext to it with the runtime paths%LOCALAPPDATA%\OpenAI\extension\com.openai.codexextension.jsonpointing to that copied hostValidation after repair:
This machine also has Chrome user data under a non-default path:
Setting
CODEX_CHROME_USER_DATA_DIRto that path was required for the bundled Chrome checks to detect the installed extension.Additional reproduction data from another Windows machine on the same Desktop package:
Observed behavior:
explorer.exe shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App) creates the AppX container and process, then exits almost immediately.Crashpad evidence is consistent across multiple attempts. All minidumps report the same exception:
Examples from the local Crashpad reports:
Workarounds tried on this machine:
--disable-gpu --disable-software-rasterizer --no-first-run: still crashes, samechrome.dlloffset.%LOCALAPPDATA%\OpenAI\Codex\binaside to rule out stale local backend binaries: still crashes before recreating the bin cache.Get-AppxPackage -Name OpenAI.Codex:Status: Ok,SignatureKind: Store.This looks like a native Chromium/Electron browser-process crash in the 26.527.3686.0 Windows package rather than a workspace, MCP, sandbox, or CLI configuration issue.
You can check whether your system has this environment variable set:
NODE_OPTIONS=--openssl-legacy-provider
If it exists, try deleting it and then see if Codex launches normally.
Hi, I had this one: NODE_OPTIONS --experimental-default-type=commonjs
After removing it codex started working again, finally after a week!
Thanks!
Making a shortcut to
_"C:\Program Files\WindowsApps\OpenAI.Codex_26.602.4764.0_x64__2p2nqsd0c76g0\app\Codex.exe" --enable-logging=stderr --v=1_
worked for me, but Codex is still very unstable and constantly freezing
Making the shortcut worked for me as well "--enable-logging=stderr --v=1". I installed Codex and Codex Beta and same issue for both. Shortcut worked for both. However the logging window gets stuck at times and I have to Enter to continue the process. Not to mention it is extremely slower than before. Stopped working 1 week ago. I am using version OpenAI.Codex_26.609.4994.0_x64 and OpenAI.CodexBeta_26.527.7698.0_x64
Original Issue - Clicking on the App Shortcut/Links takes me straight to Chrome (home page) on Codex and Codex Beta, after two uninstallation s and 2 Window repairs.