github / github/copilot-cli

cannot copy (/copy) to clipboard

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

描述

### Describe the bug

Cannot copy to clipboard via `/copy` slash command

gets error:
`Failed to copy to clipboard: Error: Failed to set text: Failed to write clipboard content: A required Wayland protocol (ext-data-control, or wlr-data-control version 1) is not supported by the compositor`

- Operating System: Windows OS (though am running through WSL Ubuntu)
- Terminal emulator: WezTerm
- Shell: zsh

### Affected version

1.0.66

### Steps to reproduce the behavior

1. Open copilot cli, send simply message
2. attempt to `/copy` last assistant message, gets error (Failed to copy to clipboard: Error: Failed to set text: Failed to write clipboard content: A required Wayland protocol (ext-data-control, or wlr-data-control version 1) is not supported by the compositor)

### Expected behavior

copy command should work successfully on all various platform surfaces
(tested in Windows OS normal Powershell7 terminal, and works there on same machine)

### Additional context

- Operating System: Windows OS (though am running through WSL Ubuntu)
- Terminal emulator: WezTerm
- Shell: zsh

貢獻指南

開啟貢獻指南

研究方向

首先定位 `/copy` 斜線命令的進入點和剪貼簿整合,然後在使用 WezTerm 和 zsh 的 WSL Ubuntu 中重現此故障。將其與正常運作的 Windows PowerShell 情況進行比較,並確認複製最後一則 assistant 訊息時能在沒有 Wayland 通訊協定錯誤的情況下成功完成。

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

評估

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

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

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