Desktop app loses session history after sessions are closed
Open 💬 2 comments Opened Jun 10, 2026 by lucasvicente-com-ar
Description
The Claude Code desktop app (Windows) does not persist session history in the sidebar after sessions are closed. Only currently active sessions appear in the UI.
Steps to reproduce
- Open Claude Code desktop app on Windows
- Create several sessions across different project directories
- Close the sessions normally
- Reopen the app — only the most recent/active sessions appear in the sidebar
Expected behavior
All previous sessions should remain visible in the session list/sidebar, similar to how they were displayed before.
Actual behavior
Only currently running sessions are listed. Historical sessions disappear from the UI once closed.
Root cause investigation
- Session transcripts (
.jsonlfiles) are intact in~/.claude/projects/— no data loss. - The
~/.claude/sessions/directory only contains JSON files for currently active sessions (PID-based files). When a session ends, its index file is cleaned up. - The desktop app does not re-scan
~/.claude/projects/to rebuild the session list from existing transcripts. claude --resumefrom the CLI correctly finds and lists all sessions for a given project directory by reading the transcript files directly.
Environment
- Platform: Windows 11 Pro (10.0.26200)
- Claude Code version: 2.1.170
- Entrypoint: claude-desktop
Workaround
Users can resume old sessions via the CLI:
cd "path/to/project"
claude --resume
This reads the .jsonl transcripts directly and lists all available sessions for that project.
🤖 Generated with Claude Code
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗