Skip to content

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

Description

@epicwhale

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:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions