Option to auto-restore the previous session after reload (VS Code extension)

Open 💬 0 comments Opened Jun 23, 2026 by schrieferth

Problem / use case

After reloading the VS Code window (or reopening the editor), the Claude Code panel starts empty. To get back to what I was doing, I have to open the session history and manually pick the most recent session — every single time. This is repetitive friction in a normal day where window reloads happen often (extension updates, settings changes, crashes).

Current behavior

On reload, no session is shown. The previous conversation is only reachable by manually selecting the last entry from the session history list.

Desired behavior

A setting (e.g. claudeCode.restorePreviousSessionOnStartup, default off for backward compatibility) that, when enabled, automatically reopens the most recent session for the current workspace on startup/reload — so I land back where I left off without touching the history.

Ideally:

  • Scoped per workspace (restore the last session that belonged to this workspace/folder).
  • Just displays/attaches the previous session; does not auto-send anything.

Alternatives considered

Manually picking the last session from history every time — works but is repetitive. A "continue last session" capability exists for the CLI (--continue); the ask is an automatic, configurable equivalent for the extension UI on reload.

Environment

  • Claude Code VS Code extension: anthropic.claude-code@2.1.186
  • VS Code: 1.125.1
  • OS: macOS (Darwin 25.5.0)

View original on GitHub ↗