Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
- Microsoft Store package:
OpenAI.Codex 26.818.2441.0 - Desktop client version observed in logs:
26.818.21641 - Bundled CLI/app-server:
codex-cli 0.148.0-alpha.21 - ChatGPT Android:
1.2026.223
What subscription do you have?
Not captured in the local diagnostics. Pairing and the Remote relay both authenticated successfully.
What platform is your computer?
Host:
Microsoft Windows NT 10.0.26200.0 x64
Remote client:
- Android 14
- moto g power 5G - 2023
What issue are you seeing?
Android Remote paired successfully with the Windows host, but repeatedly cycled through Looking for ChatGPT desktop → Reconnecting → Failed to connect.
The desktop Remote WebSocket was connected and a fresh revoke/re-pair completed successfully. The failure began after the remote connection received initialize and then requested thread/list. The request never completed over Remote, even though the identical call completed locally in about 1.5–2.0 seconds.
A controlled before/after test isolated the active thread-list payload as the trigger:
| Case | thread/list path |
100-item response | Largest preview | Local time | Android Remote |
|---|---|---|---|---|---|
| Before workaround | default scan/reconcile | 258,954 bytes | 13,810 bytes | ~1.5–2.0 s | fails/reconnects |
| Control | useStateDbOnly: true |
97,319 bytes | ~512 chars | ~0.02 s | local control only |
| After workaround | default scan/reconcile | 90,054 bytes | 391 bytes | ~1.9 s | connects |
The active profile contained 162 unarchived vscode threads. Twenty-seven had first user messages longer than 512 characters; many were handoff prompts between 8,437 and 13,796 characters.
The state DB already held bounded cached previews, but default thread/list ignored those values while scanning/reconciling rollout JSONL and returned the full first user message as Thread.preview. Migrating one rollout to paginated history did not change that default list behavior.
Using the supported thread/archive API to archive those 27 long-preview threads reduced the same default 100-item response from 258,954 to 90,054 bytes. After toggling Remote off/on, the already-paired Android device connected immediately and successfully sent a message to the desktop task.
This A/B result strongly indicates an unhandled Remote payload-size/envelope boundary combined with unbounded list previews. The exact transport threshold was not established.
Sanitized host sequence from a failing attempt:
remote connection: initialize
remote connection: thread/list
(no response delivered; request remains open)
subsequent retry: initialize -> client disconnect
There was one desktop app-server process, the relay connection was healthy, and both Codex state databases passed integrity checks. Restarting Windows, revoking/re-pairing the phone, and toggling Remote did not fix the problem while the large list payload remained.
What steps can reproduce the bug?
- On a desktop Remote host, retain enough active threads that the first page includes many large first user messages. In this case, 27 threads began with 8–14 KB handoff prompts.
- Confirm that default
thread/listwithlimit: 100andsourceKinds: ["vscode"]returns a response around 259 KB, with full first messages mapped intopreview. - Enable Remote and pair ChatGPT Android.
- Attempt to connect. Observe that
initializesucceeds,thread/listis received by the host, and the phone then reconnects/fails. - Bound the previews or archive enough long-preview threads so the default response is around 90 KB.
- Toggle Remote off/on and retry from the same paired phone.
- Observe that Remote connects and can send messages.
A useful implementation-level regression test would send a thread/list result larger than the Remote envelope limit and verify that it is chunked/paged or rejected explicitly instead of silently leaving the client in a reconnect loop.
What is the expected behavior?
- Long initial prompts should not prevent Android Remote from connecting.
thread/listshould send a bounded display preview rather than the complete first user message.- The Remote initial list could use the bounded state-DB representation, request
useStateDbOnly: true, or chunk/page the response. - If a transport limit is exceeded, the host/client should receive a clear error and the outstanding request should be cancelled rather than silently stalling.
Additional information
Related, but not exact duplicates:
- Windows host pairs with Android Remote, but conversations fail to load;
/wham/tasks/listreturns 503 #39815 tracks the same-day Windows/Android symptom cluster; this result replaces the earlier service/handshake hypotheses for this particular host with a reproducible local data-volume trigger. - Android Remote Control times out listing WSL threads when thread/list scans rollouts #36416 is the same initial
thread/liststage, but its failure is a 26–57 second rollout scan timeout. Here, the default call completed locally in about 2 seconds and payload size was the changing variable. - Codex Desktop remote loading disconnects when thread/read exceeds remote-control envelope limit #36423 reports a Remote envelope failure for oversized
thread/read; this may be the same transport/error-handling family at a different endpoint. - Thread navigation/loading slows from unbounded metadata and eager large-history hydration #21211 already documents that
first_user_messagecan makethread/listpreviews unbounded.
No account, device, server, environment, installation, or pairing identifiers are included. Raw logs are not attached because nearby headers contain authentication material; sanitized excerpts can be provided.
Activity
guzifer commentedon Aug 21, 2026
Confirmed the same Android
thread/listsize regression on macOS, with an exact before/after workaround.Environment:
26.818.31338(build 6892), macOS Apple Silicon0.149.0-alpha.41.2026.223, Android 16, SM-F7660Before workaround, local reproduction of the Remote-style first page (
thread/list,limit: 100,sortKey: updated_at, descending) returned:Android could see/reach the paired host, but could not load even the task directory. Re-pairing, clearing app state, restarting Desktop, and restarting the app-server did not make this stable.
I then archived (not deleted) older threads in two reversible steps. With only the 35 most recently updated threads left active, the same local response measured:
After that reduction, Android immediately rendered the directory again. This isolates the directory outage to the first
thread/listpayload size, not pairing, Wi-Fi/5G, host sleep, or authentication.There is still a separate second-stage failure when Android opens large paginated tasks. That appears to match #38653 / #38023: the directory works, but conversation hydration does not. A small two-turn paginated control task opens fully.
A durable fix should apply both a count limit and a byte/preview limit to Remote
thread/list; ideally it should use bounded state-DB previews and page the result instead of returning full first-message handoff prompts.charles1w commentedon Sep 10, 2026
Related finding at the same initial task-list step: on app-server 0.153.4, the host can also spend too long reading large helper-agent histories before excluding them from the list. In our controlled test, ordinary listing exceeded 25 seconds; early exclusion returned the same 50 tasks in 1.15 seconds (indexed listing: 27 ms).
A history-preserving scan workaround restored task loading on the phone. Detailed evidence, workaround and recommendations; earlier scan-timeout report: #36416.
This adds a processing-time problem alongside the response-size problem measured here. Both support using the bounded task index; our result does not establish a shared transport-size threshold.
aimpugn commentedon Oct 14, 2026
Additional macOS reproduction on 2026-10-15 KST. The paired Android device remains at “Looking for ChatGPT desktop” / “Connecting…” after reinstalling both apps, updating desktop, signing out/in, and switching Wi-Fi ↔ mobile data. The host receives the remote client's
initializeandthread/listrequests, but the mobile chat directory does not load.Environment: ChatGPT desktop
26.1007.71326(build20398), bundledcodex-cli 0.162.0-alpha.17.2. Android app version was not captured.Read-only local reproduction using the bundled app-server:
thread/listwithlimit: 100,sortKey: "updated_at",sourceKinds: ["vscode"]: 100 chats, 15,463,346 response bytes, 20.15 seconds. Preview text totaled 9,528,728 characters; largest preview was 434,428 characters.useStateDbOnly: true: 100 chats, 15,626,059 response bytes, 0.174 seconds. On this profile, the state DB's cached previews are also unbounded, so DB-only improves query time but does not bound the response size.vscodechats; 610 cached previews exceed 512 characters.This is consistent with the issue's initial-list failure, but the Android transport threshold and root cause remain unproven. No raw logs, host identifiers, account details, or conversation content are included.
Timeline clarification (updated): The user now recalls, with uncertainty, that this same Android-to-Mac connection last loaded normally before October 8. A failure was reported on October 9 and again on October 12, before the latest desktop update. Current read-only metadata shows that 14 still-active chats created on October 8 have about 5.09 million preview characters in total; 11 created on October 5 have about 2.77 million. Large previews also predated October 5. These figures are not exact historical
thread/listresponses, and we do not know whether the Android client or relay changed during that interval. The timing makes list growth plausible, but it does not establish a payload threshold or root cause.Controlled recovery observation (October 15 KST): With the user's permission, we archived only the 14 unpinned October 8 diagnostic chats (about 5.09 million cached preview characters); all other chats remained unchanged, and all 14 original rollout files still exist. The user then fully closed and reopened Android ChatGPT. The Mac chat list loaded normally, and the user opened one Mac chat and read its messages successfully. This is a positive mobile end-to-end result for this limited change; the 14 chats remain archived. It does not by itself prove an exact payload threshold or exclude a concurrent client/relay recovery, though prior app restarts/reinstalls and network changes had not resolved the symptom.
Ktokum commentedon Oct 30, 2026
Additional Windows 11 + ChatGPT Android reproduction on 2026-10-31 JST, with read-only host evidence and independent app-server JSON-RPC measurements.
Versions / environment
26.1021.3705.0; bundled app-server/CLI:0.164.0-alpha.11.1.1.2026.293, Android 15.Observed Android Remote behavior, correlated with the Windows host logs
initializethread/listthread/resumeBoth mobile and Wi-Fi exhibit approximately 5 logical disconnects/minute. The same existing thread was resumed in both tests; the host logs show
composing running thread resume response. That proves host-side request receipt/response construction, not successful relay delivery or Android parsing.Measured JSON response sizes from a separate, no-auth, Remote-disabled app-server using a verified snapshot of these threads (same bundled binary; UTF-8 JSON-RPC response line size, not on-wire relay size):
thread/listnormal scan, 25 most-recent vscode threadsthread/listnormal scan, 50 threadsthread/listnormal scan, 100 threadsthread/listuseStateDbOnly=true, 100 threadsthread/resumefor the thread opened on Android,excludeTurns=truethread/resumedefault (full 3-turn history)thread/turns/listsummary of those 3 turnsThe isolated snapshot's cached previews are themselves long, so
useStateDbOnlyhelps latency but barely reduces payload size. In an in-memory what-if only, truncating each preview to 512 Unicode code points reduces the 100-thread JSON from 1,097,359 to 176,155 bytes; 256 code points reduces it to 135,517 bytes. No product files or user histories were edited.A single safe archive of a completed 1-turn diagnostic conversation was verified as the only archive-state change (original rollout SHA unchanged), but did not improve Android Remote: in equal 180-second windows, logical disconnects were 17 before vs. 23 after. This is not a controlled causal estimate and does not imply archiving caused deterioration. We have not archived additional threads.
Important limits: Existing production logs identify RPC methods but do not record the actual Android
thread/listparameters (limit,sourceKinds,useStateDbOnly), its actual response-byte count over the relay, whether Android sendsexcludeTurns, or relay send/ACK and Android parse/render outcomes. Therefore this strongly supports examining unbounded previews and hydration payloads, but does not establish a root cause or transport-size threshold. Some remote connections progressed pastthread/listtothread/resumebefore disconnecting.Could maintainers correlate the production per-request method/parameters, response JSON size and completion, relay send/ACK/close reason, and Android receive/parse result under a single sanitized request/connection correlation ID? Separately bounding first-page list previews and default resume hydration would be worthwhile regression cases. Related to #39954 and #55005.
No raw log, transcript, user IDs, host IDs, pairing tokens, local paths, or private data included.
Ktokum commentedon Oct 30, 2026
Follow-up to my 2026-10-31 Windows/Android reproduction above: the Android Remote user now reports that previously visible older Codex chats display "Not found" after the Remote error/reconnect loop. The exact UI placement of the message has not yet been captured, so this is a user-visible symptom, not proof of a server-side 404.
I immediately checked the live Windows Codex data against the independently verified pre-test snapshot, read-only:
PRAGMA quick_check = ok.The host logs around Oct 31 02:00–02:12 JST show a sustained
initialize → thread/list → logical connection closedloop (approximately 67 initialize, 152 thread/list, 68 connection-close events in the retained time bins), with nothread/resumeobserved in that interval. The regular host log shows no explicit “thread not found” response to explain the UI message; it only exposes request method/lifecycle, not Android receipt or rendered UI state. Prior tests on Oct 31 01:10–01:17 did reachthread/resume, so the failure stage may shift between attempts.This distinguishes Android Remote discovery / client state / relay errors from actual Windows-local history loss. Please investigate how the client can render a “not found” state when the host index and rollout files remain intact, in addition to the suspected unbounded list/resume responses. A correlated diagnostic should identify the failed resource (host, project, thread, or list request), response status, and Android cache/relay generation. No account IDs, host identifiers, thread IDs, chat contents, raw logs, or local paths included.
Ktokum commentedon Oct 30, 2026
Further controlled A/B result from 2026-10-31 02:16–02:20 JST (same Android Remote client/host, no app-server restart, no history edits):
thread/resumeJSON response 17,444 bytes) and still saw the same repeated reconnects.thread/resumeat 02:16:55 JST, then logged the logical connection closing at 02:16:59. It resumed A repeatedly at 02:17:04, :10, :17 and :24 with further rapid closes. The host receivedthread/turns/listtoo. Therefore the issue is not limited to large per-thread hydration responses.thread/resumerequests were observed for a different older thread. One of these generated 119thread_historyWARN entries:dropping turn-scoped item for unknown turn id. We cannot prove the mobile UI misrouted a tap without Android per-request/client instrumentation; it might have been a retained or background selection.thread/listrequests, 12thread/resumerequests, and 24 logical connection-close events.Revised diagnosis: Potentially two stages: an oversized first-page list (100-thread clone response ~1.10MB) and an independent Android Remote session/relay lifecycle or stale thread-selection/response-routing problem, because even the short A session fails after the host reaches resume and turns/list. Please correlate exact client-selected thread ID, host request ID, response completion, relay delivery/ack, and Android parse/render/close reason. No raw logs, account details, device IDs, host IDs, thread IDs or conversation contents disclosed.