Skip to content

[FEATURE] esc key to exit code edition preview window - vscode addin #72279

Description

@Eraguzy

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

When reviewing a suggested edit in the VS Code extension, Claude opens a preview/diff view. To close it, users must click the X button or click elsewhere.
Many users instinctively press Esc to dismiss temporary views. Currently, Esc stops Claude's generation instead, which can accidentally interrupt the workflow and requires manually asking Claude (sending a message in the chat) to continue.

Proposed Solution

When a preview/diff view is focused:

Esc should close the preview.
Esc should only stop Claude's generation when there is no dismissible preview open.

This would align with common UI expectations, reduce accidental interruptions, and improve the keyboard-driven experience.

Alternative Solutions

Esc would not close the preview and that would be fine. but interrupting the askquestion/thinking process is quite annoying (and consumes more tokens)

Priority

Low - Nice to have

Feature Category

Other

Use Case Example

  1. Claude suggests an edit and opens the preview/diff view.

  2. I open the preview to review the proposed changes.

  3. After reviewing, I instinctively press Esc to close the preview, as this is a common shortcut for dismissing temporary views.

  4. Instead of closing the preview, Esc stops Claude's generation.

  5. I then need to explicitly ask Claude to continue, even though stopping the generation was not my intention. Eventually the next edition or proposed answers are quite different eventhough i was satisfied with the previous ones

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions