Skip to content

Remote (Android) open times out on large threads while the host replies instantly #55005

Open

Description

@kulear829

Environment

  • Codex desktop 26.1013.4894.0 (MSIX) on Windows 11 10.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, with errorCode=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/turns and thread/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

  1. Create a thread with ~1,000+ items (a long asset/image session reaches this in a few hundred turns).
  2. Connect the Android remote client to the desktop host.
  3. Open that thread remotely → timeout. Open a small thread → fine.
  4. 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/items already accepts ranges).
  • Cap what a single thread/resume response may contain, independently of thread size.
  • Secondary, size only: imageGeneration.result keeps the full PNG as base64 inside item_json. On this machine that is ~2 GB across 751 items, up to 971 MB in one thread. Keeping only savedPath would shrink payloads by 10–50× — worth doing, but it will not fix 01a0f10a, 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

  1. added
    bug
    app
    app-server
    connectivity
    on Oct 18, 2026
  2. github-actions commented on Oct 18, 2026

    @github-actions
    Contributor
  3. kulear829 commented on Oct 18, 2026

    @kulear829
    Author

    Related: #54751 — same remote pagination timeout, and one data point that changes the fix

    #54751 (iPhone, same stack) already traces this to thread/items/list returning oversized pages because thread_resume_redaction.rs strips imageGeneration on thread/resume but not in the paginated reads. That explains the image-heavy threads.

    My case adds a counterexample that a byte budget alone would not cover.

    01a0f10a times out with 5.9 MB total and 3,786 items — and no inline image payload at all. It has 345 imageGeneration records, but every one of them has an empty result, and 93% of their combined 1.5 MB is revisedPrompt text. 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:

    • ~152 pages (3,786 items, 5.9 MB, no image bytes) → timeout
    • ~151 pages (3,754 items, 157 MB) → timeout
    • ~40 pages (981 items, 137 MB) → timeout
    • ~10 pages (242 items, 0.8 MB) → ok
    • ~4 pages (81 items, 0.1 MB) → ok

    So the fix likely needs two parts:

    1. a byte budget per page for image-heavy threads — the case already described in #54751, and
    2. avoiding N sequential round trips before first paint for item-heavy threads — e.g. return the tail of the thread in the resume/first response and page backwards, or raise the page size when items are small.

    Host side is not the bottleneck here: thread/resume composes in <100 ms with errorCode=null, and desktop-side thread/read / thread/items take ~200 ms on the same threads. Everything up to the wire is fast; the remote client is the one that gives up.

  4. kulear829 commented on Oct 18, 2026

    @kulear829
    Author

    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:

    Thread Pages Bytes Result
    #54751 control 33 1.3 MB ok
    #54751 affected B 22 7.7 MB (max page 4.5 MB) timeout
    #54751 affected A 19 15.3 MB (max page 10 MB) timeout
    my 01a0f10a 152 5.9 MB, no image bytes timeout
    my 394-item thread 16 0.82 MB ok
    my 01a13b71 40 137 MB timeout

    Neither 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:

    1. a per-page byte cap — without it, a 10 MB page still stalls the client at 19 pages;
    2. bounded sequential round trips before first paint — without it, 01a0f10a still walks 152 pages of 40 KB each and still times out.

    Also worth noting for whoever reproduces this: 01a0f10a timed out twice tonight about 20 minutes apart. Both times the host logged composing running thread resume response a couple of seconds after the request with no error code, so this is deterministic rather than network flakiness.

  5. alexneverland commented on Oct 28, 2026

    @alexneverland

    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

    • Windows 11 Pro 26H2, build 26300.9711.
    • Codex Desktop 26.1023.50603, build 22391; Windows package 26.1023.6123.0.
    • Available CLI: 0.165.0-alpha.1.2.
    • ChatGPT Android: 1.2026.293.
    • The desktop application's configured updater reports up to date.

    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, and active_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:

    • 288 turns: 287 completed and 1 failed; no in-progress turn.
    • 5,903 projected history items; 25,103,042 bytes of serialized stored item JSON.
    • Largest stored item: 159,970 bytes.
    • 2,133 command-execution items account for 21,392,705 bytes.
    • Zero image-generation items.
    • No items lacking a matching turn in the local history projection.
    • Projection byte offset matches the 94,306,795-byte rollout length.
    • SQLite quick_check returned ok.

    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 e742db9f7ba98e63e502b310857d49d047888518 in 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

    1. Can request-correlated host logging expose serialized reply byte count and successful relay send, without conversation contents?
    2. Does Android 1.2026.293 hydrate all turns/items before rendering the latest state, and is there a shared deadline for that hydration?
    3. Does a failed initial hydration retain a stale active-turn state despite a subsequent idle resume response?
    4. Can the Remote client first render authoritative status and a bounded recent history, then fetch older pages on demand?
    5. Should Remote payload policy cover the item/turn paging APIs as well as resume, with documented cursor and empty-page behavior?

    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.

  6. asherkhal commented on Oct 28, 2026

    @asherkhal

    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

    • ChatGPT Android: 1.2026.293(19).
    • Windows desktop package: OpenAI.Codex_26.1023.6123.0_x64.
    • Desktop client version in app-server request spans: 26.1023.50603.
    • Bundled CLI: 0.165.0-alpha.1.2.
    • The Android connection identifies as codex_chatgpt_android_remote, version dev; that is its protocol client identifier, not the Android application version.
    • Both affected local threads use paginated history.

    Reproduction

    1. Open the existing paired Windows computer from Android Remote Control.
    2. Android initially says it could not establish a connection, then changes to connected.
    3. Open a thread: loading messages times out.
    4. Tap Retry: sometimes only the first message appears, then loading times out again and the connection may close.
    5. Repeating Retry produces the same cycle.

    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. Android thread/resume and model/list requests 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 Request Response bytes Elapsed seconds Error
    New continuation thread/read, includeTurns=false 3,040 0.002 none
    New continuation thread/turns/list, limit=5, itemsView=summary 7,616 0.339 none
    New continuation thread/turns/list, limit=5, itemsView=full 14,552,717 0.085 none
    Original thread/read, includeTurns=false 1,505 0.002 none
    Original thread/turns/list, limit=5, itemsView=summary 6,848 0.002 none
    Original thread/turns/list, limit=5, itemsView=full 11,285,626 0.060 none

    These 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.

  7. myamigo commented on Nov 30, 2026

    @myamigo

    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

    • Windows 10 Home, x64, build 19045
    • ChatGPT/Codex desktop package 26.1120.6357.0
    • Codex CLI 0.171.0-alpha.13.2
    • ChatGPT for Android, using Remote. Android OS and app versions were unavailable for this report.

    Steps and observed result

    1. Use a local project task for several rounds of image generation and tool output.
    2. In ChatGPT for Android, open Remote, select the Windows host, and open the existing task.
    3. The message view shows the error above and offers Try again. Retrying did not restore the message view in the affected task.
    4. A later read-only prompt sent from the desktop side completed in about 44 seconds. Android showed the task’s busy spinner, but it still could not open the messages. The host-side history reader recovered the reply and reported the task idle after completion.

    Host-side measurements

    • Between 11:30 and 11:34 UTC, three resume attempts for the affected task were followed by Remote Control item-page writes of 45,987,328 wire bytes each, across 337 frames. The host recorded write times of 35.9, 38.2, and 39.3 seconds and reported successful writes.
    • The saved local history was about 103 MiB and contained 22 inline image data URLs totaling about 32 MiB. These are on-disk measurements. The Android client’s receipt, processing time, and exact failure point were unavailable.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugconnectivityremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions