Repository navigation
Description
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 (
blockedon iPhone andstalledon 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 notask_completeorturn_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_startedand 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
- Run a long-lived Codex task with a sustained goal on macOS.
- Continue the same task remotely from an iPhone.
- Allow a turn containing tool execution to become interrupted or otherwise stop producing events without receiving a terminal turn event.
- Continue or resume the sustained goal in the same task.
- 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.
latestTurnshould 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
github-actions commentedon Sep 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
dimasyankauskas commentedon Sep 10, 2026
Additional evidence from a desktop-app restart:
failed to project durable rollout ... thread history projection ... expected ordinal 17505, got 17504latestTurn, while the logs contained multiple newer turn IDs.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.
dimasyankauskas commentedon Sep 10, 2026
Relationship to the automatically suggested issues:
Workingindicator reconstructed from a historicalInProgressturn in the TUI.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
latestTurndespite 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.dimasyankauskas commentedon Sep 10, 2026
Community corroboration — September 10, 2026
Two public reports may help scope this:
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.
dimasyankauskas commentedon Sep 10, 2026
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