CommandCodeAI / CommandCodeAI/command-code
Image clipboard pasting fails on Kali Linux/X11 vm on MAC OS 26.5 (Works on Windows)
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
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?.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 CLI prompt 的粘贴处理入手,在带有 macOS 剪贴板图像的 Kali Linux X11 VM 中复现该故障。将现有的 Windows 图像粘贴行为与 Linux 剪贴板处理进行比较,然后使用 issue 中描述的 xclip 或 wl-clipboard fallback,验证图像 payload 会在 prompt 中变为临时文件路径。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- linux, macos, zsh
- 领域
- cli, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100