claude-code - 💡(How to fix) Fix Add auto-resume option to VS Code extension on startup [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#48044Fetched 2026-04-15 06:34:54
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

Feature Request

The Claude Code VS Code extension (tested on 2.1.107) currently has no setting or command to automatically resume the last session for a workspace when VS Code (or the extension) starts. Users must manually click "Past Conversations" or use /resume after every reload.

Proposed

Add a setting, e.g. claudeCode.resumeLastSessionOnStartup (boolean, default false), that — when the extension activates for a workspace — automatically opens the most recent session for that cwd instead of starting a blank chat.

Alternatively, expose a command like claude-vscode.resumeLastSession that users can bind to a keybinding or invoke from a tasks.json with runOn: folderOpen.

Why

The CLI already supports this via claude --continue, and session logs are already stored per project under ~/.claude/projects/<slug>/. The extension has the data it needs; only the startup wiring is missing.

This would make long-running, multi-day tasks in the extension UI much smoother — currently the Extension-UI advantage (diff previews, IDE context, MCP tools) comes at the cost of losing continuity on every VS Code restart.

Environment

  • Extension: anthropic.claude-code 2.1.107
  • OS: Windows 10

extent analysis

TL;DR

To address the issue, consider adding a setting to automatically resume the last session for a workspace when the VS Code extension starts.

Guidance

  • Review the proposed setting claudeCode.resumeLastSessionOnStartup and its default value to ensure it meets the requirements.
  • Investigate exposing a command like claude-vscode.resumeLastSession for users to bind to a keybinding or invoke from a tasks.json.
  • Check the existing session logs storage under ~/.claude/projects/<slug>/ to confirm the extension has the necessary data.
  • Consider the trade-offs between implementing the proposed setting versus the command-based approach.

Example

No code snippet is provided as the issue focuses on feature request and design discussion.

Notes

The solution may require updates to the extension's configuration and potentially its underlying logic to handle session resumption.

Recommendation

Apply workaround: Implement the proposed setting claudeCode.resumeLastSessionOnStartup to provide users with an option to automatically resume the last session, as it seems to be a straightforward solution that leverages existing data and functionality.

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

claude-code - 💡(How to fix) Fix Add auto-resume option to VS Code extension on startup [1 comments, 2 participants]