Codex Desktop on Windows no longer shows older chats after update
Open 💬 12 comments Opened May 17, 2026 by Explorersoft
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
In-app feedback ID: 019e3780-31aa-7b70-b26e-57b4f40e5b56
After updating Codex Desktop on Windows, many older chats disappeared from the sidebar/project views and are not found by in-app search.
The data still exists locally:
- ~/.codex/state_5.sqlite contains the missing threads
- ~/.codex/sessions contains the JSONL session files
- Threads are active, not archived
Examples:
- HealthAgents shows only 3 chats, but local state has 38 active threads for that cwd
- ZONE-koop shows only 2-3 chats, but local state has 19 active threads
- Restarting Codex and rebooting Windows did not fix it
Possible cause:
Some thread cwd values are stored as \\?\D:\... while project roots are D:\...
The UI/sidebar/search may not be normalizing Windows extended-length paths consistently.
Environment:
- Windows
- Codex Desktop: OpenAI.Codex_26.513.4821.0_x64__2p2nqsd0c76g0
- App/server version in sessions: 0.131.0-alpha.9
12 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Clarification: the affected cwd paths include Windows extended-length path prefixes like:
\\?\D:\HealthAgents\site
\\?\D:\SIS-ZONE\CodeX\koop
while the saved project roots appear as normal paths like:
D:\HealthAgents\site
D:\SIS-ZONE\CodeX\koop
I reviewed the suggested possible duplicates.
Related but not exact duplicates:
thread/goal/get/ resume behavior rather than sidebar/search visibility.My issue differs because the affected threads are not just failing to resume/open. Most of them are not surfaced in the sidebar/project views or in-app search at all, even though state_5.sqlite still contains active rows and the rollout JSONL files exist.
So this may share the same underlying history/path/index regression, but the user-facing failure mode here is listing/search visibility.
I am seeing the same class of bug on Windows, with current local diagnostics.
Environment:
0.131.0-alpha.9%USERPROFILE%\.codex\state_5.sqlite,%USERPROFILE%\.codex\session_index.jsonl,%USERPROFILE%\.codex\.codex-global-state.jsonUser-visible behavior:
No chatseven though they have unarchived local thread rows.Show all chats,Organize -> Chronological list, and projectShow moredid not restore the missing project histories.Read-only local evidence:
state_5.sqlitecontains many unarchived thread rows for projects that are missing or incomplete in the sidebar.cwdvalues are stored in both plain and Windows extended-length forms, e.g.C:\...and\\?\C:\....session_index.jsonlalso contains recent thread IDs that are not surfaced consistently by the Desktop project sidebar.Expected behavior:
No chatswhenstate_5.sqliteand session metadata still contain unarchived threads for that project/root.C:\...vs\\?\C:\...) before grouping threads by project.Actual behavior:
A screenshot from the affected sidebar shows multiple saved projects where some show
No chatsdespite local rows existing, while another active project shows only a recent subset. I cannot attach the screenshot through the connector used to post this comment, but it is available if helpful.This seems closely aligned with #18640, #20833, #21128, #21581, #22796, and this issue, but I wanted to add a current Windows +
0.131.0-alpha.9data point with project grouping/path-normalization evidence.I’m seeing a very similar issue on Windows Codex Desktop.
Symptom:
Local verification:
%USERPROFILE%\.codex\state_5.sqlitepassesPRAGMA integrity_check=ok.threadstable contains 133 rows.archived = 0for all 133 rows.threads.rollout_pathpoints to an existingrollout-*.jsonlfile.codex resume --allin Codex CLI shows the missing sessions correctly.rollout-*.jsonlfiles to Markdown recovered readable transcripts.Observed Desktop state:
.codex-global-state.jsonstill containselectron-saved-workspace-rootsfor the affected projects.project-orderonly contains a subset of projects.heartbeat-thread-permissions-by-idcontained only 7 thread ids, all belonging to currently visible sessions.Counts:
codex resume --all: yesThis looks like a Windows Desktop sidebar/project indexing or workspace mapping issue, not data loss. The CLI can still see and resume the sessions.
A built-in repair/reindex action from
state_5.sqlite+sessions/**/*.jsonlwould be very helpful.I ran into a similar Windows-side Codex Desktop update issue: older chats were still present locally, but the new UI/sidebar did not show them under the expected project.
I documented the recovery workflow I used here:
https://github.com/huajiexiewenfeng/codex-session-recovery
This is an unofficial workaround, not an upstream fix. It does a dry-run first, checks
session_index.jsonl,.codex-global-state.json, SQLitethreads.cwd, exactcwdmatching, and Windows\\?\path mismatches, then creates timestamped backups before any write and verifies the result afterward.It may help if the missing threads still exist in
state_5.sqliteandsessions/**/*.jsonl, but the Desktop app no longer associates them with the project after an update.I ran into the same general failure mode on macOS: Codex Desktop showed "No chats" for projects even though the local SQLite thread store still had active threads and
PRAGMA integrity_checkreturned OK.In my case, the strongest clue was that pinned chats were still visible. That made it possible to recover visibility by treating this as a sidebar/project index issue rather than data loss.
The workaround I used was:
thread-workspace-root-hintsfromthreads.cwdin~/.codex/state_5.sqlite;.codex-global-state.json;pinned-thread-idsas a fallback for important real project chats;I published a sanitized helper and recovery notes here:
https://github.com/Donkodio/codex-desktop-sidebar-recovery
The helper defaults to dry-run, creates backups before applying changes, and does not upload local data. No raw sessions, tokens,
.env, private keys, Telegram sessions, proxy credentials, or private chat dumps are included.Additional short update from my Windows case, building on the helpful recovery notes from @huajiexiewenfeng and @Donkodio:
What I tried first:
state_5.sqliteis OKrollout-*.jsonlfiles still existcodex resume --allshows the missing sessionshuajiexiewenfeng/codex-session-recovery\\?\cwd mismatches and rebuilt project/sidebar hints for affected projectssurface_codex_sidebar_threads.pyto make selected chats visible againNew observation:
After making some progress, I noticed that some previously visible chats suddenly disappeared from the Desktop sidebar again.
Then I archived some chats/projects that I currently do not need. Immediately afterward, other previously missing non-archived chats became visible again.
So this now looks like a Desktop sidebar visibility/surface limit rather than data loss. In my case, roughly 49 chats seem to be visible at the same time. When too many chats compete for the sidebar, some projects show “No chats” even though their sessions still exist and are resumable via CLI.
Practical workaround:
Archive chats/projects you do not currently need. This may make other missing non-archived chats visible again.
The “No chats” label is therefore misleading: it can mean “no chats currently surfaced in the sidebar”, not “no local chats exist”.
Is this intended behavior, or is it a bug?
Short Windows update from another reproduction of this issue.
A copied-app renderer workaround restored hidden project chats on Windows AppX
OpenAI.Codex_26.527.7698.0/codex-cli 0.136.0-alpha.2without editingstate_5.sqlite,session_index.jsonl, or rollout files.The workaround patches only a copied
app\resources\app.asar, notC:\Program Files\WindowsApps\OpenAI.Codex_*, and changes the initial sidebar refresh from the limited global recent slice to the existing all-thread pagination helper:Detailed Windows notes: https://github.com/openai/codex/issues/25500#issuecomment-4596553952
This is only an unsupported diagnostic workaround. It reinforces that the hidden chats are usually still local/readable, and that the real fix should be project-scoped pagination/loading by
cwdinstead of rendering each project from only the already-loaded global recent window.Affected on macOS, version 26.601.21317. All projects show "No chats" except ones opened fresh after the June 2 update. Data is confirmed intact in state_5.sqlite (486 active threads, all hints correct, session_index complete). Manually opening projects does not trigger re-indexing. This appears to be a sidebar rendering bug introduced in this release.
Hi everyone, I'm tracking the same Codex Desktop missing-thread/sidebar-history issue on macOS.
For those affected here: did you eventually get all hidden project threads back in Desktop? If yes, what exact method worked durably for you?
Examples I'm trying to distinguish:
codex resume --all <thread-id>rehydrated itsession_index.jsonl/state_5.sqlite/.codex-global-state.jsonfixed itlistAllThreadspatch fixed itIn my case, the missing project threads still exist in
~/.codex/sessionsandstate_5.sqlite, but Desktop does not hydrate them back into the project sidebar after restart. Any confirmed durable fix would help. Please do not share private session contents; sanitized method/results are enough.Adding a macOS datapoint after updating to the latest Desktop build.
Environment:
~/.codexRecovery status on my affected project:
state_5.sqlitestill has 251 active/non-archived rows with the expected project cwd.~/.codex/sessions.So my current result is: 26.608.12217 looks like a partial recovery, not a full recovery. It would still be very helpful to have an official full local reindex/recovery command that rebuilds sidebar/project history from durable local state.