github / github/copilot-cli

Copy/Paste not working properly when selecting text from the Timeline

Ouverte
#3,496 1 commentaire 6 réactions 0 personnes assignées Voir sur GitHub
area:input-keyboard area:platform-windows
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### Describe the bug

For the past few release, starting around 1.50, copying selected text from the Timeline has not been working correctly. This only happens when the selected text is on a single line. If the selection spans more than one line, the copy/paste will work correctly.

This is happening in the Terminal in VS Code and Windows Terminal (for both underlying Command Prompt and PowerShell 7.x). This same behavior is also occurring on multiple computers.

When I select text to copy and use either right-click or ctrl+c, I get the copied to clipboard message in the CLI Footer, but what gets pasted is not what I had selected to copy. The pasted text is text that exists in the Timeline, but it's not the intended text at all.

For example, I ran /version to get my current CLI version. I just tried to copy/paste the value and it definitely was not the version text that I had selected to copy.

Lastly, this is the only program where I am experiencing this behavior.

### Affected version

1.0.52-4

### Steps to reproduce the behavior

1. Run /version
2. Select the only relevant part of the output
3. right-click or ctrl+c the selected text
4. Observe the "copied to clipboard" message in the footer
5. Paste the value in any other program, say Notepad
6. Observe the pasted text is not the text that was selected to be copied. It's text from within the Timeline, just not the intended text.

### Expected behavior

The pasted text should be the text that was selected.

### Additional context

- Windows 11 25H2
- AMD64

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez le problème dans la Timeline en exécutant /version, en sélectionnant du texte sur une seule ligne, en le copiant avec un clic droit ou Ctrl+C, puis en le collant dans Notepad. Comparez les sélections sur une seule ligne et sur plusieurs lignes dans le CLI de Windows Terminal ; c’est terminé lorsque la valeur collée correspond exactement au texte sélectionné et que le pied de page signale toujours l’action de copie.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.