[BUG] Desktop sidebar empty even though persisted sessions load; focused session stays null (Windows)

Resolved 💬 4 comments Opened Apr 22, 2026 by shahrad2600 Closed May 30, 2026

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?

On Windows, Claude Desktop loads persisted Claude Code session metadata successfully, but the left sidebar still renders empty.

This is not the same failure mode as the open wrapper-index wipe issues where claude-code-sessions entries are missing. In this case:

  • Desktop metadata files under %APPDATA%\Claude\claude-code-sessions\... still exist
  • all of those JSON files parse successfully
  • all saved cwd paths still exist
  • Desktop logs show persisted sessions loading successfully
  • the renderer boots https://claude.ai/task/new
  • then LocalSessions.setFocusedSession is set to null

That suggests the failure is in focus/selection state after session discovery, not in transcript storage or missing wrapper reconstruction.

What Should Happen?

Existing Claude Code sessions should appear in the Desktop sidebar when persisted session metadata is present and has been loaded successfully.

Steps to Reproduce

This was observed on an already-used Windows install with existing Claude Code sessions.

  1. Have existing Claude Code sessions on disk
  2. Launch Claude Desktop
  3. Observe that the sidebar is empty even though persisted sessions load successfully in logs

I do not yet have a clean from-scratch repro; this was diagnosed from a live failing install.

Is this a regression?

I don't know

Claude Code Version

Claude Desktop 1.3883.0, bundled Claude Code 2.1.111

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Strongest evidence

From main.log on the same startup:

  • Loaded 38 persisted sessions from C:\Users\shawn\AppData\Roaming\Claude\claude-code-sessions\05f07a12-b729-4eaa-8ebb-21b80442c293\566efe23-b817-413b-900b-8fb7d7d89eb9
  • topFrameUrl: 'https://claude.ai/task/new'
  • topFrameUrl: 'https://claude.ai/task/new'
  • 2026-04-21 20:36:32 [info] [CCD] LocalSessions.setFocusedSession: sessionId=null

So the sequence is:

  1. 38 persisted sessions load successfully
  2. renderer opens task/new
  3. focused session remains null

That is the core mismatch.

Config state

%APPDATA%\Claude\claude_desktop_config.json explicitly has:

"sidebarMode": "task"

So this is not just a stale config value being ignored in favor of a different route. The renderer did actually boot task/new.

Session metadata validity
  • All *.json files under %APPDATA%\Claude\claude-code-sessions\<accountId>\<orgId>\ parse successfully
  • All saved cwd values currently exist on disk
  • This does not look like malformed JSON or deleted-folder cleanup
Transcript data is intact

Original CLI transcript still exists and resumes correctly from the CLI:

cd "D:\Shawn's Team Dropbox\Shawn Mobasser\Claude Code\AP"
claude --continue

and

cd "D:\Shawn's Team Dropbox\Shawn Mobasser\Claude Code\AP"
claude --resume a7347dda-bc4b-4e7e-89e6-ffe3aab51108

So the user is not missing transcript data; this appears isolated to Desktop sidebar state/rendering/focus.

Related issues

This appears adjacent to, but distinct from:

  • #43674 sidebar empty / history missing
  • #51357 session-index files wiped
  • #51412 upgrade-related session index loss

The key difference here is that persisted Desktop session metadata is still present and is actually being loaded.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗