CommandCodeAI / CommandCodeAI/command-code
Image clipboard pasting fails on Kali Linux/X11 vm on MAC OS 26.5 (Works on Windows)
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4k
- Fork
- 350
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ phần xử lý dán của prompt CLI và tái hiện lỗi trong một VM Kali Linux X11 với một ảnh trong clipboard của macOS. So sánh hành vi dán ảnh hiện có của Windows với việc xử lý clipboard trên Linux, sau đó xác minh rằng payload ảnh trở thành một đường dẫn tệp tạm thời trong prompt bằng fallback xclip hoặc wl-clipboard được mô tả trong issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- linux, macos, zsh
- Lĩnh vực
- cli, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100