Clipboard copy broken while Copilot CLI is running (Windows)
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
## 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>
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp, bài kiểm thử hay điểm vào nào được nêu. Trước tiên, hãy tái hiện lỗi trên Windows bằng cách chạy CLI và lệnh PowerShell được cung cấp cho clipboard, sau đó theo dõi cách CLI tương tác với clipboard hệ thống. Công việc được xem là hoàn tất khi văn bản CLI đã sao chép có thể được các ứng dụng khác sử dụng trong khi CLI vẫn đang chạy, mà không làm phát sinh hồi quy đối với workaround đã được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- powershell, shell
- Lĩnh vực
- cli, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100