Skip to content

[iOS Remote] Small paginated task fails when one serialized record is large, while larger tasks load #42129

Open

Description

@lygris

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT/Codex Desktop 26.831.20005 (build 7524), with bundled codex-cli 0.152.0.

What subscription do you have?

ChatGPT Pro 20x.

What platform is your computer?

Darwin 27.0.0 arm64 arm

The client displaying the failure is ChatGPT/Codex Remote on iOS. The exact iOS app version was not captured.

What issue are you seeing?

Some valid Codex tasks listed in iOS Remote fail to hydrate their message history and display:

Error loading messages

Other tasks on the same account, host, and mobile client load normally. Updating and restarting the Mac desktop app did not resolve the affected tasks.

The failing tasks remain readable through the Codex App Server API on the remote Linux host, so their persisted histories exist and are not obviously corrupt. Total rollout size is also not the determining factor: a roughly 4.56 MB task fails while a roughly 54.2 MB task loads successfully.

What steps can reproduce the bug?

  1. Connect ChatGPT/Codex Remote on iOS through Codex Desktop on macOS to a remote Linux host running Codex App Server over SSH.
  2. Select an existing paginated task whose history contains an individual serialized record of roughly 2 MB or larger.
  3. Observe that the task shell may open, but its messages fail with Error loading messages.
  4. On the same phone and host, open a larger control task whose individual records are smaller.
  5. Observe that the larger control task loads successfully.

Four tasks were compared during the same reproduction window:

Result on iOS Approximate rollout size Largest serialized record
Fails 40.0 MB 5.32 MB
Fails 4.56 MB 2.24 MB
Loads 54.2 MB 1.60 MB
Loads 8.8 MB 1.49 MB

The individual task IDs and raw transcripts are intentionally omitted because they may expose private project content. A private in-app feedback report containing the reproduction details was submitted with feedback/session ID:

01a05e69-4884-7e71-b55e-88bfca7b644c

What is the expected behavior?

iOS Remote should load recent human-readable task history even when one command-output or compacted-history record is large. Oversized records should be byte-bounded, represented by a placeholder, truncated for the initial render, or loaded on demand rather than causing the entire message list to fail.

Additional information

This result suggests that total task size alone is not the trigger. Failure correlates more strongly with the size of an individual serialized message or command-output record, which may indicate a per-page or per-record decoding, transport, or rendering limit in the iOS Remote hydration path.

The updated Desktop logs also contained related state errors such as unknown conversation and conversation state not found from avatarOverlay, although no matching Codex App Server-side corruption or general server failure was found.

Related reports:

This report adds the size-inverted control case: a small total rollout fails while a substantially larger rollout loads, with the outcome instead tracking the largest individual serialized record.

Activity

  1. added
    bug
    iOS
    session
    on Sep 1, 2026
  2. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. AllDmeat commented on Sep 19, 2026

    @AllDmeat

    I can reproduce this on a newer desktop build with the same selective, per-thread behavior.

    Environment

    • ChatGPT/Codex Desktop: 26.915.31029 (build 9771)
    • Host: macOS 26.7, Apple Silicon
    • Client: ChatGPT Remote on iOS 1.2026.251
    • Observed: 2026-09-19

    Reproduction

    1. Connect iOS Remote to the Mac host.
    2. Open the affected existing local Codex task.
    3. The task shell renders (title, host row, changed-file summary, goal chip, and composer), but the message list shows:
      • Ошибка загрузки сообщений. (Error loading messages.)
      • Не удалось восстановить подключение к задаче (Could not restore the connection to the task)
    4. Both Retry buttons reproduce the same failure.
    5. Other tasks on the same Mac, account, workspace, and Remote connection consistently open normally. The affected set is stable across retries.

    Host-side evidence

    The affected task remains readable from the desktop thread API, so the local history exists and is not obviously corrupt.

    Its local JSONL transcript metrics are:

    Metric Value
    Total size 13,597,144 bytes
    Records 8,986
    Largest serialized record 2,164,131 bytes
    Largest record type event_msg

    The task includes a long interrupted turn with many tool and subagent events. The largest record is just over 2 MB, matching the per-record correlation described in this issue.

    Expected behavior

    iOS Remote should load the readable parts of the task even when one serialized event is large. Oversized tool/subagent records should be byte-bounded, truncated, represented by a placeholder, or loaded on demand instead of failing the entire history and reconnect flow.

    Private task IDs, titles, repository paths, host names, transcript contents, and raw logs are intentionally omitted. A screenshot is available but not attached because it contains private task and host metadata.

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

    bugiOSremotesession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions