[Windows][26.721.4979.0] app-server disconnect/recovery causes full desktop app termination under concurrent tasks
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Reproduce the concurrent-task failure on Windows and start with the logged sequence from app-server restart through IAB_LIFECYCLE window removal, EPIPE, and transport shutdown. Trace the recovery, renderer/window lifecycle, browser-session cleanup, and IPC unregister paths; done means a failed task or connection does not terminate the desktop host or interrupt unrelated tasks.
Written by the indexing model from the issue text.
Description
Summary
Since updating the Windows Codex desktop app to 26.721.4979.0, concurrent or high-load tasks can cause the Codex app-server connection to fail. The automatic recovery appears to succeed briefly, but the desktop window then disappears and the entire app terminates, interrupting every active task.
This is a regression for this machine: similar concurrent workloads worked before the recent update.
Related exact-version report: #35311. The trigger here is not limited to in-app Browser use; it also occurred with PDF test execution and an Android Gradle build running concurrently.
Environment
- Codex desktop:
26.721.4979.0, x64 MSIX - OS: Windows 11 Home,
10.0.26200, x64 - CPU: Intel Core i9-12900K
- RAM: 127.7 GB
- Package update timeline:
26.721.3404.0->26.721.3996.0on 2026-07-2426.721.3996.0->26.721.4979.0on 2026-07-25
- Repeated failures observed on 2026-07-28 KST
Reproduction patterns observed
Pattern A
- Start two separate, relatively small Codex tasks.
- Task 1 runs a full PDF regression/test suite.
- Task 2 runs an Android Gradle AAB build.
- Continue working in another Codex task.
- The app-server connection fails, recovery starts, and the entire desktop app terminates.
Pattern B
- Run an Android browser/DOM inspection task.
- In parallel, run an unrelated test/discovery task.
- Codex displays the Windows “ChatGPT stopped unexpectedly” screen or exits/restarts.
The issue has also recurred after moving work from older large threads into new small handoff threads.
Expected behavior
A failed tool, task, or app-server request should be isolated to that task. The desktop host should remain alive, and other tasks should continue running.
Actual behavior
The local app-server fails, the desktop recovery path briefly reconnects, then the main window lifecycle disappears and IPC breaks. All concurrent tasks are interrupted.
Relevant log sequence
Times below are UTC; local time is KST (UTC+9).
2026-07-28T14:48:49Z WARN stream disconnected - retrying sampling request
sampling_error="stream disconnected before completion: failed to send websocket request: Connection closed normally"
connection-failed code=3221225786 signal=null
2026-07-28T14:51:29Z AppServerConnection Restart requested
2026-07-28T14:51:33Z app_server_restart_recovery_done resumedCurrentConversation=true
2026-07-28T14:51:37Z IAB_LIFECYCLE route window is not live
2026-07-28T14:51:37Z IpcRouter Socket error errorCode=EPIPE errorMessage="write EPIPE"
2026-07-28T14:51:37Z Stopping app-server transport
A separate failure at approximately 2026-07-28 22:58:52 KST ended with the same IAB_LIFECYCLE window removal and EPIPE sequence.
Memory pressure ruled out for these failures
An external passive monitor recorded system memory every ~10 seconds. It never terminates Codex or changes process state.
For the 23:51 KST failure:
- 23:48:46: physical memory 16.40%, commit 18.62%
- 23:51:34: physical memory 20.63%, commit 21.48%
- More than 100 GB of physical RAM remained available
For the earlier 22:58 failure, physical memory was about 14–15% and commit was about 14%.
There was no Windows Resource Exhaustion event 2004 around the failures. Recent task transcripts were also small (roughly 1–3 MiB) and had balanced tool-call/tool-output records, so this is not the previously observed very-large-transcript/compaction case.
Additional observations
- The process exit/recovery failure leaves some child workloads, such as Gradle/Kotlin daemons, alive after the desktop app is gone.
- No matching Windows Error Reporting crash entry was produced for the observed termination.
- Reopening interrupted tasks can retrigger the app-wide failure.
- Raw task transcripts are not attached because they may contain private project content. Sanitized desktop log excerpts and a screenshot can be provided privately to OpenAI support.
Please investigate the Windows app-server recovery and renderer/window lifecycle path in 26.721.4979.0, especially the interaction between a failed sampling/WebSocket stream, app-server restart, browser-session window cleanup, and IPC client unregister/EPIPE handling.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·