[BUG] Code" tab Recents list doesn't show pre-existing local sessions after app reinstall
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?
After uninstalling and reinstalling Claude Desktop (Windows), the "Recents" list under the Code tab only shows the single session created after reinstall. It does not show any of the 20+ prior Claude Code sessions for the same workspace, even though those sessions still exist on disk and are fully intact.
Evidence this is a display/sync bug, not data loss:
- All 20 original session .jsonl files are still present and untouched in %USERPROFILE%\.claude\projects\C--Users-Piyac-OneDrive-Workspace\, with timestamps from 2026-07-11 through 2026-07-26.
- The project is still correctly registered in %USERPROFILE%\.claude.json.
- Running
claude --resumefrom a terminal in that exact workspace directory correctly lists all 21 sessions (20 old + 1 new). - A full computer restart did not resolve the issue, ruling out a simple in-memory cache problem.
Environment:
- App/CLI version: 2.1.219
- OS: Windows 11 Home Single Language, build 10.0.26200
- Workspace path: C:\Users\Piyac\OneDrive\Workspace
What Should Happen?
The "Recents" list in the Code tab should show all prior sessions for the workspace, matching what the CLI's claude --resume picker already shows correctly.
Error Messages/Logs
Steps to Reproduce
- Have an existing Claude Code workspace with multiple past sessions (in this case 20 sessions spanning 2026-07-11 to 2026-07-26) at C:\Users\Piyac\OneDrive\Workspace
- Uninstall Claude Desktop completely
- Reinstall Claude Desktop
- Log back in with the same account
- Open the Code tab and select the same workspace path
- Look at the "Recents" sidebar list
Expected: all prior sessions appear in Recents.
Actual: only the newest session (created after reinstall) appears.
Note: claude --resume in a terminal at the same workspace path correctly lists all 21 sessions, and the raw session files in %USERPROFILE%\.claude\projects\ are untouched — so this is isolated to the Code tab's Recents list in the GUI.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Unknown exact version — was working correctly before uninstall/reinstall on 2026-07-26
Claude Code Version
2.1.207 (Claude Code)
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_