Skip to content

TypeError: Cannot read properties of undefined (reading 'startsWith') #715

@benrfairless

Description

@benrfairless

Describe the bug

When using an external keyboard on MacOS, I get the below error when I use the external "Enter" key or any keys in the number pad:
TypeError: Cannot read properties of undefined (reading 'startsWith')

Affected version

0.0.366 Commit: 0c18d21

Steps to reproduce the behavior

  1. Start a Copilot session
  2. Perform a task where copilot requests permissions to perform a task (such as making a change to a file, or browsing outside it's original context)
  3. Using the number pad on an external keyboard, select either 1 or 2
  4. Alternatively, move the cursor up or down and select ENTER on the external keyboard

Expected behavior

The selected option is passed through to Copilot and the session continues as normal

Additional context

  • Operating System: MacOS 26.1 (25B78)
  • CPU: Apple M1 Pro
  • Emulator: iTerm2
  • Shell: zsh

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions