claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Session Disappeared After Logout / Restart of Claude Code Desktop - HOW to restore the sessions ASAP???

Open igrushkas opened this issue 9 months ago • 57 comments

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.

igrushkas avatar Feb 18 '26 01:02 igrushkas

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/23125
  2. https://github.com/anthropics/claude-code/issues/24545
  3. 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

github-actions[bot] avatar Feb 18 '26 01:02 github-actions[bot]

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.

happyarts avatar Feb 19 '26 11:02 happyarts

Same issue

benrodenhaeuser avatar Feb 19 '26 22:02 benrodenhaeuser

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.

claytoncorreia avatar Feb 20 '26 05:02 claytoncorreia

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.

benrodenhaeuser avatar Feb 20 '26 15:02 benrodenhaeuser

same problem. who know how fix it?

amibars avatar Feb 20 '26 23:02 amibars

same issue here. please resolve this asap.

bradlawther avatar Feb 21 '26 17:02 bradlawther

same here..

marknx avatar Feb 21 '26 19:02 marknx

Same here. This sucks

elfstrob avatar Feb 21 '26 22:02 elfstrob

same issue.. it's gone

kevXZY avatar Feb 22 '26 03:02 kevXZY

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

Ewazme avatar Feb 22 '26 03:02 Ewazme

yep painful bug

jfloodnet avatar Feb 22 '26 08:02 jfloodnet

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.

jirujun avatar Feb 22 '26 11:02 jirujun

Same issue here also on macOS. All recent code sessions disappear if I close and reopen the app.

datahannah avatar Feb 22 '26 14:02 datahannah

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...

Dannywb1996 avatar Feb 22 '26 23:02 Dannywb1996

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.

benrodenhaeuser avatar Feb 23 '26 10:02 benrodenhaeuser

Same issue here on macOS. Hours of work gone.

dchasman avatar Feb 23 '26 22:02 dchasman

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?

kell-ship-it avatar Feb 24 '26 22:02 kell-ship-it

Claude code works fine!

marknx avatar Feb 24 '26 22:02 marknx

Yea it seems to work now

jfloodnet avatar Feb 25 '26 01:02 jfloodnet