Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Current installed/running desktop app: 26.903.71938 (build 8576), bundle identifier com.openai.codex. The installed application is currently named ChatGPT.app. These values were read from its bundle metadata; the exact version at the first occurrence was not separately captured.
What subscription do you have?
Not provided in this report.
What platform is your computer?
macOS 26.6.2, Apple Silicon.
uname -mprs: Darwin 25.6.0 arm64 arm
What issue are you seeing?
Recent completed turns disappear from an existing long-running local task's visible conversation history after restarting the desktop app. Read-only inspection confirms that multiple missing user messages and final assistant replies still exist in the task's original local rollout JSONL.
First noticed on September 9, 2026; still reproducible on the affected task on September 10 (Asia/Shanghai).
The UI's history stops at a completed turn from September 8. Newly exchanged messages may be visible while working, but after restart the history returns to the same old endpoint. The app's available read_thread tool also returns September 8 as the newest completed turn, even though the raw rollout contains later messages.
This is a mismatch between raw stored messages and the history returned/displayed, not evidence that all missing messages were physically deleted.
What steps can reproduce the bug?
There is no deterministic minimal reproduction on a new task yet. The observed sequence on the affected task is:
- Continue working in an existing long-running local task across multiple days.
- Complete additional user/assistant turns on September 9.
- Notice that intermediate recent turns are absent from the visible history.
- Restart the desktop app and reopen the same task.
- Observe that even the recent discussion about the missing history no longer appears; history again ends at the September 8 checkpoint.
- Read the task through
read_thread: its newest-first results also stop at that checkpoint. - Inspect the original session JSONL read-only: September 9 user messages and final assistant replies are still present.
Sanitized examples of retained raw records:
- September 9, 05:57:23 UTC: user message.
- September 9, 06:12:53 UTC: final assistant reply.
- September 9, 06:45:52 UTC: user message.
- September 9, 06:47:21 UTC: final assistant reply.
No message text is included here.
In-app feedback/session ID supplied after reporting the problem:
019fb5de-a749-7dd1-a446-bf6c86928ed7
This is also the affected task ID; it is not claimed to be a separate support ticket number.
What is the expected behavior?
Reopening a task should display its retained completed turns. If history reconstruction fails, the app should show an actionable error rather than silently presenting stale history.
Please advise on a supported, non-destructive recovery or history-rebuild procedure that preserves the original transcript.
Additional information
- Restarting did not restore the missing history.
- Inspection was read-only; no session/database editing, cache reset, task deletion, or repair reinstall has been performed as part of this investigation.
- No raw transcript, project files, screenshots, account credentials, or application logs are attached publicly.
- The root cause has not been established; this report does not assert an ordinal mismatch, index corruption, or Remote Control involvement.
- Potentially related: [Windows][Desktop 26.831.2377.0] Thread history projection stuck after Remote Control session: expected ordinal 6758, got 6757 #42197 and [Windows Desktop + Mobile Remote] history reconstructs to the same stale checkpoint previously seen on Remote; intermediate days disappear after restart #43434 (Windows/remote-session stale-history reports). Codex Desktop: historical turns unavailable although task remains visible #44015 reports older history being unavailable, while this case loses newer turns and returns a stale endpoint. Please link/close as a duplicate if the maintainers confirm the same underlying issue.
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
heznpc commentedon Sep 10, 2026
Additional occurrence on macOS 27.0 / Apple Silicon, with the same desktop build as this report. Follow-up investigation now identifies an ordinal regression and a stalled history projection, and includes a synthetic reproduction plus a comparison against the fixed runtime.
Verified environment and impact
ChatGPT.app/com.openai.codex, 26.903.71938, build 8576.--version.read_threadresults remain stuck on a turn started at 15:11:34, markedinProgress,completedAt: null, with 22 items.The user first noticed the missing history after an app update around 17:00. The persisted ordinal regression occurred earlier, at 15:32, so the update must not be assumed to have caused the original corruption. The exact UI action preceding the 21:06 recurrence was not captured.
Actual failing boundary, checked read-only
This task has segmented/paginated history. The logical task ID and the physical segment referenced by the projection error differ; inspecting only the logical task's projection row would give the wrong checkpoint. Identifiers are omitted here.
The active segment is valid JSONL. It contains this sequence:
event_msg/token_count(primaryused_percentis a JSON decimal)event_msg/thread_settings_appliedThe physical segment's
thread_history_projection_stateis frozen at:Reading precisely at that byte offset finds the second record above, with ordinal 1577. The same segment's latest
thread_turnsrow starts at rollout ordinal 1488 / 15:11:34 and remainsinProgress, matching the stale turn returned by the app.The local log database repeatedly contains this error, with the identifier redacted:
This connects the persisted duplicate, the stalled projection checkpoint, and the stale API result. It matches the ordinal-regression mechanism tracked in #35746 / #43142 rather than establishing a separate UI-only defect.
Minimal synthetic reproduction and fixed-version comparison
Tested two fresh, isolated three-record fixtures on this Mac. Neither uses a real task, transcript, credentials, or model request.
session_meta, ordinal 1 syntheticagent_message, and ordinal 2token_count.rate_limits.primary.used_percentto0for the control or0.0for the failing case. Everything else is identical apart from generated fixture IDs and directories.codex app-server --stdiowith a privateCODEX_HOME, disabled analytics, and a loopback-only model provider.initialize,initialized,thread/resume,thread/settings/update, andthread/unsubscribe; do not sendturn/start.Expected: the appended
thread_settings_applieduses ordinal 3 in both cases.Measured results:
used_percentJSON0[0, 1, 2, 3]0.0[0, 1, 2, 2]0[0, 1, 2, 3]0.0[0, 1, 2, 3]All RPC sequences succeeded, and the original three synthetic records were unchanged in all four cases. The
0.154.0binary was downloaded from the officialrust-v0.154.0Apple Silicon release asset, its SHA-256 was checked against the release metadata, and it was run separately without replacing the installed application.The source comparison agrees with these results:
ordinal_state_for_rolloutusesscan_next::<RolloutLine>()inrust-v0.153.4andscan_next_rollout_line()inrust-v0.154.0. #42378 routes readers through the canonical decoder; #42369 adds resilience when materialization encounters invalid/discontinuous records. Both appear in the 0.154.0 release.Reproduction script
Save the following as
reproduce.py. Run with Python 3, an absolute executable path, and a new output directory:The script refuses to reuse an existing output directory and retains the synthetic fixtures, stderr, and JSON results there. No inference call is made.
Self-contained Python 3 script tested against both runtimes
Remaining recovery question
The initiating bug is now reproduced on the installed runtime and absent in the tested 0.154.0 synthetic cases. This is not yet an end-to-end recovery test of the original segmented task. No original JSONL or SQLite records were edited, renumbered, reset, or deleted, and the desktop app still bundles 0.153.4.
Please confirm the first macOS desktop build shipping the applicable fixes and the supported path for an already-affected segmented task to catch up past this exact duplicate boundary. In particular, confirm whether reopening under the updated runtime should recover it automatically and how successful recovery should be verified.
The missing conversation contains recent decisions and completion reports; preserving raw messages alone does not restore usability in the app. The public evidence above contains no private conversation text, project names or source, real task IDs, personal filesystem paths, credentials, screenshots, or raw production logs.
webdesigns36 commentedon Sep 10, 2026
Desktop history stops at duplicate ordinal; 0.153.4 decimal fixture reproduces, 0.154.0 passes
Environment: Apple Silicon M1, 8 GB RAM, macOS. Codex desktop 26.903.71938, build 8576; bundled engine reports
codex-cli 0.153.4. The desktop had recently been updated, but the bundled engine version remained 0.153.4.User-visible symptom
An existing task displays older history after reopening, while later user/assistant records remain in its JSONL file and a newly generated reply accurately recalls the later context. This distinction matters: stale displayed/indexed history is not equivalent to complete loss of model-visible context.
The local index repeatedly reports
expected ordinal 48246, got 48245and stops at byte offset 632857751. Immediately before the duplicate is a token-count record with nested decimal literalsused_percent: 0.0; the next record isthread_settings_applied, reusing ordinal 48245.Independent synthetic reproduction
Use a separate temporary data root, an empty workspace, an offline dummy provider, no authentication, and OS-enforced network denial. Do not use a real task.
token_countwithinfo: nulland a primary rate limit containingused_percent: 0.0,window_minutes: 5, and a valid integer reset timestamp.capabilities.experimentalApi: true, sendinitialized, resume the synthetic fixture withexcludeTurns: true, update its reasoning effort tolow, and unsubscribe. Do not sendturn/start.thread_settings_appliedordinal. Repeat with integer0instead of decimal0.0, and with both engine versions.Measured results:
All three original fixture lines remained unchanged in each run. The official Apple Silicon 0.154.0 archive SHA-256 was verified against release metadata before execution.
Related upstream work
Existing-data recovery remains unverified
An isolated test with byte-identical copies of the affected task and its ancestor chain could read metadata. A fresh index did not populate just by listing turns. A normal open of a disposable writable recorder exceeded a conservative memory stop threshold on the 8 GB Mac and was deliberately terminated at about 1.09 GB sampled process RSS. This does not demonstrate that the new engine cannot recover it, but it also does not demonstrate safe full recovery. No live index reset, ordinal rewrite, migration, transcript deletion, or app-binary replacement was attempted.
Questions for maintainers
This report omits private task text, account details, local usernames, client names, transcript files and credentials. No private history is attached.
DannyWolfofTech commentedon Sep 12, 2026
Adding another independently observed occurrence on the same desktop build, reported with the affected user's permission.
Environment
Observed evidence
read_threadrequest withturnLimit: 5returned only one old setup turn, markedinProgress, withcompletedAt: null.nextCursor: nullandhasMore: false, despite substantial later conversation.response_itemmessage records, including the messages reporting the disappearance.This establishes a mismatch between persisted content and the history exposed by retrieval/display in this case; it does not establish permanent data loss. We have not independently checked the ordinal/projection mechanism described in the other comments.
No transcript/database edits, cache resets, or binary replacements were performed. Private conversation text, images, account details, local paths, and task identifiers are intentionally omitted.
Please advise which desktop release contains the fix and the supported way to recover affected existing task history without modifying its original rollout.