claude-code - 💡(How to fix) Fix [BUG] Desktop app sidebar shows only ~30 of 378 CLI sessions (Windows, v2.1.109) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48495Fetched 2026-04-16 06:58:37
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The desktop app sidebar is only showing ~30 of 378 CLI sessions. The missing sessions include recently created, titled sessions from the last 2 weeks. This is the same core issue as #22723 (closed), which was never actually resolved.

Detailed Investigation

I ran a thorough investigation of the session storage on my machine:

The numbers:

  • 378 CLI session files in ~/.claude/projects/ (.jsonl files across 20 project directories)
  • 33 sessions have custom titles (set via /rename)
  • ~30 sessions visible in the desktop sidebar
  • ~20 recently titled sessions are completely missing from the sidebar

Missing titled sessions (all from the last 2 weeks):

  • STREAMDECK BUILDS (4/14)
  • STREAMDECK 2 (4/14)
  • DISCORD CHANNELS BOT (4/14)
  • FLOURISH WEB APP (4/13)
  • FLOURISH PLEIN AIR MAP (4/13)
  • 2025 INCOME TAXES (4/13)
  • Stream Deck Workshop (4/12)
  • Claude Startup Files (4/12)
  • AI Organization (4/12)
  • Claude Communication Options (4/11)
  • AI Clubhouse (4/11)
  • Claude Code CLI Log Dev (4/10)
  • WORKFLOWY MCP (3/30)
  • ...and several more

Sessions that DO appear include:

  • PHONE IT IN 4/14/2026 ✓
  • Karpathy RAG (4/10) ✓
  • clark-brothers-adventure-game (4/9) ✓
  • Some untitled sessions with auto-generated names ("Hey", "Hello", "Interactive session") ✓

No consistent pattern determines which sessions appear vs. don't. It's not date-based (recent sessions are missing), not title-based (some titled sessions appear, some don't), and not directory-based (sessions from the same project directory are split between visible and invisible).

Storage Investigation

The desktop app's %AppData%/Claude/claude-code-sessions/ directory contains 38 session JSON files, but most are archived scheduled-task runs. However, the sidebar shows sessions that are not in this directory (like "PHONE IT IN", "Karpathy RAG"), confirming the sidebar also reads from the cloud API. The cloud session registry appears to be incomplete — only some CLI sessions get registered.

Environment

  • CLI: Claude Code 2.1.109
  • Desktop: Claude Desktop (Windows Store app)
  • OS: Windows 11 Pro 10.0.26200
  • Auth: OAuth (claude.ai account, Max subscription)

Expected Behavior

All CLI sessions (or at minimum all titled/renamed sessions) should appear in the desktop app sidebar, matching what claude --resume shows in the terminal.

Actual Behavior

Only ~30 of 378 sessions appear. No consistent rule governs which sessions are visible. Many recently created, actively titled sessions are missing.

Related Issues

  • #22723 (closed, same core issue — "Desktop app 'Local' sessions filter doesn't show CLI sessions")
  • #25524 (closed as duplicate of #22723)
  • #33363 (closed as duplicate)
  • #31787 (closed as duplicate, Windows-specific)

All were closed but the underlying problem persists.

extent analysis

TL;DR

The desktop app's incomplete cloud session registry and potential inconsistencies in session storage may be causing the missing CLI sessions in the sidebar.

Guidance

  • Investigate the cloud API's session registration process to determine why some CLI sessions are not being registered.
  • Verify that the desktop app is correctly reading sessions from both the local storage (~/.claude/projects/) and the cloud API.
  • Check for any patterns or commonalities among the missing sessions that could indicate a specific issue or filter causing them to be excluded from the sidebar.
  • Consider testing with a smaller set of sessions to see if the issue persists and if it's related to the number of sessions or a specific session attribute.

Example

No specific code snippet is provided, but the investigation could involve checking the cloud API's documentation or the desktop app's source code to understand how sessions are registered and retrieved.

Notes

The issue seems to be related to the desktop app's ability to read and display sessions from both local storage and the cloud API. The fact that some sessions are visible while others are not, without a clear pattern, suggests that there may be an issue with the session registration or retrieval process.

Recommendation

Apply a workaround by manually verifying that each CLI session is correctly registered with the cloud API, and consider reaching out to the development team for further assistance in resolving the underlying issue. This is because the problem seems to be related to the cloud API's session registration process, and a workaround may be necessary until the issue is fully resolved.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING