Repository navigation
Codex mobile intermittently fails to open running task conversations #28340
Description
What version of the Codex App are you using?
Desktop host version not captured in the screenshot. A feedback bundle was uploaded with this ID:
019eca26-18b8-7442-a042-cd22d29d2984
Mobile client: ChatGPT iOS app / Codex mobile surface. Current client environment: iPhone, iOS 26.5, ChatGPT 1.2026.153.
What subscription do you have?
ChatGPT Pro.
What platform is your computer?
macOS desktop host shown as MacBook-Pro-4.local in Codex mobile.
What issue are you seeing?
Codex mobile cannot reliably open the conversation for an already-running task.
When tapping into an active task from the iOS Codex mobile surface, the conversation sometimes fails to load and shows:
Error loading messages: Codex connection was invalidated.
At the same time, the mobile UI shows the host as reconnecting:
MacBook-Pro-4.local is reconnecting
The affected task still appears to be active, showing:
Pursuing goal — 11h 35m
So the problem appears to be that Codex mobile loses/invalidates the connection or message-loading state for an in-progress task conversation, rather than the task simply being completed or intentionally unavailable.
Steps to reproduce
- Start a long-running Codex task from a desktop host.
- Open the same running task from Codex mobile in the ChatGPT iOS app.
- Leave the task running for an extended period, or return to it later from mobile.
- Attempt to open the running task's conversation again.
- Observe that the task card is still present, but the message thread fails to load with
Codex connection was invalidated, while the host status remains stuck on reconnecting.
Expected behavior
Codex mobile should reliably reopen an in-progress task conversation and load its messages, even after the task has been running for a long time or the mobile connection has been interrupted.
If the host is temporarily reconnecting, the mobile app should recover automatically once the host connection is restored, without making the task conversation inaccessible.
Actual behavior
The running task remains visible, but the conversation cannot be opened reliably from mobile. The UI shows Error loading messages: Codex connection was invalidated. and the host appears to be stuck reconnecting.
This makes Codex mobile unreliable for monitoring or continuing long-running desktop tasks away from the Mac, because the user may see that the task is still running but cannot read or interact with the conversation.
Additional context
This was captured from Codex mobile while monitoring a long-running task titled in Chinese. A feedback bundle was uploaded immediately after the failure; please use the feedback ID above for logs/session details. I am not posting private task contents publicly, but can provide more redacted details if useful.
Activity
jwitkoski commentedon Aug 10, 2026
Same issue happened to me. Initiated a long-running /goal prompt via codex CLI 0.147.0 while ssh'd to the remote host. I was initially able to open the thread on iOS, but now I get this same error message.
While on the iOS "Remote" page, ass the tasks/threads are visible (including the inaccessible long-running thread) & other threads seem to work just fine.
Exported session: 019fe793-aecc-7a13-a30f-86aeb8e5b5e7
andrewrice commentedon Aug 11, 2026
A recovery path I found:
matskevich commentedon Sep 4, 2026
i can reproduce a closely related failure with two different local threads from the ios codex client.
environment:
symptoms shown on ios:
affected threads:
important diagnostic detail:
both threads were already in the idle/completed state. their turns and final responses were preserved. while ios reported that the tasks could not reconnect or load messages, the desktop app-server remained responsive. subsequent thread/read and thread/turns/list calls completed successfully in approximately 1–14 ms with no routing error.
this suggests a stale or invalid ios hydration/reconnect state rather than an unavailable host, a running agent, or lost thread data.
reproduction:
expected:
the ios client should rehydrate the completed thread from the responsive host and display its saved messages.
actual:
the ios client remains stuck or reports a reconnect/load failure even though the host and thread are healthy.
i have three screenshots captured during the failures and can provide a feedback/session bundle privately.
matskevich commentedon Sep 4, 2026
additional reproduction from the same host, observed shortly after my previous comment:
error loading messagesthis task couldn't reconnectfailed to send message. please try again.31 files, +2k, -8), so the trigger does not appear to be limited to very large working-tree diffsthis strengthens the stale/invalid mobile hydration or reconnect-state hypothesis: host/thread metadata remains reachable while the message and send path is broken.
related failure classes: #28480 and #22705. i have additional screenshots but am keeping repository names and private thread contents out of the public issue. i will add a private
/feedbacksession id once one is successfully captured.matskevich commentedon Sep 4, 2026
update after the september 3 chatgpt/codex incident:
i fully invalidated/disconnected the iphone remote session and paired the iphone with the mac host again from scratch, as recommended for some remote-control users after the incident. the re-pair completed successfully, but the behavior is unchanged: affected threads still fail to hydrate/reconnect and can still time out.
this rules out a stale device pairing as the complete explanation. the next control is a brand-new minimal thread on the same host to distinguish host/relay transport failure from existing-thread history hydration failure.
j8f7 commentedon Sep 6, 2026
Fixed it by closing the codex cli session, remote no longer functions if you have both codex and desktop chatgpt opens. Please fix this as desktop chatgpt gets very laggy on long sessions. Thank you!
diegocantarero commentedon Sep 12, 2026
Additional reproduction on 2026-09-11 (America/Tegucigalpa), ChatGPT/Codex macOS app 26.903.71938 (build 8576), current ChatGPT iOS app (exact iOS build not captured yet).
Observed:
Related local evidence:
-10005/noWindowsAvailable.Impact: Remote appears connected and accepts work, but cannot be trusted to display the latest answer, which makes it unsafe as an unattended mobile work surface.
Expected recovery behavior: if the task-index revision is newer than the cached conversation revision, iOS should discard/refresh the stale message cache, resume from the latest canonical cursor, and visibly indicate a disconnected/stale state if hydration or subscription recovery fails.
Private task IDs, account details, hostnames, screenshots, and logs are intentionally omitted. They can be provided through a private support channel if maintainers request them.
diegocantarero commentedon Sep 12, 2026
Additional exact evidence from the same iOS Remote reproduction (sanitized): the supported task-read surface returned the two newest turns as
completedwitherror=nullbutitems=[], while the immediately older turn returned normal user and assistant items. This explains why the mobile task list can be current while the opened conversation remains stuck on older history. Similar empty-output/stale-projection behavior was observed in more than one task. Please inspect task-message projection, pagination/cursor invalidation, and live-subscription reconciliation; the client should not silently render the last hydratable page as if it were current.diegocantarero commentedon Sep 12, 2026
Cross-host recurrence: a bounded read-only Computer Use probe was dispatched through the supported remote-control task API to an online Windows Codex Desktop host. The turn reached
completedin about 13 seconds witherror=null, but both the completion event and subsequent supported task read returned no assistant message anditems=[]. The immediately preceding turn on that same task still returned normal items. Because the output projection is missing, the Computer Use result is unknown and was not retried. This shows the stale/missing-message defect is not limited to one macOS task or the iOS renderer; it can affect supported task retrieval from a Windows remote-control host as well.salhumaydhi commentedon Sep 14, 2026
Same issue.
Any chat opened through Codex CLI will not open in the ChatGPT iOS app.
Instead, it shows:
“Error loading messages.”
Retry
However, chats opened through the Codex/ChatGPT app on macOS work normally and can be opened on iOS without any issue.
gommo commentedon Sep 20, 2026
Making remote useless