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
- Start a Copilot session
- 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)
- Using the number pad on an external keyboard, select either 1 or 2
- 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