github / github/copilot-cli

Clipboard copy broken while Copilot CLI is running (Windows)

未關閉
#3,981 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:platform-windows
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

## 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>

貢獻指南

開啟貢獻指南

研究方向

No file, test, or entry point is named. First reproduce the failure on Windows by running the CLI and the provided PowerShell clipboard command, then trace how the CLI interacts with the system clipboard. Done means copied CLI text is available to other applications while the CLI remains running, without regressing the documented workaround.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
powershell, shell
領域
cli, operating-systems
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。