CommandCodeAI / CommandCodeAI/command-code
Cannot paste clipboard images into the CLI prompt
Personne n'a encore pris cette issue.
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 4k
- Forks
- 350
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Summary
Pasting an image from the system clipboard into the Command Code CLI prompt does not attach the image. This prevents me from sharing screenshots directly during a session.
Expected Behavior
When an image is copied to the system clipboard and pasted into the prompt, Command Code should attach it as an image and show that it is ready to send.
Actual Behavior
Pasting an image from the clipboard does not attach anything to the prompt. Dragging the same image from the file manager into Command Code works correctly.
Steps to reproduce the issue
- Start Command Code with
cmd. - Copy a screenshot or image to the system clipboard.
- Focus the Command Code prompt.
- Use the terminal paste shortcut.
- Observe that no image is attached.
Command Code Version
1.54.1
Operating System
Linux
Terminal/IDE
Unknown
Shell
fish
Session file (optional)
No response
Fix prompt (optional)
Add clipboard image handling to the interactive prompt. Detect image clipboard data on paste, create an image attachment, and verify it works on Linux terminals without breaking normal text paste.
Additional context
Dragging an image file from the file manager into Command Code works correctly; only pasting image data directly from the clipboard fails. The issue reproduces in both Kitty and XFCE Terminal.
Command Code version: 1.54.1
OS: Linux
Shell: fish
Terminal/IDE: Kitty and XFCE Terminal
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par l’invite interactive lancée par cmd et suivez la façon dont les entrées collées depuis le terminal sont traitées, en comparant les données d’image du presse-papiers avec le chemin existant et fonctionnel d’ajout de pièces jointes par glisser-déposer. Reproduisez le problème sous Linux dans Kitty ou XFCE Terminal, puis vérifiez que les images collées sont jointes et que le collage de texte normal reste inchangé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- fish, linux
- Domaine
- cli, operating-systems
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 52/100