Title: Desktop app sidebar shows no sessions/projects, though local session data is intact and CLI can resume them
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Title: Desktop app sidebar shows no sessions/projects, though local session data is intact and CLI can resume them
Environment:
Windows 11, Claude desktop app v1.20186.1.0 (package Claude_pzs8sxrjxfjjc)
Bundled native CLI engine: v2.1.205
Issue:
The desktop app's sidebar shows no past sessions, chats, plans, or projects. This started suddenly during normal use, and the app's own config (config.json → first_launch_at) shows a timestamp matching when the problem began — suggesting its local profile/session index was unexpectedly reset.
What I verified is NOT the cause:
Local session data is fully intact: ~/.claude/projects/.jsonl (21+ session files) and ~/.claude/plans/.md are all present and untouched.
Installing the official native CLI (irm https://claude.ai/install.ps1 | iex) and running claude --resume in a terminal correctly lists and resumes all past sessions — confirming the raw data is 100% readable.
Cleared the app's Electron cache (Cache, Code Cache, GPUCache, IndexedDB, Local Storage, Session Storage, WebStorage, blob_storage, Dawn caches, Shared Dictionary) under %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\ — sidebar remained empty after restart, ruling out stale cache.
/resume is not a supported command in the app's own chat input ("Some commands only work in the Claude Code terminal").
Conclusion: the app's internal session index (claude-code-sessions, local-agent-mode-sessions folders / IndexedDB) appears to have been reset and never re-populated from the existing local session files, even though the underlying CLI engine reads that same data correctly.
Request: please add a way for the desktop app to re-index/re-discover existing local sessions from ~/.claude/projects/ when its own session database is empty or out of sync.
What Should Happen?
Request: please add a way for the desktop app to re-index/re-discover existing local sessions from ~/.claude/projects/ when its own session database is empty or out of sync.
Error Messages/Logs
Issue:
The desktop app's sidebar shows no past sessions, chats, plans, or projects. This started suddenly during normal use, and the app's own config (config.json → first_launch_at) shows a timestamp matching when the problem began — suggesting its local profile/session index was unexpectedly reset.
Steps to Reproduce
Issue:
The desktop app's sidebar shows no past sessions, chats, plans, or projects. This started suddenly during normal use, and the app's own config (config.json → first_launch_at) shows a timestamp matching when the problem began — suggesting its local profile/session index was unexpectedly reset.
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
same version
Claude Code Version
Claude code
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗