Skip to content

Missing keystrokes in permission prompt #2313

@ahtilego

Description

@ahtilego

Describe the bug

When I get a permission prompt like this, and select "No, and tell Copilot what to do differently" option, I can't enter text there at my normal typing speed, because many of the keystrokes get lost. And it's even worse when I notice a typo and use left/right arrows to move the cursor to where I want to make an edit. Once i enter a character after moving the cursor, the cursor jumps to the end. It's a frustrating experience. The workaround is to just write it in notepad and then paste into copilot cli.

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ Copilot is attempting to access the following URL:                                                                                                                                                                                                                                                                                                      │
│                                                                                                                                                                                                                                                                                                                                                         │
│ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
│ │ https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/use-copilot-agents/use-copilot-cli                                                                                                                                                                                                                                            │ │
│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                                                                                                                                                                                                                                                                         │
│ Do you want to allow this access?                                                                                                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                                                                                                         │
│ ❯ 1. Yes                                                                                                                                                                                                                                                                                                                                                │
│   2. Yes, and approve all URLs from "https://docs.github.com" for the rest of the running session                                                                                                                                                                                                                                                       │
│   3. Yes, and approve all URLs from "https://docs.github.com" permanently                                                                                                                                                                                                                                                                               │
│   4. No, and tell Copilot what to do differently (Esc to stop)                                                                                                                                                                                                                                                                                          │
│                                                                                                                                                                                                                                                                                                                                                         │
│ ↑↓ to navigate · Enter to select · Esc to cancel                              

Affected version

1.0.11

Steps to reproduce the behavior

  1. Cause the permission prompt to appear
  2. Select the last option "No, and tell Copilot what to do differently"
  3. Try to enter something at normal typing speed (assuming you're not really bad at typing)
  4. Notice how some keystrokes are lost

Expected behavior

No keystrokes are lost

Additional context

This happens on Windows and on LInux

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:permissionsTool approval, security boundaries, sandbox mode, and directory restrictionsarea:theming-accessibilityVisual themes, colors, dark/light mode, contrast, screen readers, i18n/RTL

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions