Skip to content

[Bug] Windows app repeatedly loses recent conversation history while messages remain in the local JSONL #44362

Open

Description

@viqtflihcy

Description

Recent conversation turns repeatedly disappear from the Codex Windows desktop app. The conversation appears to revert to an earlier stage of the task.

The missing user messages and assistant replies are still present in the local session JSONL. However, reading the same thread through the app's read_thread tool returns older turns and omits the recent messages.

This has happened repeatedly within the same task.

Environment

  • OS: Windows
  • App version shown in the UI: Powered by Codex & OWL, version 26.903.61454
  • Task type: Local task in a Java repository
  • Session JSONL size: approximately 962 MB
  • Thread ID: 01a08541-da93-7c81-a3e5-0bd6067eff7a

Observed sequence

I do not yet have a minimal, deterministic reproduction. The observed sequence was:

  1. Continue working in an existing task with a large conversation history.
  2. Complete code fixes, local regression testing, and Git commits.
  3. Continue discussing deployment and on-site acceptance testing.
  4. Notice that several recent conversation turns are no longer displayed. The conversation has returned to an earlier discussion about reproducing and fixing the issue locally.
  5. Report the missing history and ask the assistant to verify the actual project status.
  6. After the assistant checks Git and test logs and replies, notice that the recent conversation has disappeared again.

Verified evidence

The following messages were found directly in the session JSONL as response_item / message records.

All times below are September 10, 2026, UTC+8:

Time Message retained in the local JSONL
08:49:02 User reports that several conversation turns are missing
08:49:31 User asks the assistant to rely on evidence rather than agree with them
08:50:40 Assistant provides a complete reply after checking Git commits and test logs
09:03:10 User reports that the recent conversation has disappeared again

However, calling read_thread for the same thread, without a pagination cursor and requesting the latest turns, returns page.order: newest_first but still lists an older September 9 turn as the latest completed turn.

That older user message asks what to do next and whether other affected business operations need testing. The assistant reply recommends first reproducing and fixing the issue locally—even though the subsequent fixes, tests, and discussion have already happened.

Older turn returned as the latest completed turn:
01a08551-066f-75b0-8bf0-ee17be5699dc

The recent messages listed above are absent from the returned history. This discrepancy was observed in two separate checks.

Expected behavior

The app and thread-history reader should include the latest persisted user messages and assistant replies in the correct order.

Actual behavior

  • Recent conversation turns repeatedly disappear from the displayed history.
  • The thread-history reader continues to return older turns.
  • The latest messages remain in the local session JSONL.
  • Task continuation also showed outdated progress assumptions, requiring Git and test-log checks to reconstruct the current state.

Impact

The conversation history cannot be relied on to track completed work, decisions, and next steps. Continuing the conversation does not prevent the issue from recurring.

Unknowns

  • I have not identified whether the issue is in rendering, caching, indexing, pagination, or session reconstruction.
  • I have not established whether the approximately 962 MB session size is related.
  • I have not tested whether restarting the app restores the missing history.
  • I do not yet have a reproduction using a small, new conversation.

The full JSONL contains private project information, so I am not attaching it publicly. I can provide redacted message records and thread-read results if needed.

Activity

  1. added
    bug
    app
    windows-os
    session
    on Sep 10, 2026
  2. Whitelaughter commented on Sep 11, 2026

    @Whitelaughter

    Possibly related reports, in case they help correlate the failure modes:

    #43276 — ordinary Chat conversations can exist in fresh account history but be absent from the desktop local catalogue after the Chat update subscription is unmounted.
    #44035 — Windows: newer conversation records remain persisted locally while read_thread exposes stale older history.
    #44362 — Windows: recent messages remain in the session JSONL while read_thread returns older turns as newest_first.
    #44409 — macOS: recent persisted records similarly exist while reopening/task reading exposes older history.

    I also posted independent Windows/web synchronization observations from our RETIS tests in #43276. Those tests distinguish Recents/sidebar visibility, explicit conversation search, persisted conversation state, and information actually retrievable by the assistant.

    These may not share one root cause, but the reports seem useful to compare because they independently show divergence between different representations/retrieval paths for conversation history.

  3. elvis-hao commented on Sep 13, 2026

    @elvis-hao

    I am seeing the same issue on the Windows Codex desktop app. The task remains visible with its title, but opening it shows missing or stale history. Recent user and assistant messages are absent from the UI while the original local JSONL rollout still contains the later messages, including the latest plan. The same behavior has occurred across multiple tasks, and the history/read API can return older content while the rollout retains newer content. This looks like a history projection, index, or cursor problem rather than deletion of the underlying rollout. Please investigate the Windows client/app-server history projection and provide a safe reindex or recovery path that does not require editing SQLite or raw rollout files.

  4. teohsinyee commented on Sep 15, 2026

    @teohsinyee

    Repro + working recovery on Windows

    I was able to reproduce this consistently on Windows with:

    • Codex Desktop: 26.908.70816
    • Codex CLI: 0.154.0

    Minimal repro

    1. Create a new conversation in Codex Desktop.
    2. Send two turns:
      • hi 1
      • assistant response
      • hi 2
      • assistant response
    3. Restart Codex Desktop.
    4. Reopen the conversation.

    Actual result

    After restart, only the first turn is visible:

    hi 1
    assistant response
    

    The second turn disappears from both Desktop and codex resume.

    However, the underlying rollout JSONL still contains the complete conversation, including the missing second turn.

    So in my case, this was not data loss. The canonical session data was still intact.

    Recovery that worked

    I fully closed Codex Desktop, backed up:

    ~/.codex/thread_history_1.sqlite
    

    Then I deleted only the affected thread's derived history rows from:

    thread_history_projection_state
    thread_items
    thread_turns
    

    using the affected thread_id.

    I did not modify or delete the rollout JSONL.

    After that, I ran:

    codex resume <thread-id>

    Codex CLI rebuilt the conversation from the existing rollout data and showed the full history again:

    hi 1
    assistant response
    
    hi 2
    assistant response
    

    After reopening Codex Desktop, the full conversation was restored there as well.

    Interestingly, several other previously truncated Desktop conversations also became visible again after this reprojection/reload.

    Conclusion

    In this case, the issue appears to be in the derived local thread-history/projection state after app restart, rather than in the canonical rollout/session data itself.

    It would be very useful to have a supported recovery operation such as:

    codex repair-history
    

    or a Desktop option like:

    Troubleshooting → Rebuild local conversation index
    

    so users do not need to modify SQLite manually.

  5. sunkaiyi1221-png commented on Sep 22, 2026

    @sunkaiyi1221-png

    Additional Windows recurrence on 26.915.4065.0

    This issue is still affecting another Windows Codex Desktop user on 2026-09-22.

    • Installed package version confirmed with Get-AppxPackage: 26.915.4065.0
    • Symptom: earlier dialogue content repeatedly stops appearing in the Codex conversation UI.
    • Impact: the user cannot reliably refer back to completed work or prior answers and must ask for full responses to be resent.
    • This is reported as a recurring, long-standing problem rather than a one-off display glitch.
    • No cache, SQLite database, or rollout files were deleted or modified during diagnosis.
    • No private conversation text or user-specific paths are included in this report.

    This confirms that the missing/stale history symptom still reproduces on a newer Windows build than the versions already documented in this thread. Please prioritize a durable fix and provide a supported recovery action such as rebuilding the derived conversation-history index without deleting canonical rollout data.

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

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions