Summary
On macOS, pressing Backspace on an image attachment token (e.g. [π copilot-image-14c299.png]) in the input removes one character at a time. On Windows, pressing Backspace removes the entire token at once β a much better UX.
Steps to Reproduce
- macOS only
- Copy an image to clipboard (e.g.
screencapture -c /dev/null)
- In the Copilot CLI, press
Ctrl+V to attach the image (or use the Windows-native behavior)
- Press
Backspace once
Expected: Entire token [π copilot-image-xxxxx.png] is removed
Actual: One character is removed from the end of the token
Root Cause
On macOS, Backspace sends \x7f (DEL, ASCII 127). The CLI's token-boundary deletion logic appears to only activate on Windows-specific key sequences, not on the \x7f byte macOS terminals emit.
Related
Summary
On macOS, pressing
Backspaceon an image attachment token (e.g.[π copilot-image-14c299.png]) in the input removes one character at a time. On Windows, pressingBackspaceremoves the entire token at once β a much better UX.Steps to Reproduce
screencapture -c /dev/null)Ctrl+Vto attach the image (or use the Windows-native behavior)BackspaceonceExpected: Entire token
[π copilot-image-xxxxx.png]is removedActual: One character is removed from the end of the token
Root Cause
On macOS,
Backspacesends\x7f(DEL, ASCII 127). The CLI's token-boundary deletion logic appears to only activate on Windows-specific key sequences, not on the\x7fbyte macOS terminals emit.Related