anomalyco / anomalyco/opencode

terminal does not clipboard read (kitty OSC 5522) for image paste over SSH

Open
#48,628 2 comments 2 reactions 1 assignee View on GitHub

@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
  1. Copy image on host to clipboard
  2. Run opencode tui on remote
  3. Try to paste over ghostty
Screenshot and/or share link

No response

Operating System

mac(host) + ubuntu(remote)

Terminal

Ghostty

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.