[BUG] Session Disappeared After Logout / Restart of Claude Code Desktop - HOW to restore the sessions ASAP???
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?
I've logged out and logged in back to the Desktop Claude Code app to continue working on my 3 applicaitons. However when I opened it no active or archived sessions are visible - all empty.
When I look at the .claude folder files are all there and terminal see them, however I can't import or add them back to the CUI desktop application to continue working.
Please fix ASAP - I've paid for MAX to be able to work on the applications but can't
What Should Happen?
After restarting Claude Desktop - it should show where I left off, all the previous, active and archived session so I can continue working on them.
Error Messages/Logs
You documentation says that you can restart all the session by /desktop but that did not do anything. Your code fix is not working:
CLI sessions and Desktop sessions have separate session history. They share configuration and project memory (CLAUDE.md files), but each maintains its own sessions.
So if your previous sessions were created in the CLI/terminal, they won't show up in the Desktop sidebar — and vice versa.
To move a CLI session into Desktop:
Run this command in the terminal during an active CLI session:
/desktop
Steps to Reproduce
Logout of the desktop, login with a different account, logout and login back to a first account - 0 sessions.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
Claude 1.1.2998 (1f1d4d) 2026-02-12T20:50:41.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Please fix ASAP and give a credit until it fixes. Can't work and spend tons of my credits on trying to fix this problem. Cowork could not fix it.
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/23125
- https://github.com/anthropics/claude-code/issues/24545
- https://github.com/anthropics/claude-code/issues/25524
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Same here, Claude 1.1.3541 (1e65e4) 2026-02-18T19:23:37.000Z, System Mac, Claude Code Desktop - All Sessions gone after Closing and Repening Claude.
Same issue
Same issue on Claude 1.1.3647 (8f7c53) 2026-02-19T15:02:19.000Z.
When I close the Claude Desktop app and reopen it, all previous sessions are gone from the Code tab.
What's maybe worth mentioning is that the conversations are still present in ~/.claude/projects.
It's just that Claude Desktop can't find them for some reason.
My workaround is to go through the Claude CLI.
same problem. who know how fix it?
same issue here. please resolve this asap.
same here..
Same here. This sucks
same issue.. it's gone
same, but I found my old session in the .claude/projects folder, but I don't know how to re-import it into Claude Desktop
yep painful bug
Same issue here on macOS. Every time I close the Desktop app, all sessions in the sidebar are gone when I reopen it. This is really inconvenient and disrupts my workflow significantly. An official fix is urgently needed. Please prioritize this.
Same issue here also on macOS. All recent code sessions disappear if I close and reopen the app.
i asked claude itself to fix it lmao
i was something about the folder where the history are supposed to be saved doesnt exist, claude created it and it was fixed....
i delete the session so i dont remember where it was...
i asked claude itself to fix it lmao
I did the same (Claude output below).
Proceeding as suggested in Option 1 seems to have fixed it.
I found the root cause. In the LevelDB (the Desktop app's storage), the key
LSS-cached-sessions contains:
{"value": [], "tabId": "...", "timestamp": ...}
The session cache is empty. The Desktop app stores its Code tab session list
there, and it's currently an empty array — meaning on every restart it shows
nothing.
The older LDB files DO contain your session IDs (from ~/.claude/projects/),
suggesting a key format change happened at some point (old format:
cached-sessions, new format: LSS-cached-sessions) and the new cache was never
populated.
This is a bug. Here's what to try:
Option 1 — Clear the LevelDB cache (restart to rebuild)
Quit Claude Desktop first, then:
# Backup first
cp -r ~/Library/Application\ Support/Claude/Local\ Storage/leveldb
~/Desktop/leveldb-backup
# Delete the cache
rm -rf ~/Library/Application\ Support/Claude/Local\ Storage/leveldb
Then reopen Claude Desktop. It will recreate a fresh LevelDB. Whether this
fixes the sidebar depends on whether the app can re-index sessions from
~/.claude/projects/ — it may or may not.
Option 2 — Report the bug with these findings
File at https://github.com/anthropics/claude-code/issues with:
- Claude Desktop version: 1.1.3963
- Claude Code version: 2.1.49
- LSS-cached-sessions is {"value": []} in LevelDB (~/Library/Application
Support/Claude/Local Storage/leveldb/)
- Session .jsonl files exist in ~/.claude/projects/ but are not indexed
- Sessions appear in sidebar during a session but disappear on restart
- No sessions-index.json files exist in any project directory
I'd start with Option 1 (after backing up), then file the bug either way so
Anthropic can fix the root cause.
Same issue here on macOS. Hours of work gone.
Same issue as well.
I submitted two tickets regarding this issue. Had CC for 3 days and was met with mixed feelings. Praying this is resolved. Does the Claude team review these tickets within Gitbhub?
Claude code works fine!
Yea it seems to work now