CommandCodeAI / CommandCodeAI/command-code
Cannot paste clipboard images into the CLI prompt
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 4k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the interactive prompt launched by cmd and trace how terminal paste input is handled, comparing clipboard image data with the existing working drag-and-drop attachment path. Reproduce on Linux in Kitty or XFCE Terminal, then verify that pasted images attach and normal text paste remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fish, linux
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100