Skip to content

Local Codex Desktop sessions disappear from sidebar after restart (Windows App) #13713

Closed as duplicate

Description

@panadenbaer

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

26.305.950.0

What subscription do you have?

Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0

What issue are you seeing?

Local Codex Desktop sessions are written to disk correctly but are not shown in the Codex Windows app after restarting the application.

The sessions remain present in the filesystem, but the sidebar only displays Cloud tasks.

What steps can reproduce the bug?

  1. Start the Codex Windows app.
  2. Create a new local session (Codex Desktop).
  3. Confirm that the session appears in the sidebar.
  4. Restart the Codex Windows app.
  5. After restart, the local session is no longer visible in the sidebar.

What is the expected behavior?

Local Codex Desktop sessions should persist and appear in the sidebar after restarting the application.

Additional information

  • Local sessions disappear from the sidebar after restart.
  • Only Cloud tasks are displayed.
  • Local session files still exist on disk.

Session files remain present in:
%USERPROFILE%.codex\sessions

Example:

rollout-2026-03-06T09-04-26-019cc22d-2cb7-7032-9762-64869a590f80.jsonl

The session metadata inside the file appears valid:
{
"type": "session_meta",
"originator": "Codex Desktop",
"source": "vscode"
}

Additional Notes

  • The issue appears similar to previously reported desktop issues where the UI ignores local sessions and only displays cloud threads (MacOS, but already fixed)
  • Sessions are not lost; they remain readable in the .codex/sessions directory.
  • This behavior occurs specifically in the Codex Windows Desktop App after restart.

Possible Related Issues
#10547
#10640

Activity

  1. added
    appIssues related to the Codex desktop app
    on Mar 6, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    on Mar 6, 2026
  3. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor
  4. klinki commented on Mar 16, 2026

    @klinki

    Yeah this just happened to me, it got me a bit worried - luckily it seems data should be still in .codex directory, just the desktop app ignores them for some reason :(

    Do you know if there is any workaround to get them back until they make an official fix?

  5. panadenbaer commented on Mar 16, 2026

    @panadenbaer
    Author
  6. klinki commented on Mar 17, 2026

    @klinki

    My issue was different after all. It was misconfigured CODEX_HOME - speckit changed that and I didn't notice. So luckily I have all data back :)

  7. Lukas-EyeC commented on Mar 18, 2026

    @Lukas-EyeC

    I have the same issue with Win 11

  8. panadenbaer commented on Mar 18, 2026

    @panadenbaer
    Author
  9. Lukas-EyeC commented on Mar 18, 2026

    @Lukas-EyeC

    No - local windows path. Only one of three threads are visibile in the UI - but the sessions are present in sessions folder, they are present int the session_index.jsonl and also seem to exist in state_5.sqlite (at least mentioned - I just looked with a text editor into it). Codex 26.313.451514

  10. panadenbaer commented on Mar 18, 2026

    @panadenbaer
    Author
  11. SproutSeeds commented on Mar 18, 2026

    @SproutSeeds

    I read through the current thread more closely, and the unresolved Windows report looks narrower than the earlier CODEX_HOME case.

    • session_index.jsonl is not what decides sidebar visibility directly; thread/list goes through RolloutRecorder::list_threads(...) and only uses the session index for thread names.
    • That list path falls back to filesystem scanning whenever the SQLite backfill is not complete yet.
    • In the fallback path, codex-rs/core/src/rollout/list.rs was requiring both session metadata and a persisted user_message event before returning a thread item.
    • I reproduced the partial-restore shape locally with a focused codex-core test: one normal thread plus two metadata-only session rollouts yielded only the normal thread on the fallback path. Relaxing that filter to require session metadata only brought all three back.
    • Branch-backed patch and regression test: https://github.com/SproutSeeds/codex/tree/scratch/issue-13713-thread-list-fallback

    So the narrow claim I can support is: there is a real fallback-listing bug here for stored sessions that exist on disk but have not yet persisted a qualifying user-message event. That seems compatible with "only one of three threads is visible after restart."

    If anyone on Windows can confirm whether the missing threads were created or resumed before their first typed prompt was persisted, that would help confirm this is the same slice.

  12. spl1974 commented on Mar 18, 2026

    @spl1974

    I have the same problem. Files stored on network folder. #15052

  13. panadenbaer commented on Mar 24, 2026

    @panadenbaer
    Author

    I found a workaround that fixed missing local sessions in the Codex Windows app for me:

    Delete the following files in your .codex folder:

    • session_index.jsonl
    • state_5.sqlite

    Then restart the Codex app.

    Notes:

    • Your sessions are NOT deleted (stored in .codex/sessions/*.jsonl)
    • This only forces a rebuild of the local index/cache
  14. marciocamello commented on Apr 1, 2026

    @marciocamello

    do it this and solve ok on windwows or similar for mac/linux

    setx CODEX_HOME 'C:\Users\your_user.codex'

  15. filasfermon commented on Jun 19, 2026

    @filasfermon

    I am experiencing the same issue on Windows 11.

    Feedback ID:
    019ec2a5-2b4c-7a72-999c-145bfdd16031

    The Codex Desktop sidebar and codex resume --all show only 4 threads, although codex doctor --json --all reports:

    • 11 active rollout files
    • 11 active database rows
    • 1 archived rollout file
    • 1 archived database row
    • 0 missing rows
    • 0 stale rows
    • 0 duplicate thread IDs
    • 0 scan errors

    At least one hidden thread can still be opened successfully with codex resume <SESSION_ID>, but it does not reappear in the Desktop sidebar afterward.

    Changing the sidebar to Chronological and checking Archived chats did not solve the issue.

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

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions