Windows Desktop 26.527.3686.0: clicking toast notification launches Codex.exe with raw type=click&tag=... and shows Electron error
Summary
On Windows, clicking a Codex desktop notification can launch a new Codex.exe process with the raw toast activation arguments as the first app argument:
"C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\Codex.exe" type=click&tag=10373975442458207603
That process then shows an Electron startup dialog:
Error launching app
Unable to find Electron app at C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x...\type=click&tag=10373975442458207603
Cannot find module 'C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x...\type=click&tag=10373975442458207603'
It looks like the notification activation payload is being passed to Electron as an app path instead of being handled as a Windows notification activation event / second-instance argument.
Environment
- OS: Microsoft Windows 11 Home Single Language
- OS version:
10.0.26200, build26200, x64 - Codex package:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0 - Codex app version:
26.527.3686.0 - Install location:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0
Observed behavior
- Codex desktop is already running normally.
- A Windows notification from Codex is clicked.
- Windows starts another
Codex.exeprocess viaWpnUserService. - The new process command line is:
"C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\Codex.exe" type=click&tag=10373975442458207603
- The new process displays the Electron error dialog above. The existing main Codex window remains usable.
Expected behavior
Clicking a Codex notification should focus/open the relevant Codex window/thread, or no-op gracefully. It should not spawn a new Electron process that treats type=click&tag=... as an application path.
Workaround used locally
To stop the repeated popup, I disabled Windows notifications for Codex and cleared Codex notification history:
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\OpenAI.Codex_2p2nqsd0c76g0!App'
New-ItemProperty -Path $key -Name Enabled -PropertyType DWord -Value 0 -Force
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.UI.Notifications.ToastNotificationManager]::History.Clear('OpenAI.Codex_2p2nqsd0c76g0!App')
This prevents the user from triggering the faulty notification launch path, but it disables Codex notifications entirely.
Additional notes
- The main app files exist (
app\Codex.exe,app\resources\app.asar, and bundledresources\codex.exe). - This appears distinct from full app launch failure: the already-running app continued working; only the notification-click spawned process failed.
- Possibly related to Windows/MSIX activation handling in the same
26.527.3686.0release line.
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Adding an independent reproduction with a bit more Windows-side evidence. This looks like a specific MSIX/Windows toast foreground-activation handling bug, not an unquoted
C:\Program Filespath issue.Environment observed locally:
When the dialog appears, there are two separate Codex process trees:
Microsoft-Windows-AppModel-Runtime/Adminlogs the launch as Windows activating the packaged app, not Explorer or a broken shortcut:The Windows notification database ties the bad argv directly to the Codex toast payload:
So the failure path appears to be:
launch="type=click&tag=..."or a foreground action witharguments="type=reply&tag=...".WpnUserService) activates the packaged full-trust app.type=click&tag=....This also explains why the issue feels random: the main Codex process remains usable; the popup belongs to a second process spawned only by Windows notification activation. It is not a full app launch failure.
The executable path itself is quoted correctly in the command line, so reports that frame this as a
Program Filesspace/quoting problem are probably seeing a symptom, not the cause.Likely fix area: handle/sanitize MSIX toast foreground-activation argv (
type=click&tag=...,type=reply&tag=...) before Electron's app-path resolution, or route those activation args through the existing running instance before Electron tries to load them as an app path.Current workaround is to disable Codex Windows notifications, but that also removes useful completion/permission notifications, so it is not a real fix.
Additional confirmation from another Windows install. I hit the same Electron startup dialog after clicking/opening a Codex notification.
Environment:
10.0.26200, build26200, x64OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g026.527.3686.0C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0Dialog text from the screenshot:
This matches the same failure mode: Windows notification activation data (
type=click&tag=...) is being interpreted as an Electron app/module path instead of being handled as a notification click payload.I’m seeing the same Windows desktop notification activation failure.
Observed dialog:
This looks consistent with the report here: the toast activation payload
type=click&tag=...is being appended/interpreted as the Electron app/module path instead of being handled as a notification activation argument. The main Codex app can still run; the failure is triggered by notification click activation.是的,我也遇到了同样的问题,我尝试过修复,但无济于事
codex 版本:26.527.60818
<img width="1116" height="442" alt="Image" src="https://github.com/user-attachments/assets/995dbce5-cc56-4170-8b8e-1b401dd35d31" />
I can reproduce the same Windows notification activation path with permission approval actions, not only notification clicks.
Environment observed locally:
OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\Codex.exeRepro:
Allow/ approve from the Windows notification popup.Observed dialog shape:
Relevant Codex log sequence confirms the notification action itself is delivered to the running app:
So the issue appears to affect both:
type=click&tag=...notification click activationtype=action&action=<index>&tag=...notification button activationExpected behavior: approval from the Windows notification popup should continue to work, but the raw toast activation payload should not be interpreted as an Electron app/module path.
One local experiment adding a user-level
CustomActivatorfor the Codex AUMID suppressed the Electron dialog, but it also broke delivery of the notification action back to the running Codex process, so that is not a viable workaround. This likely needs to be fixed in Codex/Electron/Owl Windows notification activation handling rather than by user registry configuration.Confirming this is still reproducible on a newer Codex Windows build.
Environment
26.527.7698.010.0.26200zh-TWOkReproduction
Redacted error shape:
Redacted app log sequence:
Windows app repair and uninstall/reinstall did not resolve the issue. The main app files exist and Codex launches normally when opened directly; the failure remains specific to notification click activation.