Skip to content

bug: Ctrl+Z does not undo pasted prompts in Amazon Q VS Code #3894

Description

@Mathi-MS

Checks

Operating system

If you're using the same Windows setup as before:

Expected behaviour

When I type a prompt manually in Amazon Q and press Ctrl+Z, the text is undone correctly.

I expect the same behavior when I copy and paste a prompt. Pressing Ctrl+Z should undo the pasted text.

Actual behaviour

When I copy and paste a prompt into Amazon Q in VS Code and press Ctrl+Z, the pasted text is not undone.

Interestingly, Ctrl+Z works correctly when the prompt is typed manually.

This is a small issue, but it can be frustrating when working in a rush. It happens repeatedly and interrupts the workflow because I have to manually remove or correct the pasted prompt.

I have attached a video demonstrating the issue.

Steps to reproduce

  1. Open VS Code with Amazon Q Developer.
  2. Open the Amazon Q chat/input area.
  3. Type some text manually.
  4. Press Ctrl+Z — the typed text is undone correctly.
  5. Copy a prompt/text from another application.
  6. Paste the prompt into Amazon Q.
  7. Press Ctrl+Z.
  8. Observe that the pasted prompt is not undone.

Expected: The pasted prompt should be removed/undone.

Actual: Ctrl+Z does not undo the pasted prompt.

Environment

OS: Windows 11
Editor: Visual Studio Code
Amazon Q: Amazon Q Developer VS Code extension
Amazon Q CLI: Not installed / `q` command is not recognized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions