claude-code - 💡(How to fix) Fix [FEATURE] Keyboard shortcut / command for Session History in VSCode extension [1 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#52750Fetched 2026-04-24 10:40:35
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Root Cause

  1. Because it's a real command, users can bind any shortcut they want in keybindings.json, for example: { "key": "cmd+shift+h", "command": "claude-code.showSessionHistory", "when": "focusedView == 'claude-code.view' || editorTextFocus" }
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

In the Claude Code VSCode extension, the Session History panel (clock icon, top-right of the Claude Code view) can only be opened by clicking the icon with the mouse. There is no corresponding VSCode command exposed in the Command Palette, so users cannot bind a keyboard shortcut to it via keybindings.json either.

This slows down a very common action — switching between recent local/web sessions — especially for keyboard-driven workflows where everything else (New Session, Focus View, Open in New Tab, etc.) is already available as a command.

Expected: expose a command such as claude-code.showSessionHistory (or similar) in the Command Palette so users can either trigger it directly or bind it to a custom keyboard shortcut.

Proposed Solution

Expose the Session History panel as a first-class VSCode command so it behaves like the other Claude Code actions already in the Command Palette (e.g. "Claude Code: Focus on Claude Code View", "Claude Code: Open in New Tab").

Ideal UX:

  1. A new command registered in the Command Palette, e.g.:

    • Claude Code: Show Session History
    • command id: claude-code.showSessionHistory
  2. Running the command opens the same dropdown that currently appears when clicking the clock icon, with the Local / Web tabs and the search box focused.

  3. Because it's a real command, users can bind any shortcut they want in keybindings.json, for example: { "key": "cmd+shift+h", "command": "claude-code.showSessionHistory", "when": "focusedView == 'claude-code.view' || editorTextFocus" }

  4. Optionally ship a sensible default keybinding (e.g. Cmd+Shift+H / Ctrl+Shift+H) that users can override.

  5. Running the command a second time (or pressing Escape) closes the dropdown, matching the click-toggle behavior of the icon.

This keeps the feature consistent with the rest of the extension's command surface and unblocks keyboard-driven workflows without any UI change.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Exposing the Session History panel as a VSCode command, such as claude-code.showSessionHistory, would allow users to trigger it via the Command Palette or bind it to a custom keyboard shortcut.

Guidance

  • Register a new command in the Command Palette, e.g., Claude Code: Show Session History, with a command id like claude-code.showSessionHistory.
  • Ensure the command opens the same dropdown as the clock icon, with the Local / Web tabs and search box focused.
  • Allow users to bind custom shortcuts in keybindings.json, such as cmd+shift+h, to the new command.
  • Consider shipping a default keybinding, e.g., Cmd+Shift+H / Ctrl+Shift+H, that users can override.

Example

{
  "key": "cmd+shift+h",
  "command": "claude-code.showSessionHistory",
  "when": "focusedView == 'claude-code.view' || editorTextFocus"
}

Notes

The proposed solution aims to maintain consistency with the rest of the extension's command surface, enhancing the user experience for keyboard-driven workflows.

Recommendation

Apply the proposed solution by exposing the Session History panel as a VSCode command, allowing users to leverage the Command Palette and custom keybindings for improved workflow efficiency.

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 [FEATURE] Keyboard shortcut / command for Session History in VSCode extension [1 participants]