CommandCodeAI / CommandCodeAI/command-code

Image clipboard pasting fails on Kali Linux/X11 vm on MAC OS 26.5 (Works on Windows)

Offen
#446 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

p2
Vorherrschende Sprache
Keine Sprachdaten
Sterne
4k
Forks
350
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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
  1. When running Command Code inside a Linux vm on a macbook, pasting an image directly from the system clipboard into the CLI prompt fails.
  2. The terminal does not register the image data, and no file path is generated.
Steps to reproduce the issue
  1. Run Command Code CLI in a Kali Linux (X11) terminal vm.

  2. Copy an image to the host(mac os) system clipboard.

  3. 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?.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne bei der Einfügebehandlung des CLI-Prompts und reproduziere den Fehler in einer Kali-Linux-X11-VM mit einem macOS-Zwischenablagebild. Vergleiche das bestehende Verhalten beim Einfügen von Bildern unter Windows mit der Zwischenablagenbehandlung unter Linux und überprüfe anschließend, dass ein Bild-Payload mithilfe des im Issue beschriebenen xclip- oder wl-clipboard-Fallbacks im Prompt zu einem temporären Dateipfad wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
linux, macos, zsh
Bereich
cli, operating-systems
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.