Repository navigation
Windows Desktop 26.623 silently destroys/relaunches AppX container after resuming long-running threads #31583
Description
Summary
Codex Desktop on Windows Store build 26.623.19656.0 silently closes/restarts. Windows AppModel logs show the Codex Desktop AppX container being destroyed and later relaunched, but there is no matching Codex fatal log, Windows Application Error, Windows Error Reporting app crash, local CrashDump, or Crashpad report.
This became visible after the July 8 update and appears correlated with resuming/switching between several long-running Codex threads that had interrupted turns and browser-use/IAB state. I am marking that as a hypothesis rather than a confirmed root cause.
Environment
- Product: Codex Desktop, Windows Store/MSIX package
- Package:
OpenAI.Codex_26.623.19656.0_x64__2p2nqsd0c76g0 - Package version:
26.623.19656.0 - App package family:
OpenAI.Codex_2p2nqsd0c76g0 - Platform: Windows 11 Home, x64
- OS version/build:
10.0.26200, build26200 - Browser-use release observed in logs:
26.623.141536 - Bundled Node observed in logs:
v24.14.0
Observed timeline
Local time zone: Asia/Shanghai.
Confirmed silent container close/relaunch:
2026-07-08 21:31:57: AppModel created Codex process15648forOpenAI.Codex_2p2nqsd0c76g0!App.2026-07-08 21:38:39: latest Codex desktop log for that session ended on normal-lookingthread/listandthread/turns/listresponses.2026-07-08 21:38:42: AppModel-Runtime event217: Codex Desktop AppX container destroyed.- No matching Windows Application Error, WER app crash, local CrashDump, or Crashpad report was found.
Second confirmed silent close/relaunch:
2026-07-08 22:22:30: AppModel created Codex process10152.2026-07-08 22:30:51: latest Codex desktop log for that session ended on normal-lookingthread/turns/listandthread/listresponses.2026-07-08 22:30:55: AppModel-Runtime event217: Codex Desktop AppX container destroyed.2026-07-08 22:31:00: AppModel created a new Codex process26184.- Again, no matching Windows Application Error, WER app crash, local CrashDump, or Crashpad report was found.
Earlier related fatal plugin/app-server event on the same build:
2026-07-08 08:34:57: Codex desktop log showedfailed to load plugin: missing or invalid plugin.json.- Plugin:
openai-developers@openai-curated-remote - Cached path:
%USERPROFILE%\.codex\plugins\cache\openai-curated-remote\openai-developers\1.2.3 - Codex CLI/app-server process exited unexpectedly with code
1073807364. - A stale/broken plugin cache directory was locally quarantined afterward. After that workaround, this exact fatal plugin error did not reappear, but the silent AppX container destroy/relaunch still happened.
Correlated state before the 22:30 close
The desktop logs immediately before the 22:30 AppX container destroy showed repeated activity around:
thread_stream_view_activity_changedmaybe_resume_started/maybe_resume_successIAB_LIFECYCLEbrowser_use_iab_backend_startup_*- repeated
thread/turns/list turn/start
Local thread state showed three long-running user threads updated within minutes/seconds before the close, and those threads had browser/search or interrupted-turn style activity. After not reopening those three long-running threads, the current Codex session stayed up at least through the initial observation window. This is only a correlation, not a confirmed root cause.
Expected behavior
Codex Desktop should not silently close/restart because of stale or long-running thread state. If an unrecoverable app-server or renderer failure happens, it should leave a clear fatal log, crash artifact, or diagnostic message.
Actual behavior
The user sees Codex Desktop close unexpectedly. AppModel shows the AppX container being destroyed and later recreated. Codex desktop logs end on normal-looking request routing lines, and no obvious crash artifact is produced.
Diagnostics already checked
Microsoft-Windows-AppModel-Runtime/Admin: shows AppX container destroy/relaunch.- Windows
Applicationlog: no CodexApplication Erroror WER app crash around the events. - Windows
Systemlog: no matching Windows reboot/shutdown for these events. - Crashpad reports directory: empty for these incidents.
%LOCALAPPDATA%\CrashDumps: no recent Codex dump found.- Codex desktop logs: no
fatal_error_broadcastedorCodex CLI process exitedaround the silent 21:38 and 22:30 AppX container destroys.
Related issues
This may be related to:
- Windows desktop app silently closed/restarted after 26.506 update; no crash artifact recorded #21774
- Codex app-server repeatedly exits on Windows; crash dialog surfaces plugin metadata and PowerShell shell_snapshot WARNs #26440
- Desktop app crashes with "Codex app-server websocket closed (code=3221225501)" while CLI works normally on Windows 11 25H2 #30884
The distinguishing detail here is that Store build 26.623.19656.0 repeatedly had AppModel 217 AppX container destruction with no crash artifact, after one earlier plugin-cache fatal had already been locally worked around.
Redactions
I intentionally omitted raw local usernames, full local thread titles, account IDs, raw prompts/responses, and full log files. I can provide specific sanitized log excerpts if they would help.
Activity
github-actions commentedon Jul 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
hg28c4bytb-prog commentedon Jul 8, 2026
Update after filing: reproduced again on 2026-07-08 around 22:48 Asia/Shanghai.
This time the app was not running the three old threads simultaneously. The user opened one old long-running thread whose UI history appeared almost empty/missing. The local thread metadata still existed, but the desktop UI only appeared to recover a very small recent turn set.
Timeline and evidence:
thread/readfor the affected conversation returned witherrorCode=null.thread/resumereturned witherrorCode=null; the desktop log then showedmaybe_resume_success ... latestTurnStatus=interrupted ... turnCount=5and IAB/browser-use route capture for the same conversation.thread/turns/listfor that same conversation every ~11-15 seconds, each witherrorCode=null.thread/readfor the same conversation returned witherrorCode=null.thread/turns/list, followed by a normalthread/list.OpenAI.Codex_26.623.19656.0_x64__2p2nqsd0c76g0.The local watchdog captured the event and saved a tail snapshot at:
C:\Users\tangt\Desktop\codex-crash-watch\tail-20260708-224809.logThe previous-process desktop log for this reproduction was:
C:\Users\tangt\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\07\08\codex-desktop-d88f88bc-c51d-4b2d-bbd8-aa92a92fc369-26184-t0-i1-143101-0.logThis makes the correlation stronger: resuming or loading history for an old, long-running, interrupted thread with browser-use/IAB state appears to trigger a silent desktop container teardown/relaunch. The user's project files are not deleted, but the desktop UI may render the old thread history as nearly empty before the relaunch.
HyperSpAceBoy commentedon Jul 13, 2026
Severity escalation: current 26.707.8479.0 silently terminated at least four times today
This failure remains reproducible in the current Microsoft Store Windows package:
I separated Store-update exits from unexpected exits using AppModel event IDs 42/201/210/211/217, package versions, main-process log PIDs, and each log's final line. The three confirmed package-update transitions at 09:07, 15:06, and 16:05 are not counted below.
High-confidence abnormal exits
Recoverable Chromium child process gone exitCode=-1 processType=GPU reason=crashedCodex app-server is not availablethread/turns/listresponse with durationMs=11632; no shutdown markerThere was one additional container exit at 16:01:32 whose preceding log contained an orderly
stop_process/ app-server transport shutdown. I am not counting that as a crash without stronger evidence.This means the defensible count is at least four abnormal full-AppX exits in roughly 90 minutes, not counting updates or the ambiguous orderly restart.
The newest exit matches this issue's original failure shape
The 16:35 event happened during normal Codex use. The previous process's final logged operation was:
Approximately 1.85 seconds later, AppModel event 217 destroyed the entire Desktop AppX container. The UI disappeared while the user was actively conversing. A new process was created 34 seconds later.
This strongly matches the earlier reports in this issue where long-running thread hydration repeatedly reaches
thread/turns/list, the log ends on an apparently successful response, and the AppX container silently disappears seconds later.I am treating the history correlation as evidence, not yet claiming that every exit has one root cause. The 16:00 event independently proves a Chromium GPU child crash; the 16:02 event proves app-server unavailability immediately before another full-container loss.
Crash diagnostics are still missing
For all four abnormal exits, current checks found:
%LOCALAPPDATA%\CrashDumpsThe absence of a dump is not evidence that the app did not crash. AppModel proves the container was destroyed and recreated, while the user directly observed the UI disappear. It means the product's crash-reporting path is failing to preserve actionable evidence for this failure class.
User impact and requested action
This is no longer an occasional inconvenience. The app terminated repeatedly during one development session, interrupted active conversations, and forced the user to wait for automatic relaunch/recovery. A development tool cannot be considered stable when its entire UI/container can disappear four times in 90 minutes without a diagnostic artifact.
Please prioritize:
tail_history/thread/turns/listwork;Related current-build evidence:
thread-stream-state-changedsnapshots for completed long threads, causing extension-host/renderer CPU spikes #20781: unbounded full-state snapshot fan-outThis issue should not be treated as resolved merely because Windows produced no conventional WER entry. The silent-exit behavior is continuing on the latest build.
HyperSpAceBoy commentedon Jul 13, 2026
Current-build recurrence: at least four abnormal AppX exits in ~90 minutes
This is the same silent-close/relaunch failure shape, now reproduced on the current Microsoft Store package:
I kept the existing process state intact and correlated AppModel-Runtime events with the final lines of each Codex Desktop log. I am deliberately separating package-update transitions and a stop-marked restart from abnormal exits.
Abnormal exits
Codex app-server is not available; the AppX container was destroyed at the same time.thread/turns/listresponse that took 11,632 ms. The container was destroyed at 16:35:39 and a new package process appeared at 16:36:13.A separate 16:01:32 restart had an explicit
stop_processmarker and is not counted as a crash. The 09:07, 15:06, and 16:05 package transitions were also excluded as expected update lifecycle events.Diagnostic failure
For these current-build exits:
This is no longer an isolated historical report. A top-tier Windows development workstation saw four abnormal container deaths in roughly 90 minutes, including a confirmed Chromium GPU crash and a silent exit immediately after expensive local history work. The app provides no reliable crash artifact and no indication whether user work is safe.
Required fixes
thread/turns/list, repeated resume/navigation, GPU child loss, and app-server unavailability.The absence of WER does not make these events harmless. It means the product is failing without leaving the evidence users and maintainers need.
zmullen115 commentedon Jul 14, 2026
Additional concrete reproduction from #32904 on the same current build:
26.707.8479.00.144.2patch_apply_endrecord was 203,310,615 charactersapply_patchDelete Fileoperation that serialized the deleted file's full contents underpayload.changes.<path>.contentOpening the thread produced the same failure shape described here:
thread/readandthread/resumereturned successfully, the desktop log then ended without a fatal marker, and the whole app restarted seconds later with no WER or Crashpad artifact.This provides a specific, reproducible history-hydration trigger for at least one class of the silent container exits reported here: an unbounded patch-history payload transferred while resuming a thread. Suggested guardrails are to cap or omit deleted-file contents in
patch_apply_endand enforce per-record/per-field limits when reading legacy histories.Closing #32904 as a duplicate of this issue.
rajks85 commentedon Jul 14, 2026
July 14 follow-up on current Windows build
This silent-container-close pattern reproduced repeatedly today on a newer Microsoft Store package:
OpenAI.Codex_26.707.8479.0_x64__2p2nqsd0c76g0The large persistent log database and very large resumed session may be relevant stressors, but I cannot establish causation. The absence of a fatal record or crash artifact remains the central diagnostic gap: the app can vanish repeatedly without preserving a user-facing reason or an actionable crash report.
After the restart, the same repository task completed successfully when work was kept to smaller bounded tool calls. Raw logs and transcripts are not attached because they contain local paths and task content; sanitized excerpts can be provided if maintainers identify the relevant log window or private upload channel.
cusoccerboy commentedon Jul 18, 2026
Additional current macOS reproduction from #34003, matching the oversized-history failure isolated in #32904:
RangeError: Invalid string length, JSONL parser failures withlineBytes=1720880466and laterlineBytes=3453099188, plus the conversation-page React error boundary witherrorMessage="Invalid string length".This extends the byte-level evidence to macOS and the current desktop build. The original report and screenshot are in #34003. Full logs are not public because they contain local paths and task contents.
jack112806 commentedon Jul 27, 2026
Additional deterministic reproduction on Windows Desktop 26.721.4979.0
I reproduced the same failure shape on a newer Microsoft Store build. Unlike the intermittent reports above, this instance is isolated to one specific local thread: other threads in the same project open normally, while opening the affected thread crashes the app every time.
Environment
OpenAI.Codex_26.721.4979.0_x64__2p2nqsd0c76g0Microsoft Windows NT 10.0.26100.8875 x64150.0.7871.12831.0.101.544532.0.15.7602OkAffected thread
019f89bf-c123-7d93-9631-9563079b437f44,552,571 bytes(about 42.5 MiB)Reproduction steps
019f89bf-c123-7d93-9631-9563079b437f.0x80073CFC [GetPackageToken]; after a short interval the app can launch again.Correlated desktop-log timeline
Local time zone: Asia/Singapore.
The short, repeatable interval between thread restoration and GPU-process loss makes this more specific than a general application exit. Browser state is a correlated trigger, not a proven sole cause. The evidence does not establish a defective display driver.
Expected behavior
A large or malformed thread-history/browser-restoration payload should not terminate the desktop app. Codex should bound history hydration/rendering, isolate renderer or GPU child-process failures, recover without tearing down the AppX container, and provide a usable diagnostic if recovery fails.
Additional diagnostic notes
This adds a current-build, single-thread deterministic reproduction to the failure tracked here. A useful regression case would restore a roughly 42.5 MiB thread with persisted IAB state, then verify bounded history loading, GPU-child recovery, and continued access to unrelated threads.
sined-rahkuk commentedon Jul 29, 2026
Current-build recurrence with thread-state mismatch + IAB teardown (26.721.4979.0)
This still reproduces on the newer Microsoft Store Windows package.
Environment
OpenAI.Codex_26.721.4979.0_x64__2p2nqsd0c76g026200Confirmed abnormal exits
Windows AppModel-Runtime event 217 recorded full Codex AppX container destruction at:
The computer did not reboot or shut down. The latest incident required a manual relaunch at 10:40:43.
Latest pre-exit sequence
The final desktop log shows:
The 22:42 recurrence had a closely related ending: IAB
target-close, a rejected route/tab binding, browser host recreation, and then full AppX destruction less than a second later. The 22:15 recurrence also ended immediately after browser-sidebar teardown.Negative evidence
No matching:
I also checked the distinct SwiftShader/GPU signature in #35635. This machine had no Code Integrity 3033 event and no
Chromium child process gone,processType=GPU, orvk_swiftshaderline for these exits, so that specific cause is not supported here.This strengthens the thread/IAB lifecycle hypothesis in this issue: desktop renderer/app-server conversation state becomes desynchronized, browser sidebar teardown occurs, and the full AppX container silently disappears without preserving a fatal reason.
Please prioritize: