CommandCodeAI / CommandCodeAI/command-code
Image clipboard pasting fails on Kali Linux/X11 vm on MAC OS 26.5 (Works on Windows)
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 4k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
Description
Summary
The Linux version of the tool seems to be missing OS-level clipboard interception for binary images.
Expected Behavior
When using Command Code on a Windows host, the CLI running inside the kali vm natively intercepts the clipboard image data, silently saves it to a temporary directory, and successfully pastes the resulting file path into the prompt.
Actual Behavior
- When running Command Code inside a Linux vm on a macbook, pasting an image directly from the system clipboard into the CLI prompt fails.
- The terminal does not register the image data, and no file path is generated.
Steps to reproduce the issue
-
Run Command Code CLI in a Kali Linux (X11) terminal vm.
-
Copy an image to the host(mac os) system clipboard.
-
Paste the image directly into the CLI prompt inside the kali linux vm ran by VMware fusion pro hypervisor.
Command Code Version
0.30.1
Operating System
macOS
Terminal/IDE
Kali Linux Terminal (X11).
Shell
zsh
Additional context
Host OS: macOS (Apple Silicon M4).
Hypervisor: VMware Fusion Pro.
I have confirmed that the VMware host-to-guest clipboard bridge is functioning correctly.
When pasting the exact same copied image into a different AI CLI tool (Antigravity CLI) running in the same Kali terminal pane, the image pastes perfectly.
If I manually run an xclip command to rip the image from the clipboard, save it to /tmp/, and pipe that text file path back to my clipboard, Command Code accepts the text path without issue.
Could you look into adding a native fallback for Linux (perhaps leveraging xclip or wl-clipboard under the hood) to intercept image payloads and convert them to temp file paths, bringing it to feature parity with the Windows experience?.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the CLI prompt's paste handling and reproduce the failure in a Kali Linux X11 VM with a macOS clipboard image. Compare the existing Windows image-paste behavior with Linux clipboard handling, then verify that an image payload becomes a temporary file path in the prompt using the xclip or wl-clipboard fallback described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, macos, zsh
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100