Describe the bug
Mouse-selecting text from the current prompt input box and copying it includes the decorative left border of the input box in the clipboard payload. The copied prompt is therefore contaminated with a box-drawing glyph that the user did not type.
This occurs when the prompt wraps across multiple visual lines. The selection appears to cover the user-entered text, but pasting the clipboard contents also produces the cyan left-hand border shown by the input box.
For example, selecting the text shown below:
produces clipboard text containing the left border (and a lot of whitespace to the right of each line):
┃ Here's some example
┃ text
┃ that I'm going to
┃ copy.
Affected version
GitHub Copilot CLI 1.0.71-0.
Steps to reproduce the behavior
- Launch Copilot CLI in Ghostty on macOS.
- Enter enough text in the prompt input box for it to wrap across multiple lines.
- Mouse-drag to select the text inside the prompt input box.
- Copy the selection with
Cmd+C.
- Paste the clipboard contents into an editor or another application.
- Observe that the input box left-border glyph is included with the prompt text.
Expected behavior
Copying selected prompt text should copy only the user-entered content. Decorative input-box borders and other Copilot CLI UI chrome must not be present in the clipboard payload.
Done when mouse-selected single-line, multiline, and soft-wrapped prompt text can be copied without any input-box border glyphs or other decorative characters.
Additional context
Describe the bug
Mouse-selecting text from the current prompt input box and copying it includes the decorative left border of the input box in the clipboard payload. The copied prompt is therefore contaminated with a box-drawing glyph that the user did not type.
This occurs when the prompt wraps across multiple visual lines. The selection appears to cover the user-entered text, but pasting the clipboard contents also produces the cyan left-hand border shown by the input box.
For example, selecting the text shown below:
produces clipboard text containing the left border (and a lot of whitespace to the right of each line):
Affected version
GitHub Copilot CLI 1.0.71-0.Steps to reproduce the behavior
Cmd+C.Expected behavior
Copying selected prompt text should copy only the user-entered content. Decorative input-box borders and other Copilot CLI UI chrome must not be present in the clipboard payload.
Done when mouse-selected single-line, multiline, and soft-wrapped prompt text can be copied without any input-box border glyphs or other decorative characters.
Additional context
arm64)xterm-256color