If you use Claude Code in VS Code, your conversations live in the extension's Session history, not in the terminal's session picker. Here's how it works and how to find something that seems to be gone.
Finding past conversations
Click the Session history button at the top of the Claude Code panel. You can:
- search by keyword or browse by time
- hover a session to rename or archive it
- open the Web tab to resume cloud sessions started on claude.ai with a GitHub repo (changes there aren't synced back)
Why sessions disappear
Automatic archiving. Since v2.1.265, the extension archives sessions that have been inactive for 14 days. They aren't deleted: open Session history and look under Archived. You can change the period with the claudeCode.archiveInactiveSessions setting (1, 2, 7 or 14 days, or 0 to turn it off). Unarchiving everything at once needs v2.1.277 or later.
The old "Delete session" button. Before v2.1.257, the action was called Delete session, but it only hid sessions, with no way to restore them. After upgrading, those sessions reappear under Archived.
The 30-day transcript cleanup. Separately from archiving, Claude Code deletes transcript files older than cleanupPeriodDays (30 by default). Once the file is gone, neither the extension nor the CLI can open it. More on that here.
Does VS Code share history with the CLI?
Partly, and Anthropic's own docs say it two ways. The VS Code page says the extension and CLI share the same conversation history. The sessions page says each surface keeps its own session history.
What happens in practice, as reported on GitHub in September 2026:
- Both write sessions to the same place:
~/.claude/projects/<project>/<session-id>.jsonl. claude --resumein a terminal does list sessions started in the extension.- The extension's list doesn't show sessions started in a terminal.
- The extension bundles its own copy of Claude Code, so
claudeisn't on your PATH unless you install the CLI separately.
So if a session is missing from the extension, try the terminal:
claude --resumePress Ctrl+A to search every project. The open issue tracking lost extension history is anthropics/claude-code#9258, with dozens of comments.
Keeping everything
Two settings keep history from vanishing: turn off auto-archiving with claudeCode.archiveInactiveSessions if you prefer one long list, and raise cleanupPeriodDays in ~/.claude/settings.json so the transcripts themselves last longer.
Shabash reads the same transcript files, from VS Code and the terminal alike, keeps a copy past the cleanup, and groups them into threads of work per project, so it doesn't matter which window a session started in.