Skip to content

Running under WSL, when copying text, BOM is always prepended to any copied text segment #2571

Closed

Description

@fhenskens

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

  1. Install ubuntu under WSL
  2. Install homebrew
  3. brew install copilot-cli
  4. copilot
  5. Highlight some text output from the copilot app
  6. Right-click
  7. Paste the output into an editor that shows zero-width characters
  8. Text is prepended with 0XFEFF

Expected behavior

Text is not prepended with 0XFEFF

Additional context

No response

Activity

  1. added theissue type on Apr 8, 2026
  2. inoa-jboliveira commented on Apr 14, 2026

    @inoa-jboliveira

    Hi, this makes the copy feature very hard to use, because you need to always delete a hidden char.
    I am also using copilot cli on ubuntu under WSL. I select text and do "ctrl+c" and it says "copied to clipboard".

  3. added
    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input
    area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal
    and removed on Apr 16, 2026
  4. copilot-cli-bot commented on Sep 19, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.86. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions