claude-code - 💡(How to fix) Fix Sessions disappear mid-conversation from Recents sidebar AND claude resume — macOS [2 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#54723Fetched 2026-04-30 06:37:48
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2

Active and recently-used sessions are vanishing from both the desktop-app Recents sidebar and the claude resume picker, despite the session JSONLs being present on disk. Symptom is mid-conversation (no relaunch), and multiple sessions in the same project are affected.

Related but distinct from #53165 (after-relaunch, Windows, sidebar frozen on one ancient session).

Root Cause

Active and recently-used sessions are vanishing from both the desktop-app Recents sidebar and the claude resume picker, despite the session JSONLs being present on disk. Symptom is mid-conversation (no relaunch), and multiple sessions in the same project are affected.

Related but distinct from #53165 (after-relaunch, Windows, sidebar frozen on one ancient session).

Fix Action

Workaround

ls -lat ~/.claude/projects/<encoded-project-path>/*.jsonl
# pick the UUID by mtime
cd <project-root>
claude --resume <uuid>

Code Example

ls -lat ~/.claude/projects/<encoded-project-path>/*.jsonl
# pick the UUID by mtime
cd <project-root>
claude --resume <uuid>
RAW_BUFFERClick to expand / collapse

Summary

Active and recently-used sessions are vanishing from both the desktop-app Recents sidebar and the claude resume picker, despite the session JSONLs being present on disk. Symptom is mid-conversation (no relaunch), and multiple sessions in the same project are affected.

Related but distinct from #53165 (after-relaunch, Windows, sidebar frozen on one ancient session).

Environment

  • macOS Darwin 25.1.0
  • Claude Code desktop app: v1.5354.0
  • Claude Code CLI: v2.1.123

What I observed

  1. Currently typing into a session in the desktop app — the session does not appear in the Recents sidebar.
  2. Closed the app and ran claude resume from the project directory — the active session is not in that list either, and several other recent sessions from the same project are also missing.
  3. Inspected ~/.claude/projects/<encoded-project-path>/: 5 JSONL files spanning the last 4 days are present and the current one is being actively appended to (mtime updates every few seconds).
  4. The Recents sidebar and claude resume show a stale subset — the older sessions appear, the newer ones don't.

Expected

  • Recents and claude resume reflect the JSONLs actually on disk.
  • The active foreground session always appears in Recents.

Actual

  • Both surfaces show a stale subset that omits the currently-active session.
  • Recovery requires claude --resume <session-uuid> with the UUID looked up manually from disk — works, but not discoverable.

Severity

Medium. No data loss — JSONLs persist on disk and recovery via UUID works. The gap is discoverability: a user who closes the window without the UUID has effectively lost UI access. For me, ~30 hours of work across affected sessions.

Possible trigger (speculative — not verified)

I notice an empty directory at ~/.claude/projects/-Users-...-ifyhq--claude-worktrees-<name>/ corresponding to a git worktree that was torn down during one of the affected sessions. I have not verified that the worktree teardown is the trigger — but the timing correlates and the empty dir suggests an index/path mismatch may be involved. Happy to provide more diagnostics if useful.

Workaround

ls -lat ~/.claude/projects/<encoded-project-path>/*.jsonl
# pick the UUID by mtime
cd <project-root>
claude --resume <uuid>

extent analysis

TL;DR

The issue can be temporarily worked around by manually resuming sessions using the claude --resume <session-uuid> command with the UUID obtained from the JSONL files on disk.

Guidance

  • Verify that the JSONL files are being updated correctly by checking their modification times with ls -lat ~/.claude/projects/<encoded-project-path>/*.jsonl.
  • Check for any indexing or path mismatch issues related to the git worktree teardown, as this may be a contributing factor to the problem.
  • Use the provided workaround to manually resume sessions until a more permanent fix is found.
  • Consider providing more diagnostics to help identify the root cause of the issue, such as the output of claude --version and claude --debug logs.

Example

# Get the list of JSONL files with their modification times
ls -lat ~/.claude/projects/<encoded-project-path>/*.jsonl

# Resume a session using the UUID
cd <project-root>
claude --resume <uuid>

Notes

The provided workaround requires manual intervention to resume sessions, which may not be ideal for users who rely on the Recents sidebar and claude resume functionality. Further investigation is needed to determine the root cause of the issue and develop a more permanent fix.

Recommendation

Apply the workaround until a more permanent fix is available, as it allows users to recover their sessions and continue working.

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

claude-code - 💡(How to fix) Fix Sessions disappear mid-conversation from Recents sidebar AND claude resume — macOS [2 comments, 2 participants]