CommandCodeAI / CommandCodeAI/command-code

Cannot paste clipboard images into the CLI prompt

Aberta
#864 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Linguagem predominante
Sem dados de linguagem
Estrelas
4k
Forks
350
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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
  1. Start Command Code with cmd.
  2. Copy a screenshot or image to the system clipboard.
  3. Focus the Command Code prompt.
  4. Use the terminal paste shortcut.
  5. 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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Direção de pesquisa

Comece pelo prompt interativo iniciado por cmd e rastreie como a entrada colada no terminal é tratada, comparando os dados de imagem da área de transferência com o caminho existente e funcional de anexos por arrastar e soltar. Reproduza o problema no Linux em Kitty ou XFCE Terminal e verifique se as imagens coladas são anexadas e se a colagem de texto normal permanece inalterada.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
fish, linux
Domínio
cli, operating-systems
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Ativa
Clareza
Razoavelmente clara
Facilidade para iniciantes
52/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.