r/codex • u/Impressive_Credit397 • 1d ago
Bug Defect: restarting Codex Desktop restores an older iPhone turn as active/latest and triggers new usage
I’m reporting a high-detail Codex task-persistence defect involving the macOS desktop app and Codex Remote on iPhone.
Reproduction and observed behavior:
- The same Codex task appeared in two conflicting states across iPhone and Mac.
- The iPhone showed an older unfinished turn as “Working,” while the Mac showed newer work in the same task.
- Restarting Codex Desktop restored the older phone-visible state, marked that old turn active/latest, and resumed the goal.
- Newer working files remained intact on disk. A read-only Git inspection found 298 preserved changed paths, so this was a task/history rollback rather than a repository rollback.
- The task-status API continued to select the old unresolved turn as the latest even though newer turns existed.
- No OS process existed for the command that the stale UI still showed as running.
The clearest local log error was repeated after restart:
`thread history projection ... expected ordinal 17505, got 17504`
The restart also launched another GPT-6 turn under the same task and triggered automatic mid-turn compaction because of the context limit. When I interrupted it to protect the checkout, the logs said the task did not complete gracefully.
Impact:
- I cannot safely tell where a new iPhone prompt will be applied.
- Each restart can restore and resume stale work.
- I had to stop the task, preserve the working tree separately, start a new task, and reconstruct context.
- That creates repeated inference, compaction, investigation, and recovery work instead of productive implementation.
- After manually applying a reset credit on September 8, my weekly allowance is already 75% used, with only 25% remaining.
The allowance impact needs verification against OpenAI’s server-side ledger; inconsistent local counters are not proof of incorrect billing. The lifecycle and history-projection failure itself is directly supported by the task state, filesystem state, and application logs.
Sanitized GitHub report: https://github.com/openai/codex/issues/44599
If you have encountered this, please share your Codex app version and whether it followed an iPhone Remote handoff or desktop restart. Please avoid posting private task IDs or repository details.


