Repository navigation
Windows Desktop: Sidebar shows No chats and no projects after update, but Search can still find/open existing chats #19290
Description
What version of the Codex App are you using?
Codex CLI bundled with the app reports:
codex-cli 0.124.0-alpha.2
The executable metadata reports:
FileVersion: 0.124.0-alpha.2ProductVersion: 0.124.0-alpha.2
I can provide the exact desktop app version from Help > About Codex if needed.
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Windows 11 x64
What issue are you seeing?
After the recent Codex Desktop update on Windows, the left sidebar no longer shows my chat history, pinned chats, local folders, or projects.
The sidebar shows:
ChatsNo chats
I also cannot open local folders/projects from the normal sidebar/project flow.
However, the chat data is not gone. Search still works:
- If I click Search, I can find the missing chats.
- I can open existing chats from Search.
- I tested one of the missing chats by sending a message saying
test. - The message was accepted and the chat continued.
- Even after sending that new message, the chat still did not appear under
Chatsin the left sidebar.
So this appears to be a sidebar/home/project listing problem, not total session data loss.
Local data still appears to exist on disk:
- The local Codex sessions directory contains 33
rollout-*.jsonlfiles. - The local Codex
session_index.jsonlexists and contains 60 indexed thread entries. - The index includes thread names updated on 2026-04-21, 2026-04-22, 2026-04-23, and 2026-04-24.
- The local Codex
state_5.sqliteexists and was recently updated.
Logs around startup show thread/list requests returning without an obvious request error, but the UI still renders an empty chat list. Logs also show this warning around the update/startup window:
[global-state] Failed to load global state errorMessage="Unterminated string in JSON at position 524288 (line 1 column 524289)"
What steps can reproduce the bug?
I do not have a clean deterministic repro yet. What happened:
- Use Codex Desktop on Windows with existing chat history, pinned chats, local folders, and projects.
- Install/restart after the recent Codex app update.
- Open Codex Desktop.
- Observe that the sidebar shows
Chats -> No chats, with pinned chats, local folders, and projects missing. - Click Search.
- Search can still find the missing chats.
- Open an existing chat from Search and send a new message.
- The chat remains absent from the left sidebar even after new activity.
What is the expected behavior?
Codex Desktop should continue showing existing chat history, pinned chats, local folders, and projects after an app update.
At minimum, if Search can still find and open a chat, that chat should also appear in the normal Chats sidebar list, especially after new activity in that chat.
Additional information
This may be related to prior history/session issues, but it seems broader than a single project timeline path mismatch:
- Related: Codex App: Working Threads Missing After Latest Update #10640
- Related: Windows Desktop: Project Timeline shows no history despite existing threads (path identity mismatch with OneDrive/GoodSync/junction/\\?\ prefix) #18253
The important part: this does not look like all local data was deleted. Existing chats remain discoverable and usable through Search. The failure appears specific to the sidebar/home/project listing and possibly pinned/project state.
Activity
github-actions commentedon Apr 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
constansino commentedon May 1, 2026
I hit what looks like the same sidebar/project-listing class of bug, but on a larger local history.
Observed on Windows Codex Desktop with hundreds of local sessions:
state_5.sqlitestill had 443 threads, 436 active..codex/sessions/.../rollout-*.jsonlfiles still existed.codex.exe app-serverprobing showedthread/listsupportsnextCursorpagination and returns more data across pages.This made the problem look like data loss, but the sessions were still on disk and still addressable by app-server. The failure was in the recent-thread/sidebar loading path.
I documented a local Windows-only workaround here:
https://github.com/constansino/codex-desktop-session-limit-patch
The workaround does not mutate
.codex/state_5.sqlite, does not reorderupdated_at, and does not rewrite rollout files. It keeps the official WindowsApps install untouched, copies the app resources into a separate local directory, and patches the copied frontend bundle so the initial recent-thread load followsnextCursorfor multiple pages. It also raises load-more/search page sizes and gives the patched window a separate title/userData path so it can coexist with the official app.I think the upstream fix should be one of:
This would avoid local repacking and make the behavior predictable for users with large local histories.
tonyabracadabra commentedon May 25, 2026
try this https://github.com/tonyabracadabra/codex-sidebar-project-repair
huajiexiewenfeng commentedon May 31, 2026
I hit a related local-history visibility issue after a Codex Desktop update and packaged the recovery workflow I used here:
https://github.com/huajiexiewenfeng/codex-session-recovery
This is an unofficial workaround, not an upstream fix. It is designed for cases where local session data still exists but the Desktop sidebar/project list cannot show it because local metadata, global project/sidebar state, SQLite
cwd, or exact path matching is stale after an update.The workflow dry-runs first, creates timestamped backups before writing, and verifies
missing_*counts andcwd_exact_match_riskafterward.Leilight commentedon Jul 22, 2026
Adding a Windows ARM64 data point on the new combined ChatGPT/Codex desktop build.
Environment
Symptoms
Workand showsProjects: No projectsandRecent: No tasks.Local evidence
state_5.sqlitepassesPRAGMA integrity_check(ok).hostId=local.thread/listrequests succeed witherrorCode=null.thread-project-assignments,thread-workspace-root-hints,sidebar-project-thread-orders,project-order, andprojectless-thread-ids) survives a full restart, but the sidebar still renders empty.This looks like a renderer/sidebar hydration regression in 26.715 rather than data loss or missing local metadata. I can provide a redacted diagnostic bundle if maintainers need it.
Leilight commentedon Jul 23, 2026
Update — I traced the root cause on my machine (26.715.10079.0, Windows ARM64).
My ChatGPT-mode tokens contain no
chatgpt_account_id/chatgpt_user_id/chatgpt_plan_typein thehttps://api.openai.com/authclaim — onlyuser_id,organizations, andchatgpt_data_residency/chatgpt_compute_residency. Reproduced with every login method (email + password, phone + device-code, clean browser profile).The backend is fine with this: codex CLI on the same auth.json reports "Logged in using ChatGPT" and completes tasks on my subscription. But the desktop's client-side feature-access check resolves to denied / missing-account, which:
-32603 waiting for a ChatGPT account id.Expected behavior: either accept claim-less tokens like the backend does, or show an explicit "connect your ChatGPT account" notice instead of silently empty lists.
suqinghechina-debug commentedon Jul 24, 2026
Additional reproduction on Windows (2026-07-24)
I reproduced the same issue across all saved local projects on a newer Windows build. This has a high-impact, data-loss-like presentation even though the sessions still exist.
Environment
26.721.3404.00.145.0-alpha.3010.0.26200x64Observed behavior and diagnostics
notLoaded; they are not archived. An explicit unarchive attempt returnsno archived rollout found.session_index.jsonlStrong minimal probe / workaround
projectIdand becomes visible in the sidebar.This suggests the durable thread data and project resolution still work, but unpinned
notLoadedlocal threads are being omitted from sidebar/list hydration.Expected behavior
All unarchived local tasks should remain visible under their saved projects after restart, including
notLoadedthreads. If project/sidebar mapping state is stale or missing, Codex should rebuild it from durable local thread/session metadata.Project paths, task titles, and conversation contents are intentionally redacted. I can provide a redacted screenshot, sanitized thread IDs, and targeted diagnostics if maintainers request them.
baejokerz-collab commentedon Jul 24, 2026
Additional Reproduction on Windows x64 — Version
26.721.3996.0I encountered the same issue after updating Codex Desktop for Windows.
Environment
26.721.3996.0Symptoms
The left sidebar shows:
Projects: No projectsRecent: No tasksAdditional observations:
Evidence That the Data Is Intact
SQLite integrity check:
okActive thread records: 188
Real user/project threads: 44
Service/subagent threads: 144
Current local sidebar state contains:
local-projects: 7 entriesthread-project-assignments: 52 entriessidebar-project-thread-orders: 4 entriesprojectless-thread-ids: 23 entriesLocal
thread/listrequests complete successfully.Session files and the local SQLite database remain readable.
Search can open the complete conversation history.
This appears to be a sidebar/catalog hydration or renderer problem rather than data loss.
Recovery Attempts
I tried all of the following without success:
Fully exiting and restarting the application multiple times.
Checking archived tasks.
Refreshing and toggling the sidebar.
Switching model providers.
Using Windows application Repair.
Re-registering or reinstalling the application.
Performing a clean uninstall and reinstall.
Recreating the application cache.
Rebuilding the current sidebar and project state:
local-projectsproject-writable-rootsthread-project-assignmentssidebar-project-thread-ordersthread-workspace-root-hintsproject-orderRebuilding and validating
session_index.jsonl.Pinning an affected hidden task.
The rebuilt state survives a complete restart, but the sidebar still renders empty.
Possible Regression Area
The current desktop application contains the following local thread catalog modes:
disabledpopulate_onlyconsumeThe application code appears capable of disabling direct recent-history loading when the local thread catalog enters
consumemode. If catalog population or hydration fails, this could result in an empty sidebar while Search continues to work.This is only a hypothesis, but it matches the observed behavior.
Expected Behavior
All unarchived local tasks should remain visible under their saved projects after an update.
If the local thread catalog cannot be loaded, the application should fall back to
thread/listor rebuild the catalog fromstate_5.sqlite, rather than displayingNo projects / No tasks.Privacy
Thread IDs, project paths, conversation contents, credentials, and database files have been intentionally omitted. I can provide sanitized logs or additional diagnostics if requested.
Leilight commentedon Jul 24, 2026
Follow-up on 26.721.3996.0: the silent empty sidebar is now replaced by an explicit access splash — thank you, this is the "show an explicit notice instead of silently empty lists" behavior I asked for above. 👍
One problem with the wording, though. I checked the bundle: the feature-access decision (
sln) still returnsreason: "missing-account"when the token carries nochatgpt_account_id/chatgpt_plan_type— which is exactly my case (password/phone-based Personal account, same root cause as #13007). But the splash rendered for that state reads:For a Personal workspace where the signed-in user is the owner, there is no admin to contact — the CTA is a dead end. That copy fits the
workspace-disabledreason, notmissing-account.Suggestion: branch the splash copy by reason —
workspace-disabled→ keep the "contact your admin" message.missing-account→ show "re-authenticate, or contact support" instead, since the token simply lacks the ChatGPT claims (the server-side gap tracked in [VS Code Extension] Requires re-login on every restart — JWT missing chatgpt_plan_type on ARM64 Windows #13007 / fixed for the core in Handle missing plan info for ChatGPT accounts #13072 but re-surfaced by this UI layer).cc @etraut-openai
caramelcase commentedon Jul 30, 2026
Additional Windows reproduction: project catalog disappeared while task history remained accessible
I encountered a similar issue on the Codex desktop app for Windows. The Projects section became empty and displayed No projects, even though the repository, local task history, and recent tasks were still present.
Environment
OpenAI.Codex_26.721.11231.0_x640.146.0-alpha.3.126.721.4979.0to26.721.11231.0was observed during the same period.Timeline
2026-07-30 04:06:55 JST(2026-07-29 19:06:55 UTC), a Codex app package update was observed.A Windows restart/bugcheck also occurred during the same general period. I have not established that Codex caused it, so I am reporting it only as timing information rather than claiming causality.
Actual behavior
No projectsis displayed under Projects.Expected behavior
Projects that were registered before the restart/update should remain listed in the Projects section.
If the project catalog is lost or fails to migrate, Codex should be able to reconstruct it from surviving task/session metadata without deleting or invalidating existing task history.
Local-state checks
The following privacy-sanitized checks were performed after the issue occurred:
82state_5.sqliteok.codex-global-state.jsonexists, but:local-projectscontains0entriesselected-projectisnullThis suggests that the repository and task history were not deleted. The missing sidebar entries appear more consistent with project-catalog state being reset, lost, or not migrated correctly.
Difference from another report in this issue
This may be slightly different from the state described in comment #5072754258.
In that report,
local-projectsreportedly still contained seven entries while the sidebar displayed no projects. In my case, the persisted global state itself contains an emptylocal-projectscollection and anullselected-project.This may indicate a separate reset or migration path rather than only a sidebar rendering or catalog-hydration problem.
Possible recovery and prevention improvements
It may be useful for Codex to:
I can provide additional privacy-sanitized timestamps, state counts, and targeted log excerpts if they would help diagnose the issue. I would prefer not to upload the raw rollout JSONL files, SQLite database, or complete global-state file because they may contain task content or local identifiers.
GuXinghai commentedon Sep 12, 2026
I have observed a related but slightly different low-frequency variant of this sidebar/history issue.
Observed behavior:
This has happened only rarely, and I do not currently have a deterministic reproduction, logs, screenshots from the moment of disappearance, or enough evidence to identify the responsible layer. I therefore cannot confirm that it has the same root cause as this issue.
One potentially useful distinction from the reproduction in this issue: here, new activity appears to restore the missing chat to the sidebar, whereas the original report says that sending a new message did not restore it.
This may indicate a transient sidebar/list indexing or stale metadata state that is refreshed by a thread update, but that is only a hypothesis based on the observed behavior.
If it occurs again, I can try to capture the exact app version, thread state, screenshots, and relevant diagnostics before sending the message that makes the chat reappear.