VS Code extension loses chat history in tab when switching projects (still resumable via CLI)
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
- Open a project in VS Code with the Claude Code extension, start a chat.
- Switch to a different project (via the extension's project switcher).
- 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