Repository navigation
Description
Summary
A converted paginated task can still take tens of seconds to open because Codex Desktop uses a count-based initial item budget. It loads up to 500 recent items, without a byte-size limit.
One recent turn can therefore fill almost the complete initial window with large commandExecution items. Pagination prevents old history from loading, but it does not make the task interactive quickly.
The same remote task was slow in Codex Desktop on macOS and in Codex mobile. Mobile sometimes reported:
Error loading messages: Codex request timed out.
Environment
- Codex Desktop:
26.810.41047, build6570 - Platform: macOS, Apple Silicon
- Task host: remote Linux App Server over SSH
- Mobile used a separate reverse-tunnel route to the same remote App Server
- The task was confirmed as
historyMode: "paginated"
Private task IDs, host names, paths, prompts, and outputs are omitted.
Reproduction shape
The affected task had:
- rollout size: about 48.9 MiB
- 37 turns
- 974 persisted display items
- about 14.1 MiB of serialized display-item data
- latest completed turn: 420 items and about 10.8 MiB
commandExecution: 207 items and about 13.3 MiB across the task
Cold-load observations:
- stable
thread/resume: about 0.26 seconds - cold desktop hydration: about 28.8 seconds
- warm cached reopen: about 1.1 seconds
- ten sequential
thread/items/listrequests were observed during the cold load - some attempts reached the client timeout at about 65 seconds
- mobile also had long waits and a request-timeout error
This points to the initial item payload and client hydration, not rollout parsing or SQLite query time.
Desktop source finding
The installed Desktop bundle has a paginated tail-hydration path that:
- requests the newest five turns with
itemsView: "notLoaded"; - calls
thread/items/listrepeatedly; - uses a shared budget of
min(requested turn limit, 5) * 100, which is 500 items for the initial five-turn request; - asks for up to 100 items per item request;
- stops at 500 items or when the selected turns are exhausted;
- keeps cursors for older items.
The bundle also prevents the legacy full-history background drain for paginated tasks. The problem is therefore not that pagination is ignored. The problem is that the initial budget is based only on item count.
In this case, the newest 420-item turn alone contained about 10.8 MiB, so it remained almost fully inside the 500-item bootstrap window.
Expected behavior
A paginated task should become interactive after a small, byte-bounded bootstrap response, even when the newest turn contains many large command outputs.
The client should show the newest user and assistant messages quickly. Large command output and reasoning detail should load only when needed, or use compact placeholders.
Suggested direction
- Add a byte-size budget to initial item hydration.
- Use a much smaller initial item window when serialized items are large.
- Load full command output only when the user expands or scrolls to it.
- Keep user messages, assistant messages, file changes, turn status, and active output in the fast path.
- Do not block the composer or active-turn status on old command-output hydration.
- Apply the same bounded behavior to remote/follower and mobile paths.
Suggested regression test
Create a paginated fixture where the newest turn contains about 400 items and more than 10 MiB of command output.
Verify that:
- the first interactive render transfers a bounded payload;
- the composer becomes usable without loading all large output items;
- the complete output remains available on demand;
- desktop and remote/follower clients do not reach their request timeout;
- the original rollout and model-visible context remain unchanged.
Related issues
- Thread navigation/loading slows from unbounded metadata and eager large-history hydration #21211 — broad eager history hydration and renderer performance
- [CLI/TUI] Resume renders the full thread history instead of bootstrapping the latest turn #34663 — CLI/TUI full-history resume behavior
- [Windows Desktop 26.715] Completed large thread is fully replayed every few seconds, causing system-wide input stutter #33786 — repeated large-thread replay on Desktop
This report is narrower than those issues: it reproduces after the task is already converted to paginated history, and it identifies the 500-item, count-only bootstrap budget as the remaining large-payload path.
Activity
github-actions commentedon Aug 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
guzifer commentedon Aug 21, 2026
I can confirm this is still a severe regression on the current unified ChatGPT/Codex desktop build, and it is affecting iPhone Remote access to most existing operational tasks.
Environment
26.818.31338(build6892)0.149.0-alpha.4Reproduction and contrast
Host-side evidence
For one failed mobile open, the app-server received within one second:
The host stayed connected and showed no matching app-server error. The mobile connection was active, and the server composed the resume response normally. This strongly matches the count-only bootstrap issue described here: mobile receives several full item pages for recent turns and then stalls while loading/rendering them.
The app-server identifies the Remote client as
codex_chatgpt_android_remoteeven though the observed client is the ChatGPT iPhone app; I am including that detail in case the identifier is shared or routing is incorrect.Operational impact
This is not just a slow open. Existing task history is effectively unavailable on mobile, while tiny tasks still work. Creating one successor task per old task is not a workable mitigation for dozens of long-lived operational tasks.
Requested behavior
Please byte-bound the initial Remote/mobile bootstrap, for example around 50 KiB of newest human-readable content, while retaining cursors for older pages. Prioritize recent user/assistant messages and load command output, reasoning, and older details only on demand. The original task and model-visible history must remain unchanged.
This evidence also distinguishes the issue from pairing or network failure: the host receives the requests and remains online; the failure begins at paginated history hydration/rendering after the desktop update.
TobyIsADog commentedon Sep 12, 2026
ChatGPT Android: 1.2026.244 (2624421)
Windows desktop package: 26.903.9818.0
App-server: 0.153.4
Here are additional test results from Android connected to a native Windows host. The phone displayed the task list, but two tasks with large tool outputs stayed blank or spinning while another task opened normally. The desktop app and running tasks remained usable.
The client already used pagination. We observed this request sequence:
For the comparison, we changed thread/items/list params.limit from 100 to 20 before sending, preserving request IDs, existing pagination cursors, sorting and other parameters. The useStateDbOnly=true change for the list timeout remained enabled.
Both tasks that had failed to display then loaded normally. Expanding older content in one task triggered 23 more requests with pagination cursors, and older content and images appeared. After restarting only the phone app and reapplying the parameter changes, we checked both tasks again and they loaded successfully.
During recovery, the Windows desktop app and primary app-server kept the same process IDs and start times. We did not restart these processes or edit conversation histories or databases. Request parameters were modified temporarily while the app was running, rather than through app settings.
From the local data for one task, we counted all history items intended for display: 453 items, totaling approximately 71.9 million characters when serialized as JSON. About 99.72% of the characters were in mcpToolCall records, including call arguments, results and metadata. This describes all local display data for that task, not the size of one network response or page.
During the failure, the host also logged "disconnecting slow connection after outbound queue filled". This resembles the behavior reported in #37526, but we have not confirmed whether this case involves the same queue capacity or code path, or established a causal relationship between disconnection and blank conversations.
The experiment confirmed that these two tasks could display again. It did not establish that 20 items per page works for every task, and we did not check every historical item individually. We also cannot yet tell whether the problem lies in parsing, rendering, memory, the network or the server's message queue, or whether several stages contribute.
Please consider setting a byte limit on the history loaded when a Remote task first opens, showing recent readable messages first, and loading larger tool outputs when the user needs them. Preserve the data and pagination cursors needed to access the full history. If loading fails, show a clear error that allows a retry instead of spinning indefinitely.
raulblanko commentedon Sep 14, 2026
Additional live Windows evidence for the count-budget behavior is documented in this single detailed report under #44399, issue B.
Installed Desktop package: 26.908.4834.0. JSONL and the history index were healthy and caught up. Two completed turns contained 39 and 1,158 indexed items. A multi-turn
read_threadrequest returned 0 and 500 items respectively. Explicit one-turn page traversal recovered all 39 items of the older turn and returned a 100-item slice of the long turn.This adds a correctness/accessibility concern to the bootstrap budget: a populated older turn can be represented as empty, without usable per-turn completeness/continuation information. We have not measured a new cold-load latency or captured the Desktop's internal item cursor, so no such result is claimed here.
Please include this healthy-storage Windows shape in the regression coverage, and preserve explicit partial/not-loaded states alongside any item or byte budget. The detailed evidence and ownership/release questions are kept in the linked comment to avoid duplicating the report across issues.
Prepared and posted by OpenAI Codex (AI assistant) with the account owner's explicit authorization.
Molly1116 commentedon Oct 14, 2026
Additional Windows + Android Remote measurements: fast local RPC, large first-page payloads
I'm adding sanitized measurements from a Windows host exhibiting the same failure: the ChatGPT Android Remote task list and small tasks open normally, but two existing long-running tasks repeatedly time out while loading messages. The same affected task opened successfully once on a previous evening, then failed again. The original tasks remain usable on the Windows desktop.
Environment
26.1007.2314.00.162.0-alpha.17.2Isolated local App Server benchmark (
thread/items/list, from selected turns; response sizes measured from serialized JSON-RPC responses, not from Android's network connection):limit=100limit=20limit=10All timings are local isolated RPC measurements, not end-to-end remote load or rendering timings. These results show that the sampled server queries themselves are fast, while page payload sizes vary dramatically. They do not prove where Android is timing out.
For the larger sampled turn, five successive
limit=20pages returned 100 items in total, and the collected IDs, order, and content matched a singlelimit=100response. The five page sizes were approximately 221 KB, 1,436 KB, 556 KB, 1,261 KB, and 940 KB: this illustrates both valid cursor pagination and why a count-only budget cannot guarantee a bounded payload.Observed remote path and limitations
app_server.client_name="codex_chatgpt_android_remote"and fivethread/items/listrequests following athread/turns/listrequest.codex.exe app-servervia the Remote Control WebSocket transport, not by the desktop Electron UI's local JS bridge. Patchingapp.asar's desktop read wrapper would therefore target the wrong path.disconnecting slow connection after outbound queue filledor oversize-envelope drops for these attempts. Absence in available logs does not rule out relay/backpressure, client deserialization, or rendering bottlenecks.Engineering request
Please consider a byte-bounded and demand-driven initial Remote/mobile hydration policy rather than a 100-item page alone: prioritize the newest readable user/assistant messages and active-turn state; lazily fetch oversized tool/MCP outputs, while preserving per-turn cursor/partial states and every historical item on demand. Keep the composer operable independently of older-history hydration and expose a specific recoverable error/retry path.
It would also help to add regression coverage for:
nextCursorand no missing/duplicated items when using small pages;Related cases: #49737 (same Android message-loading timeout wording), #38023 (idle task occasionally opens when live events arrive), and #36423 (different oversized-envelope failure path). These may involve more than one bottleneck, so I would avoid treating
limit=20as a universal fix.Privacy: Task IDs, local paths, account details, logs containing conversation contents, and host identifiers are intentionally omitted. Prepared from local measurements and posted with the account owner's authorization.
yzxz1996 commentedon Nov 6, 2026
Additional Windows Desktop + iOS Remote reproduction on Desktop 26.1103.31037
This remains reproducible on a newer Windows host, even with only five local turns when the tool/MCP records are large. Short conversations open on the phone; this tool-heavy conversation repeatedly shows a loading-timeout error.
Environment
26.1103.3517.0.26.1103.31037.0.167.0-alpha.3.2; matching public tagrust-v0.167.0-alpha.3.2, commitc40729ea5cf8e947481b130c59807273eda2f8e9.1.2026.300.historyMode: "paginated".Observed behavior and reproduction shape
Loading this task's messages timed out. Please retry.The host received
thread/resume,thread/turns/list, and multiplethread/items/listrequests during failed opens. This is therefore not simply a missing host or a complete failure to dispatch history requests.Storage and payload measurements
The history database passed
PRAGMA quick_check; all 440 indexed items were valid JSON, no target items had missing turn rows, and the projection offset matched the completed rollout size.The following are offline measurements of compact JSON arrays reconstructed from persisted display items, not captured iOS network response sizes:
Splitting the latest turn into ascending 100-item pages produced arrays of 2,211,885 and 1,352,073 bytes. Actual mobile request limits and wire payload sizes were not captured. This reinforces why a count limit alone is not a useful byte bound.
A local Desktop
read_threadhelper returned the latest turn in about 98 ms with outputs omitted and per-item text previews capped. This is not an equivalent mobile detail request and is not an end-to-end latency measurement. Ordinary provider HTTP and a Responses WebSocket handshake passed, but those checks do not establish the health of the separate Remote Control path.Code observations, with scope limits
Read-only inspection of the installed Desktop bundle found:
decoded message length too large; ordinary timeout errors do not trigger that size fallback.history_ready; this is different from claiming that every first render waits for the full transcript.sendCatalogRequestbranch, schedulingtimeoutMsis not forwarded as the internal RPC timeout. A controlled replay of that extracted method with mocked scheduling/transport confirmed that requesting 120 seconds reached the scheduler but not the internal transport options. Queue-budget and RPC-deadline semantics may intentionally differ; please make them explicit rather than assuming changing a scheduling timeout changes both.These Desktop JavaScript findings concern Desktop's own bridge/hydration paths. They do not prove the iOS client uses the Electron bridge or shares its 30-second deadline. The observed mobile requests are handled by the native app-server remote transport.
There was also one host event matching #37526:
The exact bundled version still uses 128-message remote client queues and disconnects on a full outbound queue. However, a later failed retry did not produce another queue-full event in the inspected logs, so this is not being presented as the confirmed cause of every timeout. The shared unacknowledged-frame gate also deserves per-stream fairness testing. Its ACKs are backend-generated receipt cursors, not evidence of phone rendering progress.
Requested improvements
No live app patch was applied. No raw logs, screenshots, conversation text, local paths, account/host identifiers, or live task/request IDs are included in this comment.
Prepared and posted by OpenAI Codex with the account owner's explicit authorization.