Skip to content

[Windows Desktop + Mobile Remote] history reconstructs to the same stale checkpoint previously seen on Remote; intermediate days disappear after restart #43434

Open

Description

@evilsson12345-dot

Summary

A long-running local Codex Desktop thread on Windows has now shown a cross-device history/reconstruction failure with a particularly suspicious timeline:

  • Codex Mobile Remote first rolled back to an older checkpoint while the Windows Desktop thread continued normally with newer history.
  • The Windows machine was later fully rebooted, and Codex Desktop successfully cold-restored the complete newer conversation history beyond that checkpoint.
  • Several days later, multiple local Codex conversations began failing to reconstruct in Desktop.
  • After fully quitting and restarting Codex Desktop, the most important thread reopened with approximately a week of intermediate conversation/tool history missing, while the newest active turn was still visible.
  • The older visible history now stops at the same checkpoint that Mobile Remote had previously rolled back to.

This report intentionally does not claim that the underlying rollout data has been physically deleted. A read-only local forensic inspection has not yet been completed. The purpose of this report is to preserve the observed timeline before attempting any repair.

Environment

  • Product: Codex Desktop + Codex Mobile Remote
  • Desktop OS: Windows
  • Subscription: ChatGPT Pro
  • Desktop app / bundled Codex version: not yet captured
  • Incident date: 2026-09-07
  • Timezone of reporter: Asia/Bangkok (UTC+07:00)
  • The affected Desktop machine is physically located in Beijing and was observed remotely by video call during the incident.

Observed timeline

~September 2, 2026 — Mobile Remote rollback

A long-running local Windows Codex Desktop thread continued executing normally.

On the iPhone Codex Remote view, later USER / TOOL / FINAL history had already been visible. While Remote remained in use, its displayed conversation later rolled back to an older checkpoint (referred to below as checkpoint X).

At that time:

  • Windows Desktop did not roll back.
  • The Desktop thread continued forward.
  • Later history remained visible on Desktop.

September 3, 2026 — full Windows reboot proves later history was recoverable after cold start

The Windows PC was fully rebooted for an unrelated Docker startup problem.

This was a real machine reboot, not merely a renderer refresh or Codex window reopen.

After reboot:

  • Codex Desktop was started again.
  • Docker was started again.
  • The same important Codex thread reopened normally.
  • The conversation history beyond checkpoint X was still present and usable.
  • Work continued for several more days.

This appears important because it rules out a simple explanation where Desktop only appeared correct because newer history existed solely in process memory and had never survived a cold restart.

September 7, 2026 — Desktop reconstruction failure

Around early afternoon, Mobile Remote again stopped updating / lost connection to the Beijing Desktop session.

The Windows Desktop screen was inspected by live video call. The active Codex task appeared visually unchanged for several hours; the bottom-most visible status/output line had not changed.

To determine whether only that task was stuck, several other local Codex projects/conversations were opened.

At that point, multiple different conversations showed the same failure pattern:

  • A red warning repeatedly appeared at the top of the window.
  • In the Chinese UI the warning was observed as approximately “无法重建会话” (roughly “unable to reconstruct conversation”).
  • The warning appeared briefly, disappeared, and immediately reappeared in a loop.
  • The center of the window showed a rename-conversation UI.
  • Choosing either save or cancel did not make the affected conversation content render normally.
  • The same general behavior occurred across multiple local Codex conversations, not only the important thread.

Because the failure already affected multiple conversations, no repair/reset/reindex operation was attempted.

Codex Desktop was then fully exited from the Windows system tray and started again.

After the September 7 restart

The important thread could be opened again, but its reconstructed history was abnormal:

  • The newest active turn was still visible. That turn involved Codex obtaining a task from a GPT conversation and beginning execution.
  • Above that newest turn, approximately a week of intermediate conversation / tool / result history was no longer visible.
  • The older visible history stopped at exactly the same checkpoint X that Mobile Remote had previously rolled back to days earlier.

Observed shape:

Before:
checkpoint X
  -> several days / roughly a week of later conversation, tools, results
  -> newest active turn

After restart:
checkpoint X
  -> [intermediate history not visible]
  -> newest active turn still visible

The exact local persistence state has not yet been inspected, so this report does not assume whether the missing middle section is absent from the canonical rollout, present but not projected, or associated with another lineage/branch.

Why the timeline seems significant

The September 3 full Windows reboot successfully restored all then-current history beyond checkpoint X.

Therefore, a simple model such as:

“newer history only survived in app memory until the first restart”

is inconsistent with the observed timeline.

Likewise, the fact that Desktop on September 7 reconstructed to the same older checkpoint previously seen on Mobile Remote seems worth investigating as a possible shared checkpoint / lineage / projection / resume-state boundary rather than random file truncation.

This is only an observation, not a claimed root cause.

Steps to reproduce

There is not yet a deterministic minimal reproduction. The observed sequence was:

  1. Maintain a long-running local Codex Desktop thread on Windows for multiple days.
  2. Use Codex Mobile Remote with that Desktop session.
  3. Observe Mobile Remote displaying newer turns and later reverting to an older checkpoint X while Desktop remains current.
  4. Fully reboot Windows on a later day.
  5. Reopen Codex Desktop and confirm the same thread still restores the complete newer history beyond X.
  6. Continue working in the same thread for several more days.
  7. Later encounter a state where multiple Desktop conversations fail to reconstruct and repeatedly show a conversation reconstruction error.
  8. Fully quit and restart Codex Desktop.
  9. Reopen the important thread.
  10. Observe that intermediate days of visible history are missing, while the reconstructed older history stops at the same checkpoint X previously seen on Mobile Remote and the newest active turn may still be visible.

Expected behavior

  • A local Desktop thread that has durably survived a full Windows reboot should continue to reconstruct all supported later conversation history on subsequent restarts.
  • Mobile Remote should not regress to an older conversation state after newer turns have already been displayed.
  • Desktop and Mobile Remote should not independently reconstruct the same thread to a stale historical checkpoint while later durable work exists.
  • If conversation reconstruction cannot complete, the app should report a precise actionable error and must not silently present a stale partial history as authoritative.
  • There should be a supported, non-destructive way to verify/rebuild the derived history state from the canonical local rollout when possible.

Current handling / evidence preservation

No destructive repair has been attempted after the incident:

  • no .codex deletion
  • no state database deletion
  • no cache reset
  • no forced reindex
  • no thread rollback/revert
  • no archive/delete operation
  • no reinstall/update performed specifically to repair this incident
  • no raw transcript or private project data uploaded publicly

The next planned step is a read-only forensic preservation and comparison of the local Codex state (rollout/session files, history/state databases, and logs) to determine whether the missing intermediate history still exists in canonical local records and where reconstruction diverges.

Sanitized metadata, relevant event windows, hashes, projection cursor information, and log excerpts can be added if maintainers request them or once the read-only inspection is complete.

Related reports

Potentially related, but this report adds the cross-device same-checkpoint behavior and the September 3 successful full cold reboot before the later failure:

I am not claiming these have the same root cause; they are listed because the visible failure family is similar.

Activity

  1. added
    bug
    app
    windows-os
    session
    on Sep 7, 2026
  2. evilsson12345-dot commented on Sep 7, 2026

    @evilsson12345-dot
    Author

    Read-only forensic update from the affected Windows machine

    I have now inspected the affected thread's local persistence state read-only while leaving the active Codex task and project workspace untouched.

    Confirmed thread / runtime metadata

    • Affected long-running thread: 01a052a1-b60c-7c51-89c3-816011d1a5df
    • History mode: paginated
    • Thread-recorded Codex CLI version: 0.150.0-alpha.8
    • Current Desktop app-server is still running; no Stop/restart/revert/reindex/database mutation was performed during this inspection.

    Critical projection / rollout mismatch

    In thread_history_1.sqlite, the affected thread's thread_history_projection_state currently contains:

    next_rollout_byte_offset = 27340014
    next_rollout_ordinal     = 2240
    

    Reading the canonical rollout JSONL at exactly byte offset 27,340,014 produces:

    2026-08-31T21:28:06.274Z  event_msg      ordinal 2239  thread_settings_applied
    2026-08-31T21:28:06.290Z  event_msg      ordinal 2240  task_started
    2026-08-31T21:28:08.000Z  response_item  ordinal 2241  message
    2026-08-31T21:28:08.001Z  response_item  ordinal 2242  message
    2026-08-31T21:28:08.016Z  world_state    ordinal 2243
    2026-08-31T21:28:08.031Z  turn_context   ordinal 2244
    ...
    

    So the persisted projection cursor says the next expected ordinal is 2240, but the persisted byte offset points to a complete record whose ordinal is 2239. The following record is ordinal 2240.

    This is a directly observed off-by-one boundary inconsistency. It is not yet proof of the code path that originally created it.

    Later history is still present in the canonical rollout

    The canonical rollout file is currently approximately 309 MB and continues far beyond the stale projection boundary.

    The most recent sampled records at the tail were:

    2026-09-07T12:03:18.763Z  response_item       ordinal 46363  custom_tool_call_output
    2026-09-07T12:03:18.871Z  event_msg           ordinal 46364  token_count
    ...
    2026-09-07T12:03:33.111Z  response_item       ordinal 46372  custom_tool_call_output
    2026-09-07T12:03:33.216Z  event_msg           ordinal 46373  token_count
    2026-09-07T12:03:38.660Z  event_msg           ordinal 46374  token_count
    

    This confirms that the raw rollout still contains persisted activity from September 7, while the history projection remains anchored at an August 31 boundary.

    Therefore, for this affected thread, the currently observed Desktop rollback is not explained by physical deletion of all later rollout records. The durable source history and the projected/reconstructed history have diverged.

    Relation to existing reports

    This local evidence now looks particularly close to the boundary pattern described in #43182 and the Windows projection-stall family (#41079 / #42197), although I am not claiming identical root cause yet.

    The especially unusual part of this incident remains the cross-device timeline documented in the original report: Mobile Remote previously regressed to the same stale visible checkpoint, a later full Windows reboot still successfully restored the complete history, and only days afterward Desktop reconstruction also regressed.

    No raw transcript text, project source, credentials, or proprietary workspace files were read or attached as part of this update.

  3. rutledmj commented on Sep 8, 2026

    @rutledmj

    Independent reproduction observed on September 8, 2026.

    Environment

    • Host: Windows 11 Pro, version 10.0.26200 (build 26200), x64
    • Codex Desktop package: OpenAI.Codex 26.901.5280.0
    • Client: ChatGPT on iPhone using Codex Remote (exact iOS/app build not captured)
    • Same Remote host and same long-running thread throughout

    Reproduction and evidence

    1. Open the existing Codex Remote thread on iPhone.
    2. Confirm that the newest user and assistant messages are visible.
    3. Restart the ChatGPT iOS app.
    4. Reopen the same Remote host and thread.
    5. The thread now displays a substantially older in-progress checkpoint (including old compaction/tool activity) instead of the newest messages.

    Two screenshots taken one minute apart capture the transition:

    • 12:25, before restart: the latest user message and assistant response are visible.
    • 12:26, after restart: the view has regressed to an older checkpoint.

    A read-only check of the Windows host's local rollout JSONL confirms that the newer turns remain present after the mobile rollback. Both screenshots also show the same thread title and Windows host. This points to stale iOS Remote hydration/projection/cache selection rather than deletion from the canonical local transcript or accidentally opening another thread.

    Important distinction

    The latest content had already reached and rendered on the iPhone before restart. This is therefore different from a live update that never arrived: restarting/reopening the iOS app causes (or exposes) the regression to an older snapshot.

    Expected

    After an app restart, Codex Remote should hydrate the latest persisted thread revision.

    Actual

    The same thread reloads from an older checkpoint even though newer turns remain durably stored on the Windows host.

    No raw transcript, local paths, host name, thread ID, or private project data are included publicly. The before/after screenshots can be supplied privately if needed.

  4. punk8ntdead commented on Sep 11, 2026

    @punk8ntdead

    Have same problem. Mutliple (local) chats on Windows Desktop app are all pegged to messages 22 hours ago. Everything inbetween is gone and chats will not retain new memory after an app restart.

    Chatbot summary: "The app’s visible timeline is failing, but the local append-only record is still present."

    Environment:
    Host: Windows 11 Pro, version 10.0.26200 (build 26200), x64
    Desktop package: 26.909.12148
    Client: ChatGPT on Desktop App
    Local host and same long-running threads throughout
    Submitted Ticket: no-active-thread-01a08edf-7972-71f3-b9ee-f4e6cd845cb3

  5. vbzgn2rc98-ctrl commented on Sep 11, 2026

    @vbzgn2rc98-ctrl

    Additional read-only projection liveness evidence (2026-09-11)

    A fresh read-only inspection of an affected long-running Windows thread shows that the canonical rollout is still being appended while the thread-specific paginated history projection remains stationary.

    Environment:

    • Windows Desktop
    • codex-cli 0.154.0
    • No database mutation, forced reindex, thread revert, archive/delete, or cache reset was performed before or during these samples.
    • Thread ID, local paths, prompt text, tool output, and project data are omitted.

    Repeated samples

    UTC sample time rollout bytes projection offset next ordinal projected item count
    2026-09-11 07:32:54 464,363,943 396,407,447 27,802 8,723
    2026-09-11 07:33:17 464,376,521 396,407,447 27,802 8,723
    2026-09-11 07:38:41 464,570,247 396,407,447 27,802 8,723
    2026-09-11 07:48:42 466,060,281 396,407,447 27,802 8,723

    Across approximately 16 minutes:

    • canonical rollout growth: +1,696,338 bytes
    • projection offset movement: 0 bytes
    • projection ordinal movement: 0
    • projected item-count movement: 0
    • current byte gap: 69,652,834 bytes

    At the frozen projection boundary, the latest projected item timestamp is 2026-09-10T23:35:12.650Z. The first complete canonical record after the cursor is timestamped 2026-09-10T23:37:18.664Z. A direct count at an earlier sample found more than 6,100 complete JSONL records after the cursor.

    The thread_history_1.sqlite-wal file continued receiving writes during observation, but this thread's row in thread_history_projection_state did not change. This distinguishes general database/WAL activity from successful projection progress for the affected thread.

    The visible Desktop session can continue showing current live activity, but reopening or hydrating from persisted history may still expose the stale projection. This is consistent with the apparent “current while live, stale after reload/remote hydration” behavior described above.

    A Windows app repair/reboot is planned next. I will add a follow-up stating whether the same projection cursor advances afterward; no destructive recovery is being attempted.

    No raw transcript content, credentials, user profile paths, thread identifiers, or private workspace data are included in this update.

  6. jmhan9417 commented on Sep 12, 2026

    @jmhan9417

    Independent macOS reproduction: Remote was newer than Desktop, then Remote rolled back to the same checkpoint

    I am seeing a closely related failure on a macOS host using Codex Desktop + Remote on September 11, 2026.

    Observed sequence

    1. I had a long-running Codex thread on my Mac.
    2. Codex Desktop became stale and stopped visually advancing at a checkpoint where the assistant reported that milestone M1d was complete and the next phase had not started.
    3. Remote showed later conversation/work beyond that checkpoint and was clearly more current than Desktop.
    4. I returned home intending to continue on Desktop, but Desktop was still stuck at the older M1d checkpoint.
    5. Shortly afterward, Remote itself regressed to the same M1d checkpoint that Desktop had been showing.

    So the visible sequence was approximately:

    Desktop:  checkpoint X (stale)
    Remote:   checkpoint X -> later work (newer)
    
    then later:
    Desktop:  checkpoint X
    Remote:   checkpoint X  <-- regressed
    

    Read-only forensic evidence from the local host

    I performed a read-only inspection of the local rollout for the affected thread. I am intentionally not publishing the thread ID or private project content.

    The local rollout corresponding to the visible checkpoint has these properties:

    • Final M1d assistant completion appears at the very end of the file.
    • The final records are the M1d assistant message followed by task_complete.
    • File length: 3,582 JSONL lines.
    • Final task_complete record is line 3,582 (last ordinal observed: 3581).
    • File modified: 2026-09-11 13:43:16 PDT.
    • File size: 19,772,317 bytes.
    • There are no records after the M1d checkpoint in this rollout.

    This is different from several projection-stall reports where the newer conversation is still present later in the same canonical JSONL but the UI/read projection stops earlier.

    In this case, the newer work was visibly present on Remote before the Remote rollback, but the local rollout I identified for the thread ends exactly at checkpoint X.

    I am not claiming the later work is permanently deleted. Plausible possibilities I am still checking include:

    • the Remote continuation was persisted under a different rollout / lineage / branch;
    • the Remote client temporarily displayed a continuation that was not durably appended to this local rollout;
    • thread reconstruction later selected an older canonical lineage;
    • a related persistence/synchronization failure caused both clients to converge back to the last durable local checkpoint.

    Preservation / safety steps

    Since observing the rollback I have avoided destructive repair and have not intentionally continued the affected stale thread.

    I have not:

    • deleted .codex state;
    • cleared caches or state databases;
    • reindexed/reverted the thread;
    • archived/deleted the session;
    • reinstalled Codex as a repair attempt.

    I also made a read-only backup of the affected rollout before further investigation.

    Next read-only checks are:

    • searching for the same thread ID in other rollout files;
    • identifying other rollouts modified after the 13:43:16 PDT checkpoint;
    • inspecting Git reflog / commits / working tree to reconstruct how far the actual work progressed.

    Why this may be useful

    This seems especially relevant to the cross-device same-checkpoint behavior in this issue because the Remote view was demonstrably ahead of Desktop, then later rolled back to the exact same checkpoint.

    It also appears related to #43537 (Remote completion leaves other clients stale), but this case goes one step further: the previously newer Remote history itself later regressed.

    If maintainers want additional diagnostics, I can preserve and provide sanitized metadata only (rollout timestamps/ordinals, file hashes, app/server version, relevant state/projection rows, and logs) without exposing private repository or conversation content.

    It would be useful to know whether Remote continuations are expected to use a separate rollout/lineage from the host thread, and which local state/log files should be captured before any restart or repair to help determine where the post-checkpoint Remote history went.

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

    appbugremotesessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions