Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
- Windows package:
OpenAI.Codex 26.908.4834.0 - Desktop client version reported to app-server:
26.908.40834 - Bundled Codex app-server/CLI:
0.154.0-alpha.6.2
Platform
- Windows 10 Pro x64
- Version/build:
10.0.19045/19045
Summary
Codex Desktop intermittently loses an active turn because the local codex.exe app-server process is replaced while work is in progress. The top-level Desktop process remains alive.
Two incidents have now been captured at a precise approval boundary:
- Automatic approval / Guardian: Guardian returned
outcome: allow, but the parent tool call did not resume and the approved command did not launch before the app-server was replaced. - Manual user approval: after switching away from automatic approval specifically to test this, the same app-server replacement reproduced immediately after the user manually approved an elevated command.
The manual reproduction materially changes the diagnosis: this is not limited to Guardian/automatic approval. The common failure boundary is now the handoff from an accepted approval to elevated command execution / parent tool-call continuation.
The same installation has shown two related user-visible recovery failures:
- Mode A — partial recovery: the UI flashes/reloads, the active turn stops, the conversation remains visible, and the turn becomes a
▶retry/play control. - Mode B — blank conversation: the entire selected conversation content disappears and the composer looks like a brand-new/idle input state. Navigating to other conversations and back does not restore it. Only restarting Codex Desktop makes the conversation history reappear, now in an interrupted/stopped state.
These failures had already occurred repeatedly in existing conversations, including context-heavy ones. A fresh conversation was created specifically to test whether accumulated context/state was the cause; the same failure reproduced almost immediately there as well. This therefore does not appear limited to one stale thread or long-context conversation.
Captured incident A — automatic approval
KST (UTC+9), 2026-09-15:
17:42:49.706 Parent requests an elevated local Python unittest command
17:42:49.728 Guardian V2 begins automatic approval review
17:42:49.728 item/autoApprovalReview/started
17:42:54-55 Guardian performs final read-only inspection
17:42:55 old app-server PID 8292 stops producing logs
17:42:59.476 Guardian rollout: outcome=allow
17:42:59.536 Guardian rollout: task_complete
17:43:02.584 replacement app-server PID 8020 starts from initial setup
17:43:05 Desktop requests thread/resume
The parent rollout ended at the pending elevated tool call and had no corresponding tool-call output. The Windows sandbox log had no launch record for the approved unittest command. Thus, for this incident, the approved command itself did not start before the interruption.
Captured incident B — manual approval
The app was then changed to manual approval and work was continued with a fresh instruction rather than pressing ▶.
A first manual approval at 19:08:36 for a state-inspection command succeeded and produced command output, showing that manual approval does not fail on every request.
The next elevated command reproduced the failure:
19:09:04.831 Parent rollout records elevated Python unittest tool call
19:09:11.750592 app-server receives manual approval response:
CommandExecutionRequestApprovalResponse
decision=AcceptWithExecpolicyAmendment
19:09:11.750737 parent session receives ExecApproval:
decision=ApprovedExecpolicyAmendment
19:09:11.936736 final logs_2.sqlite row from old app-server PID 8020
19:09:13.701996 first row from replacement app-server PID 13772
19:09:13.702142 starting app-server remote control websocket task
19:09:13.706652 app-server request: initialize
19:09:14.097 Desktop issues thread/read
19:09:15.284 Desktop issues thread/resume
19:09:16.477 resumed thread begins responses websocket connection
There is no recorded command output or terminal outcome for the approved unittest before PID 8020 disappears. The parent rollout ends with the custom tool call plus token-usage record and contains no tool-call output after it. The capture does not establish an OS-level exit code or prove whether a child process began during the very small post-approval gap; it does establish that the parent execution never recorded completion and the app-server was replaced immediately afterward.
Process evidence from the manual incident
At diagnostic capture time:
Top-level ChatGPT.exe PID 12900
created: 16:14:08
still alive
replacement codex.exe app-server PID 13772
parent: ChatGPT.exe PID 12900
created: 19:09:13
New renderer processes were also created at 19:09:13-14, while the original top-level Desktop process remained alive. This matches the visible flash/reload and subsequent UI rehydration behavior.
logs_2.sqlite process UUID boundary:
old app-server PID 8020:
captured logs through 19:09:11.936736
replacement app-server PID 13772:
first captured log 19:09:13.701996
Blank-conversation recovery failure
In the manual-approval incident, recovery was worse than the earlier ▶ state:
active conversation / task
↓
manual approval accepted
↓
app-server replaced + renderer generation recreated
↓
selected conversation body becomes completely blank
↓
composer looks like an initial idle/new-input state
↓
switching to another conversation and back does not restore content
↓
full Codex Desktop restart is required
↓
conversation history reappears in interrupted/stopped state
A screenshot of the blank state was captured. It shows the conversation title still selected while the entire body is empty and the composer is in its normal idle input state. It can be provided if maintainers need it.
This suggests that persisted conversation data survives, but the running Desktop instance can fail to rehydrate/rebind the selected thread after app-server replacement.
Diagnostics already checked
- Codex Desktop reports no newer update.
- Failure reproduces across existing conversations and a fresh conversation.
- Both automatic approval and manual approval have now reproduced the same app-server replacement class.
- No VPN, proxy, secure-DNS tunnel, or corporate network involved.
- No normal GPU/render corruption such as black-hover corruption, ghosting, or menu flicker.
- Windows Application log: no matching
Application Error,Application Hang, orWindows Error Reportingevent in either captured incident window. - Crashpad reports directory: no incident
.dmp/ report found for the first captured incident. - Top-level Desktop process survives while the local app-server is replaced.
What is established vs. not established
Established by local evidence:
- approval is accepted;
- the parent tool call does not produce its normal result;
- the current app-server stops logging almost immediately afterward;
- a different app-server process initializes from scratch;
- Desktop subsequently issues
thread/read/thread/resume; - the UI can recover either as
▶ retryor as a blank conversation requiring full Desktop restart.
Not established:
- exact Windows termination/exception code for these incidents;
- whether the Desktop supervisor intentionally terminates the app-server or it crashes independently;
- that Guardian causes the failure (manual approval disproves Guardian as a required trigger);
- that Windows Desktop 26.908.4834.0: app-server repeatedly exits with 0xC000013A, followed by a top-level ChatGPT.exe MoAppHang #45020's
0xC000013Ais the local exit code here.
No panic or explicit process exited line was captured from the dying app-server in these failure windows.
Expected behavior
- Once an approval is accepted, the parent tool call should continue reliably into the approved execution.
- A failure during approved-command dispatch should fail that tool call explicitly rather than silently losing the app-server.
- If app-server restart is unavoidable, active-turn state and per-tool execution state should survive so Desktop can safely resume or clearly report what did/did not execute.
- Thread rehydration after app-server replacement should not leave a selected conversation permanently blank until the whole Desktop application is restarted.
- The app should preserve a useful termination/recovery reason when an app-server instance is unexpectedly replaced.
Related issues
- [Windows][26.908.40834] Desktop reloads during active task; running turn is interrupted and becomes retry ▶ button #45075 — very close user-visible symptom: Desktop reload during active task and interrupted turn becomes
▶. It was self-closed by its reporter with no public maintainer-confirmed fix or linked fix PR. - Windows Codex Desktop: app-server connection fails during tool execution with “Custom tool call output is missing”, conversation pane becomes blank #45219 — same package/build family; tool execution / app-server recovery leads to missing tool state and blank conversation content; reproduces in a fresh conversation.
- Windows Desktop 26.908.4834.0: app-server repeatedly exits with 0xC000013A, followed by a top-level ChatGPT.exe MoAppHang #45020 — Windows 10 build 19045 +
26.908.4834.0+ same app-server generation; another environment confirms repeated child app-server exits. This report does not claim its0xC000013Aexit code locally. - Auto-review can deadlock behind unbounded post-TurnComplete rollout flush on Windows #32538 — Windows automatic-approval lifecycle failures. Relevant to approval handoff, but the current manual reproduction shows the present issue is broader than auto-review.
- [Windows] Desktop app shows “ChatGPT hit a snag” and loses a long-running terminal session #43852 — Windows Desktop can lose an active terminal/session while the app remains/restarts its local execution state.
- Codex desktop app-server crashes repeatedly with 0xC0000005 #44315 — app-server crash/restart can present as UI flash/reload on Windows, though that report has a different confirmed exception signature (
0xC0000005) and WER evidence not present here.
Request
Please investigate the Desktop/app-server lifecycle specifically around:
approval accepted
→ ExecApproval / policy amendment applied
→ approved command dispatch
→ parent tool-call continuation
The second capture narrows the failure to this common post-approval path rather than Guardian itself. Please also investigate why Desktop can issue thread/read / thread/resume after replacement yet still leave the selected conversation body blank until a full application restart.
Privacy-sensitive raw rollouts, project content, full logs, and account identifiers are intentionally not attached. Narrow sanitized excerpts and the blank-state screenshot are available on request.
Activity
github-actions commentedon Sep 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-][Windows][26.908.4834.0] app-server is replaced during auto-approval handoff; active turn is lost and becomes ▶ retry[/-][+][Windows][26.908.4834.0] app-server is replaced immediately after approving elevated command; turn lost / conversation may go blank until restart[/+]Optield commentedon Sep 15, 2026
Update: a second incident was captured after switching to manual approval specifically to test whether Guardian/auto-review was required. It is not.
At 19:09:11.750 KST, Desktop returned
CommandExecutionRequestApprovalResponse { decision: AcceptWithExecpolicyAmendment }; the parent session immediately receivedExecApproval { decision: ApprovedExecpolicyAmendment }. The old app-server PID 8020 stopped logging at 19:09:11.936, and replacement PID 13772 began initial app-server setup at 19:09:13.701. Desktop then issuedthread/readandthread/resume.This time the selected conversation body became completely blank rather than merely showing a ▶ retry control. Switching to another conversation and back did not restore it; only a full Codex Desktop restart made the history reappear in interrupted state.
The issue title/body have been revised to reflect that the common boundary is accepted approval → elevated command dispatch / parent tool-call continuation, not automatic approval itself. A first manual approval about 35 seconds earlier had completed successfully, so manual approval is not guaranteed to fail on every request.
Optield commentedon Sep 15, 2026
Follow-up diagnostic signal from the same affected installation:
After the two captured failures (one using Guardian auto-approval and one using manual user approval), Codex Desktop was switched to Full Access so that local commands could execute without crossing the approval/elevation handoff path.
With Full Access enabled, the same project/workload has now run continuously for approximately one hour without the app-server replacement / UI interruption recurring.
This is not proof of root cause yet, but it is a strong discriminator:
This further supports investigating the common transition from an accepted approval into elevated command dispatch / parent tool-call continuation, rather than Guardian specifically or long-conversation context.
For now, Full Access appears to be a practical temporary workaround for urgent work on this machine, with the obvious caveat that it grants Codex broader local execution permissions and should be used carefully. I will update this issue again if the failure recurs even under Full Access or if a longer stable interval is observed.
Optield commentedon Sep 30, 2026
Follow-up on newer Windows Desktop build
26.928.21956:A clean regression harness in fresh top-level sessions completed normally: manual approval prompts appeared, the elevated unittest returned normally, the app-server PID remained stable, and neither the ▶ retry state nor blank-conversation recovery failure reproduced in those tests.
However, attempting the same regression test inside the previously affected existing task (both a new side chat and the main thread) could not reach the approval boundary at all. Although the Desktop UI was explicitly set to Ask for approval, the effective execution context reported
approval_policy = Neverand refused the requested elevated command before any approval UI could appear.This appears to match open issue #47062 ("GUI approval change leaves existing task on never"), so I am treating it as a separate persisted-thread permission/state desynchronization rather than evidence that #45665 reproduced on 26.928.21956.
Current interpretation:
Neverdespite the GUI showing Ask for approval.No local state/database values were modified to force the old task into on-request mode.
Optield commentedon Sep 30, 2026
Additional regression evidence from Windows Desktop client
26.928.21956(installed package path showsOpenAI.Codex_26.928.2636.0; bundled runtime logs report client version0.159.2).I captured a 30-minute read-only
logs_2.sqlitewindow after testing both the previously affected old thread and a fresh project/fresh top-level thread with auto review ("Approve for me").1) Previously affected old thread: transient blank UI, but no app-server replacement
The old affected thread was explicitly switched to:
The regression CONTROL and TARGET elevated commands both executed successfully. The TARGET unittest returned its start marker, ran for ~3 seconds, returned its finish marker, and finished
OK. The turn later completed normally.The user did observe the selected conversation body temporarily becoming blank during this run, but unlike the original September incidents:
Most importantly, the captured process boundary shows one app-server process for the entire 30-minute window:
At capture time the same
codex.exe app-serverPID 8204, created at 01:03:26, was still alive under the same top-levelChatGPT.exePID 8816.No new app-server initialization / remote-control startup sequence was present in the captured window, and no
thread/resumeoccurred. Athread/readoccurred immediately after the affected turn completed at ~03:04:49.The current renderer processes also all predated the incident (created around 01:03); this capture provides no evidence of renderer process replacement either.
Windows Application Error / Application Hang / WER output for the capture window was empty.
Therefore this October event is not the same failure signature as the original #45665 captures. It is a transient conversation-body/UI state loss on the legacy affected thread, while the app-server and active turn remain alive.
2) Fresh project + fresh top-level thread + AutoReview: normal
A separate fresh project/fresh top-level thread was tested with AutoReview.
The logs show two normal Guardian review cycles:
The user-reported CONTROL and TARGET results were both successful:
approval_target_started.txtcreatedOKThe same app-server PID 8204 remained active across this fresh-thread run as well.
Current interpretation
On
26.928.21956, I have not reproduced the original #45665 signature (approval accepted → app-server replaced → tool result/turn lost) in the new regression runs, including AutoReview.The old affected thread still exhibited a transient blank conversation-body UI state, but the backend execution continued successfully and the app-server did not restart. This may be a residual thread/UI rehydration issue specific to that legacy thread rather than persistence of the original app-server replacement bug.
I am therefore not marking #45665 resolved based on these tests alone, but the newer build shows materially improved behavior on the original approval handoff path.