Claude Code for VS Code: Safer Keyboard Handling and Diff Accept Behavior
The VS Code extension fixes many cases where a keypress or click triggered the wrong action: Escape stopping Claude at a delete confirmation, shortcuts such as Ctrl+1 answering an open dialog, and double clicks pressing buttons that appeared after the first click. Saving a proposed diff now accepts it only after the user clicks or types in its right side.
Key Takeaways
- Escape no longer stops Claude at Remove or Delete confirmations and some panel buttons.
- Stray shortcuts can no longer answer an open dialog, such as restoring files in the rewind confirmation.
- Double clicks no longer hit buttons that appear after the first click.
- Proposed diffs are accepted on save only after the user interacts with the right side.
- Terminal-session diffs open without stealing keyboard focus.
- Claude is told about partial rejections and edits made in the diff view.
Keys and clicks that did the wrong thing
Version 2.1.331 of the VS Code extension fixes a long list of accidental-action bugs.
- Escape no longer stops Claude at a Remove or Delete confirmation in the MCP, Hooks and Memory dialogs, on a side question panel's button or link, or on the Bookmarks button with its panel open.
- Shortcuts such as Ctrl+1, Alt+1 or Ctrl+Space no longer answer an open dialog, which could restore files in the rewind confirmation or switch the git branch.
- A quick double click no longer presses a button or row that appeared after the first click, or starts a second compaction from the context usage circle.
- Holding or double-clicking can no longer trigger a rewind restore, or remove a memory, MCP server or marketplace, without confirmation.
- Enter no longer rewrites a message or runs a menu action when a
/wordsuch as the path/apistands beside other text, and a typed slash command keeps its arguments. - Ctrl+J and Ctrl+O in the chat no longer also open VS Code's terminal or Open File dialog on Windows and Linux.
Changed diff behavior
Saving a proposed diff now accepts it only after the user clicks or types in its proposed (right) side. A notification says when a save is refused, or when a close with Save applies nothing. Diffs from a terminal session open without moving keyboard focus, and beside a file with unsaved changes; to answer, the user clicks Accept or uses the terminal. Claude is now told when a user rejects part of a proposed edit or changes it in the diff view before accepting, and diff tabs no longer open out of order when several subagents wait for approval.
Rewind
Claude no longer continues to edit files after the user rewinds code while it is working. Rewind no longer shows "No active session" after Claude's process had ended.
Editing and text
Typed text is no longer lost after /tasks, /copy, /export, a skipped /feedback, or /plan while already in plan mode. The question card keeps a typed "Other" answer on Ctrl/Cmd+Enter, and unsaved changes are no longer overwritten in a folder opened through a symlink.