claude-code - 💡(How to fix) Fix Code tab Recents loses on-disk sessions; Chat and Cowork tabs persist them correctly [3 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#56187Fetched 2026-05-06 06:34:52
View on GitHub
Comments
3
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×3

Fix Action

Fix / Workaround

Workaround claude --resume <uuid> from a terminal in the project directory.

RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code desktop app v2.1.121
  • Windows 11 Pro
  • Account: signed-in personal

Summary On the Code tab, the "Recents" rail in the left sidebar shows only the currently-running session. Sessions from earlier today (and prior days) that exist as JSONL transcripts on disk are not listed.

The Chat and Cowork tabs do NOT have this problem — their recent items persist across app restarts as expected. The bug is specific to Code.

Repro

  1. Open the desktop app, navigate to the Code tab in any local project.
  2. Start a new Code session, do some work, close it.
  3. Start a second Code session in the same project.
  4. Observe: the Recents rail shows only the second session. The first session is gone from the UI even though its .jsonl is intact at ~/.claude/projects/<slug>/<uuid>.jsonl.

In my case, 7 sessions exist on disk for today's project; only 1 is listed under Recents.

Expected Recents should list recent sessions for the current project (matching the behavior of claude --resume from the terminal, and matching how Chat/Cowork tabs handle their recents).

Actual Recents shows only the live session.

Data integrity On-disk JSONLs are fine. claude --resume from a terminal correctly lists every session. Purely a desktop-app UI display gap — no data is actually lost, but the workflow loss for UI-only users is significant.

Workaround claude --resume <uuid> from a terminal in the project directory.

Files I checked while investigating

  • ~/.claude/projects/<slug>/*.jsonl — all sessions present
  • ~/.claude/sessions/<pid>.json — only the live session
  • ~/.claude/session-env/<uuid>/ — folders for several recent sessions
  • AppData/Roaming/Claude/Local Storage/leveldb/ — appears to be where the desktop UI stores its Recents state (binary, not inspected)
  • AppData/Roaming/Claude/config.json, bridge-state.json — no Recents data here

extent analysis

TL;DR

The issue can be temporarily worked around by using the claude --resume <uuid> command from a terminal in the project directory to access recent sessions not listed in the Recents rail.

Guidance

  • The problem seems to be related to how the desktop app stores and retrieves its Recents state, potentially involving the AppData/Roaming/Claude/Local Storage/leveldb/ directory.
  • Verify that the .jsonl files for all sessions are correctly located at ~/.claude/projects/<slug>/<uuid>.jsonl and that claude --resume from the terminal correctly lists all sessions.
  • Investigate the contents of ~/.claude/sessions/<pid>.json to see if it only stores information about the live session, which might explain why only the current session is displayed in the Recents rail.
  • Consider comparing the behavior and storage of the Chat and Cowork tabs to identify potential differences in how their recent items are handled.

Example

No specific code snippet can be provided without more information on the internal workings of the Claude Code desktop app. However, the issue might be related to how session data is stored or retrieved from the leveldb storage.

Notes

The issue appears to be specific to the Code tab's Recents rail and does not affect the Chat and Cowork tabs, suggesting a tab-specific implementation difference. The fact that claude --resume works correctly from the terminal implies that the issue is with the desktop app's UI or its interaction with stored session data.

Recommendation

Apply the workaround using claude --resume <uuid> from a terminal until a fix is available, as it allows access to recent sessions not listed in the Recents rail.

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