[Windows] Background Store update silently exits tray app and does not relaunch
What version of the Codex App are you using (From "About Codex" dialog)?
This was observed across two unattended Windows Store/AppX updates:
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0toOpenAI.Codex_26.707.6957.0_x64__2p2nqsd0c76g0OpenAI.Codex_26.707.8479.0_x64__2p2nqsd0c76g0toOpenAI.Codex_26.707.9981.0_x64__2p2nqsd0c76g0
The currently installed package is OpenAI.Codex_26.707.9981.0_x64__2p2nqsd0c76g0.
What subscription do you have?
Unknown / not relevant to the updater behavior.
What platform is your computer?
Windows 11 Education 25H2, build 26200.8655, 64-bit.
What issue are you seeing?
Codex Desktop can silently disappear from the Windows tray when a background Microsoft Store/AppX update is installed, even though I did not click the blue in-app update button or otherwise initiate an update. The package update succeeds, but Codex does not relaunch and remains completely closed until I start it manually.
I first noticed the symptom after returning to the laptop later, including after leaving it in standby overnight. This initially looked like Codex had crashed during standby. The logs instead show that Codex had already been terminated by an unattended package update and had never returned. This distinction matters because someone encountering the symptom may search for an overnight, resume, standby, or tray crash rather than an in-app update failure.
I observed this twice in the last few days. In both cases:
- Codex was running without an update being manually triggered.
- The updater detected or installed a package in the background.
- Windows registered the package with
ForceTargetApplicationShutdownOption. - Codex logged
Stopping app-server transportat the same moment. - The package update succeeded, but no Codex process or tray icon returned.
- Manually launching Codex later opened the newly installed version normally.
There was no matching Windows Application Error, Application Hang, or Windows Error Reporting entry. This appears to be an unattended update shutdown followed by a failed relaunch, not a process crash.
What steps can reproduce the bug?
The timing depends on update availability, but the observed flow is:
- Start Codex Desktop on Windows and leave it running or minimized to the tray.
- Do not click the in-app update button.
- Leave the application running while a Microsoft Store/AppX update becomes available and is downloaded or installed in the background.
- Allow Windows to register the new Codex package.
- Return to the computer later or wake it from standby.
Observed result:
- Codex is no longer running and its tray icon is gone.
- There was no update prompt, installing state, crash dialog, or other explanation.
- Codex does not relaunch automatically.
- A manual launch starts the updated package successfully.
What is the expected behavior?
An unattended background update should not silently leave Codex closed. Codex should either:
- relaunch automatically after the package update completes, preserving its prior tray/window state, or
- defer an update that requires terminating the running application until the user explicitly approves it.
If neither is possible, Windows or Codex should at least provide a notification explaining that the application was closed for an update and must be reopened manually.
Additional information
First unattended occurrence:
2026-07-12 21:28:15 CEST: Codex checks the Store; buildVersion=26.707.3748.0, manifestBuildVersion=26.707.6957.0
2026-07-12 21:29:05 CEST: update check completes with canSilentlyDownload=true, hasUpdate=true
2026-07-12 22:01:47 CEST: Codex logs "Stopping app-server transport"
2026-07-12 22:01:47 CEST: AppX RegisterByPackageFamilyName starts with ForceTargetApplicationShutdownOption
2026-07-12 22:01:47 CEST: updateList records 26.707.3748.0 updating to 26.707.6957.0
2026-07-13 10:49:35 CEST: next Codex log session begins after manual launch
Second unattended occurrence:
2026-07-14 05:13:24 CEST: Codex checks the Store; buildVersion=26.707.8479.0, manifestBuildVersion=26.707.9564.0
2026-07-14 05:14:16 CEST: update check completes with canSilentlyDownload=true, hasUpdate=true
2026-07-14 14:55:22 CEST: Codex logs "Stopping app-server transport"
2026-07-14 14:55:22 CEST: AppX RegisterByPackageFamilyName starts with ForceTargetApplicationShutdownOption
2026-07-14 14:55:22 CEST: updateList records 26.707.8479.0 updating to the newer 26.707.9981.0 package
2026-07-15 10:34:20 CEST: next Codex log session begins after manual launch
For the second occurrence, Windows recorded the later overnight standby from 2026-07-15 01:37 until 10:29 CEST. Codex had therefore already been closed by the package update more than ten hours before standby began.
The relaunch behavior is intermittent. An intervening update from 26.707.6957.0 to 26.707.8479.0 on July 13 was followed by a new Codex log session about three seconds later, consistent with a successful automatic relaunch.
Related issues:
- #24047 reports the same post-update relaunch failure after manually clicking the in-app update affordance.
- #29787 also reports no relaunch after manually clicking the blue update button and appears to duplicate #24047.
This report is specifically about the unattended background-update trigger and its distinct user-visible symptom: a previously running tray application is silently gone when the user next returns to or wakes the computer.
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I reviewed the suggested #32754 and its related #31989. They are relevant, but the captured update outcomes differ:
StoreAgentScanForUpdatesFailure0,80072efd). It does not show a new package being successfully registered and activated.ForceTargetApplicationShutdownOption, Codex stopped at that exact moment, the new version was present at the next manual launch, and no automatic relaunch occurred for many hours.The common user-visible symptom is a silent exit, but this report specifically tracks a successful unattended package update that permanently removes the running tray instance until the user manually launches it again.
Additional current-build confirmation from Windows 10, with local AppX/AppModel event evidence:
19045.6466, x64OpenAI.Codex_26.715.7063.0_x64->OpenAI.Codex_26.715.9079.0_x64Windows recorded the update at
2026-07-22 16:37:26.715.7063.0was updating to26.715.9079.0.The next AppModel-Runtime event 201 was not until
2026-07-23 03:58, when process 15004 was created forOpenAI.Codex_2p2nqsd0c76g0!Appafter the user manually opened Codex. All current Codex/ChatGPT processes share that03:58start time. That leaves roughly 11 hours between successful registration and the next launch.The user reports that this is recurrent: Codex silently closes for an update and often remains closed until manually launched. Manual launch opens the newly installed build normally, so this is again a successful package update followed by a missing relaunch rather than a startup crash.
One additional packaging observation: the current
AppxManifest.xmlcontains nowindows.startupTaskextension, and there is no Codex entry under the user's normalHKCU\...\Runstartup keys. Those are not required for a proper post-update handoff, but they mean there is no secondary startup path to recover when that one-shot relaunch fails.Suggested acceptance check for the fix: after a successful background Register operation, verify that the new package AUMID is activated and that a process/container is actually created; if activation fails or times out, notify the user that the update completed but Codex must be reopened manually.
Additional confirmed occurrence with a definitive Windows servicing event.
Environment
19045.7663, x64OpenAI.Codex_26.814.5167.0_x64OpenAI.Codex_26.818.3698.0_x64OpenAI.Codex_26.818.5229.0_x64Timeline
The app was therefore not stopped by a normal process crash. Windows explicitly terminated it for a successful background package update, and neither that update nor the later package update restored the running tray instance.
Alternative causes checked
No matching evidence was found for:
A Defender intelligence update completed in the same minute, but it logged no Codex detection or remediation. Unrelated Code Integrity noise concerned Bonjour, not Codex.
Separate update-lifecycle failure
About 30 minutes before AppX shut down the app, Codex's own scheduled primary-runtime updater failed to activate bundle
26.819.11345:Codex continued running for about 30 minutes after this failure, so it was not the direct cause of the stop. It is nevertheless relevant update-lifecycle evidence and matches #40182: the updater attempts to rename a runtime tree still held open by live Codex/helper processes.
Requested behavior
For unattended Store/AppX updates, please either:
At minimum, the UI or next launch should explain that the prior process was intentionally terminated for servicing rather than crashed.
Additional ARM64 confirmation on newer August builds.
Environment:
OpenAI.Codex_26.810.7004.0_arm64OpenAI.Codex_26.818.3698.0_arm64On 2026-08-22 at approximately 05:10 local time, Codex silently disappeared while the computer itself remained running.
Windows event logs show that this was a successful background Store/AppX update rather than an application crash:
OpenAI.Codex_26.810.7004.0_arm64was updating toOpenAI.Codex_26.818.3698.0_arm64.OpenAI.Codex_26.810.7004.0_arm64Desktop AppX container was destroyed at 05:10:45.OpenAI.Codex_2p2nqsd0c76g0AppContainer was successfully updated at the same time.26.810.7004.0package folder was moved intoWindowsApps\Deleted.26.818.3698.0completed successfully.The Codex desktop log ends at essentially the same moment. Its final entry is an
ipc-connection-reset; there is no normal quit, fatal exception, crash, OOM, renderer termination, or app-server process-exit event.Reliability Monitor also showed no Codex application crash, and Windows did not reboot.
Codex did not automatically relaunch after the successful update. When I later launched it manually, the updated version opened normally and worked normally.
This appears to reproduce the same successful-background-update / failed-relaunch behavior on ARM64 and on substantially newer August builds.