github / github/copilot-cli

Clipboard copy broken while Copilot CLI is running (Windows)

Aberta
#3,981 0 comentários 0 reações 0 responsáveis Ver no GitHub
area:platform-windows
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

## Bug Report

### Summary
While the GitHub Copilot CLI app is running, clipboard copy stops working entirely in that process. Selecting text and using right-click copy or Ctrl+C shows a 'copied to clipboard' confirmation, but nothing is actually written to the Windows clipboard — paste returns the previous clipboard content instead.

Clipboard functionality restores immediately upon exiting the CLI with \/exit\.

### Steps to Reproduce
1. Launch GitHub Copilot CLI on Windows
2. Select any text in the session output
3. Right-click → Copy (or Ctrl+C) — shows 'copied to clipboard'
4. Switch to any other app and paste
5. Previous clipboard content is pasted instead of the selected text

Also reproducible via:
\\\powershell
echo 'test' | clip
\\\
Run inside the CLI process — \Get-Clipboard\ reads it back fine within the same process, but the clipboard is not accessible from other applications.

### Expected Behavior
Selected text is copied to the Windows system clipboard and can be pasted in other apps.

### Actual Behavior
'Copied to clipboard' confirmation displays but clipboard is not updated. Previous clipboard content persists.

### Environment
- OS: Windows
- Copilot CLI version: 1.0.66
- RDP (Windows App) was connected at time of discovery but issue persists after disconnecting

### Workaround
Exit the CLI with \/exit\ — clipboard works again immediately in PowerShell.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Nenhum arquivo, teste ou ponto de entrada é especificado. Primeiro, reproduza a falha no Windows executando a CLI e o comando PowerShell fornecido para a área de transferência; em seguida, rastreie como a CLI interage com a área de transferência do sistema. O trabalho estará concluído quando o texto copiado da CLI estiver disponível para outros aplicativos enquanto a CLI continuar em execução, sem introduzir regressões na solução alternativa documentada.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
powershell, shell
Domínio
cli, operating-systems
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.