[Windows desktop] Rapid reopen during Quit exits with code 0 and loses the window
Expected: after a normal Quit, opening the ordinary desktop icon should reliably leave a usable application window, including while the previous instance is finishing shutdown.
Observed: the first rapid reopening briefly displayed an incompletely loaded/white window and disappeared. A later activation persisted. This is one measured manual quit/reopen sequence, not a validated cold-boot failure or a measured failure rate. The old instance had been opened in a preceding user-run activation-helper comparison; both new attempts in this measured sequence used the ordinary desktop icon. The helper did not modify app binaries or settings.
Environment: Windows 10 Pro 22H2 (build 19045), x64, packaged desktop application; application-update tool reports version 26.1013.40934, build 20770, production channel, up_to_date. The separate MSIX identity version is 26.1013.4894.0. Native executable metadata reports version 155.0.8059.80; the installed application requires the Owl shell, so a stock Electron singleton implementation is not assumed. The executable signature is Valid. Windows Settings Repair had already been attempted.
Measured sequence, relative to creation of the first new instance:
- 0 ms: first new instance created through the ordinary icon while the previous instance was finishing shutdown.
- By +349.7257 ms: the new instance's exit was observed, with recorded exit code 0.
- About +3497.6073 ms: the shared old AppX container was destroyed.
- At +3544.6724 ms: the previous main instance's exit was observed, also code 0.
- A later ordinary activation used a new container and continued initializing its window.
The short-lived new instance demonstrably joined the old instance's container. Its exit was observed approximately 3.1479 seconds before container destruction; therefore the data does not establish that container destruction killed it. EXIT timestamps are observer detection times, not exact kernel exit times. Code 0 does not identify the caller or establish an absence of startup failure. The transient window's exact owning PID was not established.
Candidate, not a proven root cause: quit cleanup and single-instance reactivation may overlap. A bounded static inspection finds that one JS second-instance queue guard changes only at the quit event, with a main-window show path lacking an equivalent local quitting check; cleanup includes a 5-second budget. This does not prove that the short-lived process reached that JS path or exhausted that budget. A separate early policy/flag relaunch-with-exit-0 path also exists; its use in this incident is unknown. A PID-specific log file is created lazily, so a missing file does not prove JS was never reached.
Please advise on a supported diagnostic or fixed release for native/Owl and JS quit/reactivation handoff. No supported user setting for this issue was identified in a bounded documentation review, and the configured update channel offers no update at the check time. No native exit initiator or actual singleton/relaunch branch has been captured.
The existing five-minute observer finalized with partial diagnostic coverage because one additional process could not be opened (error 87); core target handles were held before their observed exits. No new reproduction was performed for this assessment. No configuration, proxy, TUN, driver, or software changes were made. No account details, subscription information, machine identifiers, personal paths, full logs, dumps, or source code are included. A console-based launch wrapper is not an acceptable permanent resolution for the user.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #55194
Powered by Codex Action
Still reproducible on 13 November 2026 with the Windows ChatGPT desktop app, MSIX package OpenAI.Codex_26.1106.6628.0_x64__2p2nqsd0c76g0. This is the installed package version, rather than a version copied from the About dialog.
I reproduced the same close/reopen behaviour from the taskbar icon:
- Close the app and wait before reopening: it opened successfully on the first attempt.
- Close the app and immediately click its taskbar icon: a window briefly appeared, then disappeared, matching the original report.
- Wait ten seconds and try again: it opened normally.
A temporary observer polled ChatGPT process/window state approximately every 200 ms and retained process handles to read exit codes. The failed immediate-reopen sequence was:
| Observation time (UTC) | Observation |
|---|---|
| 10:42:49.341 | No main window reported; previous main process, PID 12416, still running. |
| 10:42:50.633 | Additional ChatGPT process, PID 32904, observed while PID 12416 was still shutting down. |
| 10:42:50.849 | PID 32904 observed exited with code 0. |
| 10:42:50.851 | Previous main PID 12416 reported a window again. |
| 10:42:54.365 | Previous main PID 12416 observed exited with code 0, approximately five seconds after its window first disappeared. |
| 10:43:08.116 | A subsequent fresh launch was observed. |
| 10:43:10.086 | New main PID 34884 reported a window; the app remained open and usable. |
A separate delayed-reopen control also showed the previous main process remaining alive for about five seconds after its window disappeared, then exiting with code 0; reopening after that exit succeeded.
These are observation timestamps, not exact kernel event times, and these were two manual test cycles rather than a measured failure rate. Window ownership here is based on Get-Process.MainWindowHandle. The immediate-reopen result strongly supports an overlap between shutdown and activation, but it does not identify the internal singleton/native relaunch branch or prove why the new process exited. Exit code 0 alone does not rule out a startup failure.
The approximately five-second delay is consistent with the related report #55194, but the Artifact Session host was not independently isolated in this investigation, so I cannot attribute this installation's delay to those timers.
No app settings, caches, sign-in data, installed files, shortcuts or taskbar pins were changed during the tests. No raw logs, account information or chat content are included here.