github / github/copilot-cli

cannot copy (/copy) to clipboard

Open
#3,985 0 comments 2 reactions 0 assignees View on GitHub
area:platform-linux
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by locating the `/copy` slash-command entry point and the clipboard integration, then reproduce the failure in WSL Ubuntu with WezTerm and zsh. Compare it with the working Windows PowerShell case and verify that copying the last assistant message succeeds without the Wayland protocol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, ubuntu
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.