[FEATURE] Setting for the clipboard copy command (Linux)
Status Open
Maintainer reply None cached
Activity 0 comments · opened Oct 15, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
On Linux, Claude Code copies a selection by running wl-copy when WAYLAND_DISPLAY is set, otherwise xclip/xsel, and also sends OSC 52. Some terminals (GNOME Terminal/VTE) drop OSC 52. In a VM or container there is no display, so to send copies to the host we put a fake wl-copy on PATH and set a dummy WAYLAND_DISPLAY. It works, but it depends on the probe order staying the same.
Proposed Solution
Request: an env var or setting naming the copy command, e.g. CLAUDE_CODE_COPY_COMMAND="my-copy --primary", which gets the text on stdin. When it's set, Claude Code uses it in place of the probe list.
Alternative Solutions
We put a fake wl-copy on PATH and set a dummy WAYLAND_DISPLAY.
Priority
Low - Nice to have
Feature Category
Interactive mode (TUI)
Use Case Example
_No response_
Additional Context
_No response_