claude-code - 💡(How to fix) Fix Session disappears from sidebar list after context auto-compaction

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…

When Claude Code auto-compacts the context window, the session disappears from the session list in the left sidebar. The session is still alive and the transcript is on disk, but there is no way to navigate back to it from the UI.

Root Cause

When Claude Code auto-compacts the context window, the session disappears from the session list in the left sidebar. The session is still alive and the transcript is on disk, but there is no way to navigate back to it from the UI.

Fix Action

Fix / Workaround

Session vanishes from the sidebar list. If the user navigates away, they cannot return to the session through normal UI. The only workaround is to stay on the window and use "Continue from where you left off" in a new session.

RAW_BUFFERClick to expand / collapse

Summary

When Claude Code auto-compacts the context window, the session disappears from the session list in the left sidebar. The session is still alive and the transcript is on disk, but there is no way to navigate back to it from the UI.

Steps to Reproduce

  1. Start a long Claude Code session
  2. Wait for (or trigger) automatic context compaction
  3. Observe: session disappears from the left sidebar session list
  4. Clicking away from the window makes the session permanently unreachable via the UI

Expected Behavior

Session remains visible in the sidebar after compaction. Compaction is an internal memory management event and should be invisible to the user from a navigation standpoint.

Actual Behavior

Session vanishes from the sidebar list. If the user navigates away, they cannot return to the session through normal UI. The only workaround is to stay on the window and use "Continue from where you left off" in a new session.

Environment

  • Platform: Windows 11 Pro
  • Shell: PowerShell

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