anomalyco / anomalyco/opencode
terminal does not clipboard read (kitty OSC 5522) for image paste over SSH
Open
@kommander is already working on this.
Since Sep 12, 2026.
2.0
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I use the TUI over SSH and can't paste images. Unsure if it's a bug or a gap in the design: the clipboard I want to read is on my laptop, but the TUI is running on the remote box.
Add a read path to the terminal clipboard backend using kitty's clipboard protocol (OSC 5522). It's MIME-typed and travels in-band, so it works through SSH. It could slot in behind the existing ClipboardService.read({ preferredTypes }) ?
Terminal support:
- kitty: supported spec
- Ghostty: landed in ghostty-org/ghostty#13962
Plugins
No response
OpenCode version
opencode2 v0.0.0-beta-19425
Steps to reproduce
- Copy image on host to clipboard
- Run opencode tui on remote
- Try to paste over ghostty
Screenshot and/or share link
No response
Operating System
mac(host) + ubuntu(remote)
Terminal
Ghostty
Contributor guide
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.
Assessment
This issue has not been assessed yet.