Skip to content

[macOS/iPhone] Same Codex task shows different active turns and reports stale turn as latest #44599

Open

Description

@dimasyankauskas

Summary

The same Codex task can retain multiple non-aborted turns without completion events. Different clients then display different turns as the current one.

In one observed case:

  • the iPhone remote UI displayed an older turn as still running, including an active command indicator;
  • the macOS ChatGPT/Codex UI displayed a newer turn doing unrelated work in the same task;
  • the task-status API reported the older unresolved turn as latestTurn, even though the rollout contained newer turn events;
  • the older command had no corresponding live OS process;
  • the goal badge also differed across clients (blocked on iPhone and stalled on macOS).

This appears to be a turn-lifecycle and client-synchronization defect rather than two intentionally separate tasks.

Environment

  • macOS 27.0
  • ChatGPT desktop 26.903.71938 (build 8576)
  • bundled Codex CLI 0.153.4
  • remote client: ChatGPT/Codex on iPhone
  • one long-running local Codex task with a sustained goal

Sanitized evidence

The local rollout contained:

  • an older user turn with task_started, continued tool activity for approximately 14 minutes, and no task_complete or turn_aborted;
  • a newer user turn started roughly ten hours later in the same task and continued producing current messages;
  • another older goal continuation with task_started and no terminal event;
  • one separate turn that was correctly recorded as turn_aborted.

At inspection time, there were three non-aborted task_started records without matching task_complete events. Only the newest turn appeared to be doing real work.

The app's task snapshot still selected the old turn as:

thread.status = active
latestTurn.status = inProgress
latestTurn = older unresolved turn
latestToolMarker.status = failed

Meanwhile, the macOS UI visibly rendered messages from the newer turn. The iPhone UI remained attached to the older turn and showed its command as running, although no matching command process existed.

The rollout was approximately 158 MiB with about 27,000 records. No private task content or repository data is attached.

Steps that led to the state

  1. Run a long-lived Codex task with a sustained goal on macOS.
  2. Continue the same task remotely from an iPhone.
  3. Allow a turn containing tool execution to become interrupted or otherwise stop producing events without receiving a terminal turn event.
  4. Continue or resume the sustained goal in the same task.
  5. Open the task on both clients.

Observed result: the iPhone and macOS clients can attach to different unresolved turns, and the task API may select the older turn as latest.

Expected behavior

  • A task should have one authoritative current turn.
  • Starting or resuming a newer turn should close, abort, or supersede any older unresolved turn.
  • latestTurn should identify the newest authoritative turn.
  • Desktop and mobile clients should render the same current turn and command state.
  • A command with no live execution should not remain displayed as running.
  • Goal state labels should converge across clients.
  • Automatic goal continuation should not proceed while an earlier turn remains ambiguously in progress.

Impact

  • Users may believe two sessions are running.
  • Remote users can reopen a stale turn and repeat work that already continued elsewhere.
  • Automatic continuations and repeated recovery can consume additional tokens.
  • The UI cannot reliably identify which work is current or safe to stop.

This is potentially related to #34971 because repeated continuation and recovery may amplify token usage in long tasks, but this report concerns the narrower turn-lifecycle and cross-device synchronization failure. It does not claim that an orphaned record alone continues consuming tokens.

For privacy, this report omits screenshots, repository and project names, filesystem paths, machine name, task text, and full task/turn identifiers. Sanitized event shapes or timestamps can be supplied if maintainers need them.

Activity

  1. added
    bug
    app
    app-server
    on Sep 10, 2026
  2. dimasyankauskas commented on Sep 10, 2026

    @dimasyankauskas
    Author

    Additional evidence from a desktop-app restart:

    • After restarting Codex Desktop, the same task reopened at the older state previously shown on iPhone. The UI marked that old turn active and presented it as the latest turn, despite newer turns having run before the restart.
    • The local working tree itself did not roll back. A read-only Git inspection found 298 preserved changed paths (78 modified tracked files and 220 untracked files), including files written by the newer turns. This isolates the rollback to task/history presentation and lifecycle state rather than Git.
    • The reopened task immediately started another model turn under the same task, then performed a mid-turn automatic compaction because of the context limit.
    • Local Codex logs repeatedly reported:
      failed to project durable rollout ... thread history projection ... expected ordinal 17505, got 17504
    • During interruption, the logs also reported that the running task “didn't complete gracefully after 100ms.”
    • The thread API continued to report the older unfinished turn as latestTurn, while the logs contained multiple newer turn IDs.
    • The local per-thread token counter also reset to a small value after restart, so it is not a stable lifetime-usage measurement.

    The task has now been interrupted and its working tree preserved. No private repository name, path, source content, screenshot, or account/task identifier is included here.

  3. dimasyankauskas commented on Sep 10, 2026

    @dimasyankauskas
    Author

    Relationship to the automatically suggested issues:

    This report adds a narrower combined failure in the desktop/Remote path: the same task retained multiple turns without terminal events; the task API selected an older unresolved turn as latestTurn despite newer turn events; and restarting the desktop app reproduced the older state while durable-rollout projection logged an ordinal mismatch. The working tree remained intact, isolating the apparent rollback to task/history projection rather than repository state.

    A completed trace analysis found no sustained parallel model streams. The old turn stopped producing token-usage records before newer turns began, but remained unresolved and eligible to be selected as current. The affected goal contained 3,299 token-usage records, 38 context compactions, and 76 automatic goal-continuation messages; 97.18% of recorded input was cached context. These local measurements show substantial context reprocessing around the lifecycle failure, but they are not presented as proof of server-side billing behavior.

    If maintainers consolidate these reports, please retain this case as an additional macOS/iPhone Remote reproduction with latestTurn, restart, durable-projection, and filesystem-continuity evidence.

  4. dimasyankauskas commented on Sep 10, 2026

    @dimasyankauskas
    Author

    Community corroboration — September 10, 2026

    Two public reports may help scope this:

    • An independent Codex user reported the same desktop/phone state reversion approximately two weeks earlier. After the task appeared to recover and could recall newer work, the thread reverted to the older phone-visible state again several hours later. Reddit comment
    • A separate ChatGPT iOS report from 49 days earlier described a newly sent prompt disappearing from conversation history while the model responded to an older prompt. Reddit report

    The first report closely matches this Codex Remote/desktop failure. The second may indicate a related synchronization or persistence class, but it occurred on a different product surface and should not be treated as evidence of the same root cause.

  5. dimasyankauskas commented on Sep 10, 2026

    @dimasyankauskas
    Author

    Additional community timestamp

    The independent Codex reproduction was flagged by the affected user on August 21, 2026 at 7:18 PM (timezone not specified). This narrows the incident window for comparison with app releases and service logs. No Codex desktop version was provided.

    Source: Reddit comment

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-serverbugremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions