You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ctrl+shift+c no longer copies to clipboard on Linux #2082
Pressing ctrl+shift+c copies selected text to the clipboard in almost all linux terminal sessions on Ubuntu 24.04.
As of at least v1.0.4 of the github copilot CLI, this shortcut no longer works.
I saw that the ctrl+c adn right click now can be used for copying selected text, but for that to work, I have to 1. Have xclip installed, and 2. re-learn the keyboard shortcut for only the github copilot CLI or move to the mouse. Both of these are unacceptable compromises for a solution that used to work.
edit: ctrl+shift+v is still the shortcut to paste in to Copilot CLI, so it makes even less sense for ctrl+shift+c to be broken
Affected version
GitHub Copilot CLI 1.0.5.
Steps to reproduce the behavior
Open copilot CLI
Select any text
press ctrl+shift+c
attempt to paste in another program - nothing happens.
Expected behavior
Text is copied when pressing ctrl+shift+c and can be pasted in another terminal
Additional context
No response
Reacted by Mike Boiko, John Villalovos, Raphaël Odini, Enrico Milanese, Luke Brenton, binhex, Sven R, Dennis Ogiermann, Anton Petrov, Raf (Raffaele Rialdi) and 4 more
@tpope Thanks for the suggestion, but unfortunately I don't think that's a good solution, as it breaks the ability to scroll back through the conversation with the mouse wheel.
Reacted by R., Raphaël Odini, Natan Severo and Andrea d'Auria
You can hold down shift in most terminals to temporarily bypass mouse reporting and select text.
You can use a terminal that supports sending shift+ctrl+c to the terminal application (Ghostty, maybe others). Using a terminal with OSC 52 support (many terminals support it) will also eliminate the xclip requirement.
Reacted by John Villalovos, Georg Unterholzner, Felix Goh, loorschot-qvantel, Simon-Martin Schröder and fkrestan
@tpope I'm sure there are an infinite number of workarounds. That doesn't change my opinion that this is a bug that needs fixing. It broke functionality that existed for many versions and surprises the Linux power user by removing a common terminal feature.
Reacted by Marcel, Stefano Braghetto, R., John Villalovos, Daniel Thiele, Aleksander Burzec, qaamgo-luca, binhex, Shane McKee, Andrea d'Auria and 1 more
ctrl+c to copy doesn't seems quite right. Especially when it's the SAME command used to exit the CLI.
How many times do we execute the command twice or more in a row just to make sure we actually copied a selected text? In my case, at least twice. Sometimes more. In fact, I already happened to me: I ended up exiting the CLI session.
For someone so used to copy and paste in terminal mode using ctrl+shift+c to copy is what it feels "right".
Related this has also broken my 'middle-click' to paste I use with MobaXterm, which is derived from PuTTY. I don't have this kind of behavior with Claude, Codex, or Gemini.
For those of you who came to this bug looking for a potential solution.
It appears that the Copilot CLI uses an OS based application called wl-clipboard which may not be installed out of the box on Ubuntu ARM based installations. I may have missed this detail somewhere in the CLI documentation
sudo apt-get install wl-clipboard
This app with a text selection and a right mouse click allowed the C+P to work properly.
Update: This fixed it for me sudo apt install -y xclip
Original:
This is certainly annoying and making it hard to use. Can't copy nor summaries, nor commands, and when trying the control+c / right-click, either close by accident or nothing happens...
Reacted by ehsanchez, alorchenkov and arturoribessanz
Update: This fixed it for me sudo apt install -y xclip
Original: This is certainly annoying and making it hard to use. Can't copy nor summaries, nor commands, and when trying the control+c / right-click, either close by accident or nothing happens...
this did not fix it for me (Ubuntu 25.10, copilot cli v1.0.21)
guys, I have asked Claude Sonnet 4.6 how to fix this, it was thinking for a while and suggested to install kitty terminal, install some additional libraries and it works like a charm. Good luck ;)
You can hold down shift in most terminals to temporarily bypass mouse reporting and select text.
You can use a terminal that supports sending shift+ctrl+c to the terminal application (Ghostty, maybe others). Using a terminal with OSC 52 support (many terminals support it) will also eliminate the xclip requirement.
The trick is indeed to hold down SHIFT while selecting with the mouse AND while then copying it (so shift+ctrl+c).
Very un-intuitive. Very much NOT documented in copilot's own help.
Reacted by Matias Fehn Unsvåg and sergiugrisciucvolke-rgb
The trick is indeed to hold down SHIFT while selecting with the mouse AND while then copying it (so shift+ctrl+c).
Very un-intuitive. Very much NOT documented in copilot's own help.
Thank you, this indeed solved it for me, although it's still a bit disappointing that this bug was introduced now already quite a few versions ago and it's still there. It used to work fine.
Root cause: On GNOME/Wayland, Copilot CLI's bundled native clipboard module ( wl-clipboard-rs ) fails because Mutter doesn't implement the wlr-data-control protocol. The CLI's OSC 52 fallback also silently failed since GNOME Terminal disables OSC 52 writes by default. Both failures were swallowed silently, so the UI reported "copied" despite nothing landing on the clipboard (there is no way for a CLI util to check whether OSC 52 is successful).
• Workaround: CLI also tries running wl-copy from the wl-clipboard package, so install that and the /copy, ctrl+c, and right click copy will work.
You could also enable OSC 52 in gnome terminal (if that is what you use). However, the reasons that OSC 52 and wlr-data-control are not implemented / turned off is for security reasons:
Any program that can write to your terminal's stdout — including a malicious script you run, output from cat-ing an untrusted file, or even text from a remote SSH session/tmux pane — can inject the raw escape sequence \x1b]52;c;\x07 and silently overwrite your system clipboard. clipboard hijacking — swap in a malicious shell command disguised as something else, hoping you paste-and-run it later.
The above should really be explained when running /terminal-setup. Maybe it should make a test and ask the user whether it works.
Even if they implemented ctrl+shift+c, which would be very nice indeed, it would still require the above wl-copy to work.
You can hold down shift in most terminals to temporarily bypass mouse reporting and select text.
You can use a terminal that supports sending shift+ctrl+c to the terminal application (Ghostty, maybe others). Using a terminal with OSC 52 support (many terminals support it) will also eliminate the xclip requirement.
The trick is indeed to hold down SHIFT while selecting with the mouse AND while then copying it (so shift+ctrl+c). Very un-intuitive. Very much NOT documented in copilot's own help.
Activity
tpope commentedon Mar 16, 2026
If you want the old behavior, you can set
mousetofalsein your~/.copilot/config.json.MasonMcV commentedon Mar 17, 2026
@tpope Thanks for the suggestion, but unfortunately I don't think that's a good solution, as it breaks the ability to scroll back through the conversation with the mouse wheel.
tpope commentedon Mar 17, 2026
xcliprequirement.MasonMcV commentedon Mar 18, 2026
@tpope I'm sure there are an infinite number of workarounds. That doesn't change my opinion that this is a bug that needs fixing. It broke functionality that existed for many versions and surprises the Linux power user by removing a common terminal feature.
bartoszkrawczykunivio commentedon Mar 19, 2026
same story here :/
StefanoBraghetto commentedon Mar 20, 2026
Same here
roperi commentedon Mar 21, 2026
Thanks, it works. But it is useless because what I want to copy requires scrolling up. Any tip to enable the old scrolling behaviour ?
roperi commentedon Mar 21, 2026
ctrl+cto copy doesn't seems quite right. Especially when it's the SAME command used to exit the CLI.How many times do we execute the command twice or more in a row just to make sure we actually copied a selected text? In my case, at least twice. Sometimes more. In fact, I already happened to me: I ended up exiting the CLI session.
For someone so used to copy and paste in terminal mode using
ctrl+shift+cto copy is what it feels "right".EDIT: Added last sentence.
JohnVillalovos commentedon Mar 22, 2026
Related this has also broken my 'middle-click' to paste I use with MobaXterm, which is derived from PuTTY. I don't have this kind of behavior with Claude, Codex, or Gemini.
jinbo-huang commentedon Mar 26, 2026
I have experienced the same issue. This issue makes Copilot CLI almost unusable.
morgangraphics commentedon Mar 30, 2026
For those of you who came to this bug looking for a potential solution.
It appears that the Copilot CLI uses an OS based application called
wl-clipboardwhich may not be installed out of the box on Ubuntu ARM based installations. I may have missed this detail somewhere in the CLI documentationThis app with a text selection and a right mouse click allowed the C+P to work properly.
menno-snom commentedon Apr 2, 2026
Hey I'm running copilot cli in a container, and it's now unusable because it blocks me from interacting with the text.
IanRiera commentedon Apr 2, 2026
Update: This fixed it for me
sudo apt install -y xclipOriginal:
This is certainly annoying and making it hard to use. Can't copy nor summaries, nor commands, and when trying the control+c / right-click, either close by accident or nothing happens...
enrico-mi commentedon Apr 9, 2026
this did not fix it for me (Ubuntu 25.10, copilot cli v1.0.21)
this worked
binhex commentedon Apr 15, 2026
this works for me, however not being able to scroll chat sessions is a killer, bug still present in v1.0.27
bartoszkrawczykunivio commentedon Apr 15, 2026
guys, I have asked Claude Sonnet 4.6 how to fix this, it was thinking for a while and suggested to install kitty terminal, install some additional libraries and it works like a charm. Good luck ;)
chrisplusplus commentedon Apr 23, 2026
work around: open the chat session in VS Code. copy/pate from there
binary-data commentedon May 7, 2026
It does work in Kubuntu + Konsole + zsh with holding down SHIFT, as @tpope mentioned (thanks!)
loorschot-qvantel commentedon Jun 4, 2026
The trick is indeed to hold down SHIFT while selecting with the mouse AND while then copying it (so shift+ctrl+c).
Very un-intuitive. Very much NOT documented in copilot's own help.
sedat-eyuboglu commentedon Jun 9, 2026
Pressing Shift while selecting with mouse works.
andrea-dauria-sony commentedon Jun 10, 2026
Thank you, this indeed solved it for me, although it's still a bit disappointing that this bug was introduced now already quite a few versions ago and it's still there. It used to work fine.
credmond commentedon Jun 26, 2026
Fix this. If I right click and Copilot says "copied to clipboard", it should be copied to clipboard. Not the opposite.
No undocumented tricks or hacks please.
runephilosof commentedon Jul 13, 2026
Root cause: On GNOME/Wayland, Copilot CLI's bundled native clipboard module (
wl-clipboard-rs) fails because Mutter doesn't implement thewlr-data-controlprotocol. The CLI'sOSC 52fallback also silently failed since GNOME Terminal disablesOSC 52writes by default. Both failures were swallowed silently, so the UI reported "copied" despite nothing landing on the clipboard (there is no way for a CLI util to check whetherOSC 52is successful).• Workaround: CLI also tries running
wl-copyfrom thewl-clipboardpackage, so install that and the/copy,ctrl+c, and right click copy will work.You could also enable OSC 52 in gnome terminal (if that is what you use). However, the reasons that
OSC 52andwlr-data-controlare not implemented / turned off is for security reasons:The above should really be explained when running
/terminal-setup. Maybe it should make a test and ask the user whether it works.Even if they implemented
ctrl+shift+c, which would be very nice indeed, it would still require the abovewl-copyto work.jaredxfeng commentedon Aug 19, 2026
Thank you, you are the best!!!