Describe the bug
Running under WSL, when copying text, BOM (0xFEFF) is always prepended to any copied text segment.
e.g.
Then that strongly points to a Copilot CLI copy bug.
If it happens:
- only when copying from Copilot CLI output
- regardless of where the selection starts
- and always as a leading zero-width character
then the most likely explanation is that the UI/renderer is placing a hidden U+FEFF/BOM at the start of
copied selections.
So yes — based on what you described, I’d treat this as a bug in Copilot CLI’s copy/export behavior, not
in WSL or Bash.
Affected version
GitHub Copilot CLI 1.0.21.
Steps to reproduce the behavior
- Install ubuntu under WSL
- Install homebrew
brew install copilot-cli
copilot
- Highlight some text output from the copilot app
- Right-click
- Paste the output into an editor that shows zero-width characters
- Text is prepended with 0XFEFF
Expected behavior
Text is not prepended with 0XFEFF
Additional context
No response