Repository navigation
Description
Environment
- Codex desktop
26.1013.4894.0(MSIX) on Windows 1110.0.26300 - Remote client: Android app (
app_server.client_name="codex_chatgpt_android_remote")
Symptom
Opening a long-running thread from the phone shows a load timeout and never renders. Short threads open normally, and the same threads load fine on the desktop client. Reported to feel worse after updating to 26.1013.4894.0, but I have no measurements from earlier builds, so I am not claiming a regression.
Measurements (same machine, same Wi-Fi, 7 threads, opened one by one from the Android client)
| Thread (first 8 of id) | Items | thread_items size |
Turns | Remote open |
|---|---|---|---|---|
01a13b71 |
981 | 137.8 MB | 47 | timeout |
01a0f4c0 |
3,754 | 157.4 MB | 181 | timeout |
01a0f10a |
3,786 | 5.9 MB | 191 | timeout |
01a0f93c |
81 | 0.1 MB | 4 | ok |
01a0f978 |
242 | 0.8 MB | 11 | ok |
01a0adb8 |
106 | 0.2 MB | 11 | ok |
01a0a36a |
138 | 0.3 MB | 35 | ok |
Every failure has ≥981 items; every success has ≤242 items.
Size is not the explanation: 01a0f10a is only 5.9 MB and still times out. It carries 3,786 items but almost no image data. So this is not bandwidth, not image payload, and not the network.
Host-side evidence (sanitized desktop logs, same second as each failed open)
- The host answers immediately and without error:
thread_lifecycle: composing running thread resume response thread_id=01a13b71-…lands in the same second as the request, witherrorCode=null. - No error code ever reaches the client — nothing like
-32003. The request simply never completes on the remote side. - The only client-side line is
Conversation state not found conversationId=…, which also appears for threads that open fine; it is noise, not the cause. - For the same threads, desktop-side
thread/read,thread/turnsandthread/items/*return in ~200 ms.
In short: the host prepares the whole history and replies at once; the remote client cannot get it across its timeout.
How to reproduce
- Create a thread with ~1,000+ items (a long asset/image session reaches this in a few hundred turns).
- Connect the Android remote client to the desktop host.
- Open that thread remotely → timeout. Open a small thread → fine.
- Open the same thread on the desktop → fine.
Expected
Remote open should behave like desktop: first screen renders quickly, older history streams in lazily. A thread should not have to transfer its entire item history before it becomes usable.
Suggestion
- Paginate hydration for remote clients: return the last N turns/items plus a cursor, and pull earlier ranges on scroll (
thread/itemsalready accepts ranges). - Cap what a single
thread/resumeresponse may contain, independently of thread size. - Secondary, size only:
imageGeneration.resultkeeps the full PNG as base64 insideitem_json. On this machine that is ~2 GB across 751 items, up to 971 MB in one thread. Keeping onlysavedPathwould shrink payloads by 10–50× — worth doing, but it will not fix01a0f10a, which is 5.9 MB.
All numbers above are row counts and byte sizes from the local thread database. No conversation content, file paths, account identifiers, or credentials are included.
Activity
github-actions commentedon Oct 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
kulear829 commentedon Oct 18, 2026
Related: #54751 — same remote pagination timeout, and one data point that changes the fix
#54751 (iPhone, same stack) already traces this to
thread/items/listreturning oversized pages becausethread_resume_redaction.rsstripsimageGenerationonthread/resumebut not in the paginated reads. That explains the image-heavy threads.My case adds a counterexample that a byte budget alone would not cover.
01a0f10atimes out with 5.9 MB total and 3,786 items — and no inline image payload at all. It has 345imageGenerationrecords, but every one of them has an emptyresult, and 93% of their combined 1.5 MB isrevisedPrompttext. Average item size is ~1.6 KB, so a 25-item page is roughly 40 KB.That thread should be cheap to fetch by any byte measure. It is simply fetched ~152 times in sequence, and the client gives up before first paint. Add a byte budget without a page budget and this thread still needs 152 round trips, so it still times out — it is the clean control case.
At the default 25 items per page, in my measurements the boundary looks like page count rather than bytes:
So the fix likely needs two parts:
Host side is not the bottleneck here:
thread/resumecomposes in <100 ms witherrorCode=null, and desktop-sidethread/read/thread/itemstake ~200 ms on the same threads. Everything up to the wire is fast; the remote client is the one that gives up.kulear829 commentedon Oct 18, 2026
Correction to my "page count rather than bytes" line — both dimensions can blow the budget
In my previous comment I wrote that the boundary "looks like page count rather than bytes". That is too strong, and #54751's own measurements show why: their control thread needs 33 pages but only 1.3 MB and opens fine, while their affected threads time out at 19 pages / 15.3 MB (largest page 10 MB) and 22 pages / 7.7 MB. Fewer pages, far more bytes, still fails.
Putting both datasets on the same two axes:
01a0f10a01a13b71Neither axis separates the groups on its own. 19 pages is low by count but fails on bytes; 152 pages is trivial by bytes but fails on count. What separates them is the combination — consistent with a single deadline that either dimension can exhaust, not with a page cap or a size cap alone.
So the two-part fix still stands, and it needs both halves:
01a0f10astill walks 152 pages of 40 KB each and still times out.Also worth noting for whoever reproduces this:
01a0f10atimed out twice tonight about 20 minutes apart. Both times the host loggedcomposing running thread resume responsea couple of seconds after the request with no error code, so this is deterministic rather than network flakiness.alexneverland commentedon Oct 28, 2026
Additional evidence for Codex Remote stale-state / large-history loading
Adding another Android/Windows data point, including a large conversation with no image-generation items. Related: #46084.
Environment
Reproduction and observations
One long desktop conversation remains stuck in an old Thinking/tool state on Android. Desktop can read the latest completed responses. Smaller/newer conversations reportedly synchronize normally. Another long conversation eventually recovered after a delay. Restarting Android and reconnecting Remote did not recover the persistently affected conversation.
During an explicit attempt on 2026-10-28 at 12:27:00 UTC, the host logged composition of a resume response for the affected conversation with
active_turn_present=false,active_turn_id=None, andactive_turn_status=None. The user confirmed Android still did not load the conversation. No WARN/ERROR records were present in the inspected host log window from 10 seconds before to 40 seconds after this attempt.This proves the request reached the host and the host assembled an idle-state response. It does NOT prove the response was delivered to, decoded by, or rendered on Android.
Local read-only measurements of the affected conversation:
These are stored bytes, NOT measured wire payloads. No Android-side request timings, heap profiles, or response-delivery traces were collected. The smaller local comparison has 320 items / 821,869 bytes, but was not independently retested on Android during this investigation.
Source inspection
Reviewed openai/codex main at
e742db9f7ba98e63e502b310857d49d047888518in a separate source checkout. This is not claimed to be the exact source revision of the installed Desktop backend.The image/MCP redaction asymmetry is worth investigating but is NOT a proven explanation for this no-image conversation. Nor would removing image payloads alone address its large command-output and item-count footprint. No Android client implementation was found in this public repository to verify whether it hydrates all older pages before first paint.
Questions for maintainers
Contribution and verification boundaries
This adds measurements and source observations to the existing report; it does not establish a confirmed fix.
No production history, authentication, configuration, active session, or installed binary was changed by this repository investigation. No private content, account identifiers, thread IDs, or raw logs are included in this comment. No source patch has been presented as a fix, and no Rust tests were run: the required Rust 1.95 toolchain is not installed here.
asherkhal commentedon Oct 28, 2026
Additional Android/Windows reproduction on current builds, with local history-read timings
Adding another reproduction of the repeated message-loading timeout and reconnect loop.
Environment
codex_chatgpt_android_remote, versiondev; that is its protocol client identifier, not the Android application version.paginatedhistory.Reproduction
Restarting the desktop application, force-closing/reopening Android and clearing the Android app cache did not provide a lasting fix. A fresh continuation initially opened successfully, but after further work it developed the same failure. Creating new threads therefore only helped temporarily.
Host observations
The host Remote Control WebSocket reaches
Connected. Androidthread/resumeandmodel/listrequests reach the host. The host subsequently logs repeated remote client connection closures; occasionally queued messages are dropped after that connection has disconnected. Examples on 2026-10-28 occurred between 17:46 and 17:57 UTC, including dropped messages at 17:49:11 and 17:57:15 UTC.The host also warns that config overrides are ignored when resuming an already-loaded running thread. This warning alone does not establish the cause of the timeout.
Read-only local API measurements
A separate temporary stdio app-server read the persisted histories without resuming or mutating either thread. It was terminated afterwards. No network listener or new remote enrollment was created.
thread/read,includeTurns=falsethread/turns/list,limit=5,itemsView=summarythread/turns/list,limit=5,itemsView=fullthread/read,includeTurns=falsethread/turns/list,limit=5,itemsView=summarythread/turns/list,limit=5,itemsView=fullThese are local API response sizes and timings, not phone/relay wire measurements. The exact Android request parameters, cumulative pagination timings and any relay payload limit have not been captured, so these measurements do not prove a specific transport limit.
The original rollout is approximately 197 MB. The continuation started below 1 MB, then grew to approximately 37 MB during image/design work and reproduced the issue. Large records mainly contain tool output with inline images. Rollout size includes internal events and is not equal to response payload size.
This adds another case where local history reads succeed quickly while Android repeatedly fails to finish loading. It appears consistent with the mobile hydration/delivery/timeout problem discussed here, but the precise internal cause remains unconfirmed. Histories, credentials and pairing state were not rewritten or deleted during diagnosis.
No conversation content, images, private file paths, account IDs, pairing codes or credentials are included in this report.
myamigo commentedon Nov 30, 2026
Additional reproduction on Windows 10 with Android Remote
On November 30, 2026, ChatGPT for Android showed “Couldn’t load this task’s messages. Try again in a moment.” when opening a local, image-heavy Codex task through Remote. This has happened about four times in the same project. Starting a fresh task restored mobile access temporarily, and the failure later recurred. Restarting the desktop app and reopening the Android app did not restore access to the affected task.
Environment
26.1120.6357.00.171.0-alpha.13.2Steps and observed result
Host-side measurements
45,987,328wire bytes each, across 337 frames. The host recorded write times of 35.9, 38.2, and 39.3 seconds and reported successful writes.Expected behavior
The task should open to recent messages and a usable reply field, with older history and media loading progressively. A large history page should not leave the task stuck on the retry screen.