Windows desktop notification click opens invalid WindowsApps path with type=click query
Summary
On Windows, Codex desktop turn-complete notifications can trigger an Electron launch error when the notification is clicked/opened. The error dialog shows Windows/Electron trying to launch a path under C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\... with notification click metadata appended, e.g. ?type=click&tag=..., and then reports that the Electron app/module cannot be found.
Disabling Windows notifications for the Codex app stopped the error immediately, which points to the desktop notification activation path rather than the CLI notify hook.
Environment
- OS: Windows
- Codex desktop package observed in logs:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0 - App-server version reported in logs:
0.135.0-alpha.1 - Codex desktop build flavor:
prod - Approx observed time: 2026-05-29 evening Pacific / 2026-05-30 UTC
Repro steps
- Run Codex desktop on Windows.
- Send a prompt and wait for the assistant turn to complete.
- Codex shows a desktop notification for the completed turn.
- Click/open the notification.
- An Electron error dialog appears.
Observed behavior
The dialog title is Error, with heading Error launching app. It says it is unable to find the Electron app at a path shaped like:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\...\?type=click&tag=...
It also reports Cannot find module for the same path shape.
Relevant redacted log sequence:
[desktop-notifications] show turn-complete conversationId=<redacted> turnId=<redacted>
[desktop-notifications] forward show kind=turn-complete notificationId=turn-<redacted>
[desktop-notifications] show notification actionCount=0 kind=turn-complete notificationId=turn-<redacted>
[desktop-notifications] emit action actionId=none actionType=open notificationId=turn-<redacted>
[desktop-notifications] notification click open notificationId=turn-<redacted>
[desktop-notifications] action actionType=open conversationId=<redacted> requestId=none
There were also repeated startup lines such as:
[desktop-notifications] service starting
[computer-use-native-pipe] computer-use notify config ensure finished platform=win32 reason=missing-helper-path status=skipped
Earlier, when the notify = [...] CLI config hook existed, it was removed/disabled. The error still reproduced on desktop notification click/open events, so the issue appears to be the app's built-in notification activation handling.
Expected behavior
Clicking a Codex turn-complete notification should focus/open the existing Codex desktop window and navigate to the relevant conversation without an Electron launch error.
Workaround confirmed
Disable Windows notifications for the Codex app registry entry:
HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\OpenAI.Codex_2p2nqsd0c76g0!App
Enabled = 0
After setting this, the turn-complete notification no longer appeared and the error stopped occurring.
13 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
+1
Additional local reproduction evidence
The issue is reproducible on another Windows installation with the same Codex Desktop package version.
Environment
10.0.26200OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g026.527.3686.0OkOpenAI.Codex_2p2nqsd0c76g0!AppObservations
Codex.exeprocesses.app\Codex.exeapp\resources\app.asarapp\resources\codex.exetype=click&tag=...payload appended/interpreted as part of the Electron app path:Result
The evidence points to the Windows toast activation argument (
type=click&tag=...) being passed through as an Electron app path instead of being handled as notification activation data. The main Codex app remains usable when launched normally.+1
+1
+1
I can confirm this still reproduces on Windows with Codex desktop
26.527.3686.0/ packageOpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0.Additional troubleshooting data:
Add-AppxPackage -DisableDevelopmentMode -ForceApplicationShutdown -Register <AppxManifest.xml>....?type=click&tag=4097135412003327338.So this does not appear to be a stale/corrupt local AppX registration on this machine. It looks like the notification activation payload is still being delivered to Electron as an app/module path after a clean package re-registration.
I reproduced the same notification-click failure and found one additional local data point that may help narrow it down.
In
%LOCALAPPDATA%\Microsoft\Windows\Notifications\wpndatabase.db, Codex notifications are registered under the handlerOpenAI.Codex_2p2nqsd0c76g0!App.The stored toast payloads use launch arguments in the exact shape
type=click&tag=.... Some reply-capable notifications also use foreground action arguments liketype=reply&tag=....That matches the invalid Electron path shown in the dialog, where the bare activation payload appears as
...\type=click&tag=....I also checked the installed AppX manifest. The app entrypoint is
Application Id="App" Executable="app/Codex.exe" EntryPoint="Windows.FullTrustApplication", with the packaged AppXcodexprotocol extension declared. So this appears to be going through the packaged AppX activation path, not a traditionalHKCR\codex\shell\open\commandWin32 protocol command.One more observation: at the time of the dialog, Windows AppModel logs showed a new process being created for
OpenAI.Codex_2p2nqsd0c76g0!Appwhile an existing Codex desktop instance was already running. The Codex desktop log files created around that failed launch were 0 bytes, which suggests the failure occurs before the main app code has a chance to log or handle the activation.So the likely failure point seems to be before Codex's own notification/deep-link handling, where the bare toast activation string
type=click&tag=...is being passed to Electron in a way that Electron treats as an app/module path.Additional observation from Windows Codex Desktop 26.527.7698.0:
OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g02009by PowerShellGet-ComputerInfoObserved dialog text shape:
This looks consistent with the activation payload
#type=click&tag=...being interpreted as part of the Electron app/module path. The side-chat-specific detail is that a direct side chat entry point can trigger the same failure, while opening the parent/main chat remains a viable workaround.As far as I can tell, it's actually impossible to install the Linear plugin with this bug, because it requires going to the website and then bouncing back to the app, which fails. I assume it's the same for other plugins as well.
same question
I can still reproduce this on a newer Windows Codex Desktop package.
Environment:
Observed:
Clicking a Codex Windows notification still opens an Electron error dialog.
The dialog shows a path shaped like:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527...\?type=click&tag=<notification-tag>
and reports:
Troubleshooting tried:
This still looks like the Windows toast activation payload is being interpreted as an Electron app path instead of notification activation data.
+1