github / github/copilot-cli

cannot copy (/copy) to clipboard

オープン
#3,985 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
area:platform-linux
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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 のケースと比較し、最後のアシスタントメッセージのコピーが Wayland プロトコルエラーなしで成功することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell, ubuntu
領域
cli, operating-systems
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。