VS Code extension loses chat history in tab when switching projects (still resumable via CLI)

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 6, 2026

Description
When switching projects in the Claude Code VS Code extension, the currently open chat tab loses its history/session reference. The conversation is not actually lost — running claude --resume (or claude -r) in the terminal for that project directory still shows the session and its full history.

Steps to reproduce

  1. Open a project in VS Code with the Claude Code extension, start a chat.
  2. Switch to a different project (via the extension's project switcher).
  3. Switch back to the original project.

Expected behavior
The chat tab should either restore the previous session automatically, or provide an in-extension way to resume it (similar to claude --resume in the terminal).

Actual behavior
The tab shows no history / appears as a fresh session. The transcript still exists on disk (confirmed via claude --resume in the terminal), so this appears to be a UI/session-restoration issue in the extension rather than data loss.

Environment

  • Platform: macOS (Darwin)
  • Interface: Claude Code VS Code extension

View original on GitHub ↗