claude-code - 💡(How to fix) Fix Sidebar Recents and Pinned sections not displaying sessions after relaunch [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#53165Fetched 2026-04-26 05:22:43
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

Fix Action

Fix / Workaround

  • All session data is intact on disk at ~/.claude/projects/<project>/
  • The home screen Sessions panel correctly shows pinned sessions
  • The history.jsonl file has entries up to the current date, confirming sessions are being recorded
  • The sidebar appears to be stuck/not syncing with actual session state
  • Workaround: use the home screen Sessions panel for pinned sessions, and search to find others
RAW_BUFFERClick to expand / collapse

Bug Description

The sidebar Recents and Pinned sections are not displaying sessions correctly. Only a single old session appears in Recents (the oldest/first session ever created), and Pinned sessions do not appear in the sidebar Pinned section — even after pinning and relaunching.

Environment

  • Version: v1.4758.0 (bug present after relaunching to apply update)
  • OS: Windows 11
  • Project: local project directory

Steps to Reproduce

  1. Use Claude Code across multiple sessions in a project
  2. Relaunch the app (e.g. to apply a pending update)
  3. Observe sidebar Recents — only one old session is shown, all newer sessions are missing
  4. Pin a session via the session dropdown menu
  5. Relaunch again
  6. Observe sidebar Pinned section — pinned session does not appear there

Expected Behavior

  • Recents should show the most recently active sessions
  • Pinned sessions should appear in the Pinned section of the sidebar

Actual Behavior

  • Recents shows only one session (the oldest one, from months/weeks ago), never updates
  • Pinned section shows "Drag to pin" as if nothing is pinned
  • The home screen Sessions panel correctly shows the pinned session — so the pin data is saved, the sidebar just doesn't render it

Additional Notes

  • All session data is intact on disk at ~/.claude/projects/<project>/
  • The home screen Sessions panel correctly shows pinned sessions
  • The history.jsonl file has entries up to the current date, confirming sessions are being recorded
  • The sidebar appears to be stuck/not syncing with actual session state
  • Workaround: use the home screen Sessions panel for pinned sessions, and search to find others

Reported by Lostwhen using Claude Sonnet 4.6

extent analysis

TL;DR

The issue may be resolved by ensuring the sidebar is properly synced with the session state, potentially involving a fix to how session data is loaded or updated after relaunching the app.

Guidance

  • Verify that the history.jsonl file is being correctly read and updated by the app after relaunch, as it seems to contain the necessary session data.
  • Check if there's a caching mechanism for the sidebar that might be causing it to display outdated information, and consider clearing any such cache after updating or relaunching the app.
  • Since the home screen Sessions panel correctly shows pinned sessions, compare the code or logic used to update this panel with that of the sidebar to identify any discrepancies.
  • Consider adding logging or debugging statements to track how session data is handled and updated in the app, especially around the time of relaunching.

Example

No specific code example can be provided without more details on the app's internal workings, but ensuring that session data is correctly loaded from ~/.claude/projects/<project>/ and that any caching is properly invalidated after updates could be key.

Notes

The issue seems to be related to how the app handles session data after relaunching, particularly with the sidebar not updating correctly. The fact that the home screen Sessions panel works as expected suggests the issue might be isolated to the sidebar's implementation or its data synchronization mechanism.

Recommendation

Apply a workaround by using the home screen Sessions panel for managing pinned sessions and searching for other sessions until a more permanent fix can be implemented, as the underlying issue seems complex and may require deeper investigation into the app's session management and UI update logic.

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 Sidebar Recents and Pinned sections not displaying sessions after relaunch [2 comments, 2 participants]