Local Codex Desktop sessions disappear from sidebar after restart (Windows App)
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?
- Start the Codex Windows app.
- Create a new local session (Codex Desktop).
- Confirm that the session appears in the sidebar.
- Restart the Codex Windows app.
- 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
https://github.com/openai/codex/issues/10547
https://github.com/openai/codex/issues/10640
13 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Yeah this just happened to me, it got me a bit worried - luckily it seems data should be still in
.codexdirectory, 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?
Hi,
not really.
My only workaround is to pin important chats. Then they will appear again
after restart.
David Klingenberg @.***> schrieb am Mo., 16. März 2026,
11:44:
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 :)
I have the same issue with Win 11
Is your project on the network path?
I have a feeling that's the problem.
Lukas @.***> schrieb am Mi., 18. März 2026, 07:19:
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
Damn.
yeah same issue at my side.
Hope there will be a fix soon
Lukas @.***> schrieb am Mi., 18. März 2026, 07:32:
I read through the current thread more closely, and the unresolved Windows report looks narrower than the earlier
CODEX_HOMEcase.session_index.jsonlis not what decides sidebar visibility directly;thread/listgoes throughRolloutRecorder::list_threads(...)and only uses the session index for thread names.codex-rs/core/src/rollout/list.rswas requiring both session metadata and a persisteduser_messageevent before returning a thread item.codex-coretest: 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.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.
I have the same problem. Files stored on network folder. https://github.com/openai/codex/issues/15052
I found a workaround that fixed missing local sessions in the Codex Windows app for me:
Delete the following files in your
.codexfolder:Then restart the Codex app.
Notes:
.codex/sessions/*.jsonl)do it this and solve ok on windwows or similar for mac/linux
setx CODEX_HOME 'C:\Users\your_user\.codex'
I am experiencing the same issue on Windows 11.
Feedback ID:
019ec2a5-2b4c-7a72-999c-145bfdd16031
The Codex Desktop sidebar and
codex resume --allshow only 4 threads, althoughcodex doctor --json --allreports: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.