#9688·pi

regression: clipboard copy doesn't work anymore

Author: BroadlyWhitakerCreated Sep 17, 2026Updated Sep 17, 2026
Labelsbug

What happened?

In order to fix #9618, 3349e1db1800 changed the logic of when an OSC 52 clipboard copy event is emitted. It used to run whenever xsel/wl-copy weren't available. Now it only runs if they aren't available and an SSH session is detected.

I run pi inside an interactive container for isolation. Pi doesn't have access to X or Wayland so My terminal's OSC 52 support used to handle clipboard copy. Now, this no longer works because I'm using a "headless" terminal but not via SSH.

Since here's no reliable way to know if the terminal supports OSC 52 or not, I suggest it's be better for users who rely on terminal that lack OSC52 support to just install xsel/wl-copy. Then we can all enjoy a working clipboard if 3349e1db1800 is reverted .

Steps to reproduce

  1. run pi inside a container shell
  2. try to copy some text
  3. you now get an error message where previously an OSC 52 would trigger a clipboard copy.

Expected behavior

No response

Version

No response