Windows: Desktop app sidebar/session list emptied after forced reinstall, though CLI (--resume) still shows all prior sessions intact
Description
After a desktop app crash, Windows reported: "Claude に問題があります。元のインストール場所から再インストールするか、管理者に問い合わせてください。" (roughly: "There is a problem with Claude. Reinstall from the original install location, or contact an administrator."). I uninstalled Claude via Windows Settings > Apps > Installed apps, rebooted, and reinstalled the app.
After reinstalling, the desktop app's sidebar still shows my custom project folders (I organize sessions into folders), but every folder is now empty (shows the "drag a session here" placeholder) except for a single newly-created session made after the reinstall. Dozens of previously visible sessions, across ~8 folders, are gone from the sidebar.
What I verified before filing
- The underlying session transcripts are intact on disk under
%USERPROFILE%\.claude\projects\<project-hash>\*.jsonl, with file timestamps continuing right up through the day of the crash/reinstall. - Running the CLI (
claude, v2.1.200) from the same project directory and usingclaude --resumeopens the interactive picker showing "Resume session (1 of 49)" — all 49 prior sessions for this project, correctly titled and dated, are listed and resumable from the CLI. - So the data itself is confirmed intact; the problem is isolated to the desktop app's own session-list / sidebar-folder UI (whatever index or sync state it uses to populate that view), not to the underlying transcripts.
Steps already tried (did not fix it)
- Fully quit (verified no lingering process) and relaunch the desktop app — sidebar folders still empty.
- Log out and log back in via the account menu, same account — sidebar folders still empty.
Environment
- OS: Windows 10 Home 10.0.19045
- Claude Code CLI: 2.1.200 (confirmed present and working alongside the desktop app)
- Desktop app: freshly reinstalled just prior to filing this report (uninstalled via Windows Settings, rebooted, reinstalled)
Expected
After reinstalling the desktop app while signed into the same account, the sidebar should repopulate with the same sessions/folders that are visible and resumable via claude --resume, since that data is confirmed intact and reachable via the CLI.
Actual
Sidebar folders remain empty except for sessions created after the reinstall. Restart and re-login do not resync the list.
Showing cached comments. Read the full discussion on GitHub ↗
4 Comments
Confirming this same bug on my end — Windows 11 Pro 10.0.26200, Claude Code CLI 2.1.221, Claude Desktop, after a full reinstall.
Same symptoms:
~/.claude/projects/<project-key>/*.jsonlclaude --resume/claude -r <session-id>from the correct project directory successfully lists and resumes every prior sessionPossibly useful extra data point: my
main.logshows this at the very first line of the very first startup after reinstall, before anything else initializes:2026-08-04 20:23:17 [error] Error reading or parsing config file (SyntaxError)
By the time I checked afterward, every config file I could find (
settings.json,%APPDATA%\Claude\config.json,claude_desktop_config.json,~/.claude.json) parsed as valid JSON — consistent with the app hitting a corrupt config on that first launch and silently regenerating a fresh/empty one, which would also explain why the session index (%APPDATA%\Claude\claude-code-sessions\) came back empty instead of raising a visible error.Might be worth having the app surface that JSON parse error to the user instead of silently resetting state, and/or having it rebuild the session index from
~/.claude/projects/on startup rather than depending solely on a separate index cache.Confirming a second recurrence on the same Windows PC where I originally reported this (2026-08-04 → recurred 2026-08-05).
Sequence: Desktop app crashed again → uninstalled via Windows Settings → PC restart → reinstalled. After reinstall, GUI sidebar again shows only the single new session, all prior project folders/sessions empty.
~/.claude/projects/<project-key>/*.jsonlagain fully intact (94 files for the affected project this time).claude --resume(CLI, bundled/reported version 2.1.200) again lists and resumes all prior sessions correctly.main.logfor this reinstall (GUI/CCD 2.1.221) has a clean startup — noError reading or parsing config file (SyntaxError)at the top. So the config-corruption theory may not be the only trigger.main.logthis time:``
`[LocalSessionManager] Session storage directory does not exist yet, skipping load:
C:\Users\<user>\AppData\Roaming\Claude\claude-code-sessions\<accountId>\<orgId>
claude-code-sessions/i.e. the GUI's own session index cache under
is simply missing/empty post-reinstall, separate from the real transcript data under~/.claude/projects/. This is consistent with the session index not being rebuilt from~/.claude/projects/` on first launch after a reinstall, regardless of whether a config parse error also occurred.Would still support the suggestion above to rebuild the session index from
~/.claude/projects/on startup when the index cache is empty, rather than treating an empty index as "no prior sessions."Same issue here on Windows 11. After a forced reinstall of the desktop app, the sidebar/session list showed 0 previous sessions for a project, even though the underlying transcripts (.jsonl) under %USERPROFILE%\.claude\projects\<project-hash>\ were still fully intact on disk.
In my case it went a step further: the project registry in
.claude.jsonalso lost an entry — one of my 4 registered projects was missing entirely after the reinstall, and I had to manually re-add it to.claude.jsonto get it to show up as a project option again (even then, it only appeared as a brand-new empty session, not linked to the old transcript history).This lines up with the theory already discussed here: the GUI's own session index/project registry is separate from the real data under ~/.claude/projects/, and isn't being rebuilt from it on first launch after a reinstall.
The transcripts are still there, so this looks like the Desktop session index being reset by the reinstall, not the conversation history being deleted.
claude --resumeis reading the JSONL layer under~/.claude/projects/; Desktop needs matching metadata files withcliSessionIdvalues to render those sessions in its session list.I built
BasedGPT/claude-code-session-recoveryfor this missing-index case. Runpython tools/diagnose.pyfirst and follow the exact command it prints. If it reports orphaned transcript files, the guarded path is a dry run ofsynth_session_metadata.py; review the proposed entries, quit Desktop fully, then apply the printed command. If this is an MSIX install, the public toolkit documents that externally written metadata may not surface reliably there, so treat the diagnosis as confirmation and use the standalone Win32 install before attempting a metadata write.That separates a missing Desktop index from a missing transcript, and avoids treating the CLI's working
--resumelist as proof that Desktop will rebuild itself.Hope this helps, if my tools are able to help you, would appreciate a ⭐ :)