[Windows] Project conversation disappeared after OS shutdown during a long-running task

Open 💬 2 comments Opened Aug 8, 2026 by Swordslience
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.805.11740

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 x64

What issue are you seeing?

A project conversation/thread disappeared from the Codex Windows app after Windows shut down while a long-running Codex task was still active.

What happened

I started a long-running coding task in an existing Codex project conversation.

I expected the task to finish within about one hour, so Windows was scheduled to shut down at approximately 02:51 local time.

However, the Codex task was still running when Windows shut down.

After starting Windows and the Codex app again the next morning, that specific project conversation/thread was completely missing from the project history/sidebar.

Other conversations in the same project were still present.

Important observation

The underlying project files and code changes were preserved.

Only the Codex conversation/thread appears to have disappeared.

I did NOT:

  • reset the repository
  • clean the repository
  • reinstall Codex
  • delete Codex data
  • manually modify Codex state files

After noticing the missing thread, I inspected:

%USERPROFILE%\.codex

My current Codex installation does not contain a sessions or archived_sessions directory.

The directory does contain local state files including:

  • state_5.sqlite
  • state_5.sqlite-wal
  • goals_1.sqlite
  • logs_2.sqlite
  • .codex-global-state.json
  • session_index.jsonl

I have not modified or deleted these files.

Expected behavior

If Windows shuts down while a Codex task is running, the running task may be interrupted, but the existing conversation history up to the last successfully persisted message should remain available after restarting Codex.

Actual behavior

The entire conversation/thread disappeared from the Codex UI after restart, while the project files and changes created during that work remained intact.

Possible trigger

The issue occurred immediately after an OS shutdown interrupted an active long-running Codex task.

I cannot confirm that the shutdown caused the issue, but it may be related to session/thread persistence during application or OS shutdown.

Impact

The code changes were not lost, so development can continue, but the complete Codex conversation context/history for that work is no longer accessible from the app.

What steps can reproduce the bug?

  1. Open an existing project conversation in the Codex Windows app.
  2. Start a long-running Codex task.
  3. Allow Windows to shut down while the Codex task is still running.
  4. Start Windows and Codex again.
  5. Check the project conversation history/sidebar.

Observed result: the active conversation/thread may be missing after restart.

What is the expected behavior?

The conversation history that had already been persisted before shutdown should remain available after restarting Codex, even if the active task itself was interrupted.

Additional information

The entire working conversation/thread disappeared from the Codex project history after restart, while the underlying project files and code changes remained intact.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 19 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #37566

Powered by Codex Action

habaneraa · 1 day ago

Same issue. Seems just a lost of GUI state