You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local Codex Desktop sessions disappear from sidebar after restart (Windows App) #13713
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.
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?
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:
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
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.
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.
Activity
github-actions commentedon Mar 6, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
klinki commentedon Mar 16, 2026
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?
panadenbaer commentedon Mar 16, 2026
klinki commentedon Mar 17, 2026
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 :)
Lukas-EyeC commentedon Mar 18, 2026
I have the same issue with Win 11
panadenbaer commentedon Mar 18, 2026
Lukas-EyeC commentedon Mar 18, 2026
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
panadenbaer commentedon Mar 18, 2026
SproutSeeds commentedon Mar 18, 2026
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.
spl1974 commentedon Mar 18, 2026
I have the same problem. Files stored on network folder. #15052
panadenbaer commentedon Mar 24, 2026
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)marciocamello commentedon Apr 1, 2026
do it this and solve ok on windwows or similar for mac/linux
setx CODEX_HOME 'C:\Users\your_user.codex'
filasfermon commentedon Jun 19, 2026
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.