Problem
When using Ghostty over SSH, there's no way to paste images from the local clipboard to remote tools that need file paths (like Claude Code, vim with image plugins, etc.).
Currently you have to:
- Save image locally
scp it to the remote host
- Type or paste the remote path
This breaks the flow, especially when iterating quickly with AI coding assistants.
Proposed Solution
When pasting (Ctrl+V) with an image in the clipboard while in an SSH session:
- Detect image data in clipboard
- Find active SSH ControlMaster socket
- Auto-upload via SCP to
/tmp/ghostty-paste-{uuid}.png
- Insert the remote file path as text
This uses existing ControlMaster sockets so there's no password prompt.
Use Case
I frequently use Claude Code over SSH and need to share screenshots/diagrams. This would make image sharing seamless.
Implementation
I have a working implementation ready if this is accepted: #10515
Config options:
ssh-image-paste = true/false (default: true)
ssh-image-paste-path = /tmp (configurable)
Problem
When using Ghostty over SSH, there's no way to paste images from the local clipboard to remote tools that need file paths (like Claude Code, vim with image plugins, etc.).
Currently you have to:
scpit to the remote hostThis breaks the flow, especially when iterating quickly with AI coding assistants.
Proposed Solution
When pasting (Ctrl+V) with an image in the clipboard while in an SSH session:
/tmp/ghostty-paste-{uuid}.pngThis uses existing ControlMaster sockets so there's no password prompt.
Use Case
I frequently use Claude Code over SSH and need to share screenshots/diagrams. This would make image sharing seamless.
Implementation
I have a working implementation ready if this is accepted: #10515
Config options:
ssh-image-paste = true/false(default: true)ssh-image-paste-path = /tmp(configurable)