[FEATURE] Expose a command to resume previous session in VS Code/Cursor extension panel
Problem
The Claude Code VS Code/Cursor extension exposes ~22 commands via package.json, but none of them invoke the "Session history" picker or resume the most recent session within the panel. The "Session history" button in the panel header is purely React/webview state (toggles a modal via internal q(!G) state) and does not post a message to the extension host that could be wrapped in a registered command.
This means power users cannot bind a keyboard shortcut (e.g. browser-style Cmd+Shift+T) to "reopen previously closed Claude Code session" in the panel. The only workaround is claude --continue in the integrated terminal, which lives in the terminal — not in the panel.
Proposed solution
Register one or both of the following commands so they can be bound in keybindings.json:
claude-vscode.openSessionHistory— opens the Session history picker modalclaude-vscode.resumePreviousSession— directly resumes the most recently active session in the current workspace, in the panel
Example user keybinding:
{
"key": "cmd+shift+t",
"command": "claude-vscode.resumePreviousSession",
"when": "!terminalFocus"
}
Why it matters
- Browser-style "reopen closed tab" muscle memory is universal; users expect Cmd+Shift+T to work
claude --continuein terminal is functional but breaks the panel-centric workflow- The data is already there (sessions are listed via the existing webview UI) — only the command-host bridge is missing
Environment
- Cursor (VS Code-based) with Claude Code extension v2.1.126
- macOS
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗