opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): console copy-to-clipboard via opentui

Open edlsh opened this issue 1 week ago • 0 comments

Closes #4885

Supersedes #5239 — uses opentui's new onCopySelection callback from sst/opentui#411.

Changes

  • Updated @opentui/core and @opentui/solid to 0.1.61
  • Wired renderer.console.onCopySelection callback for clipboard integration
  • Removed manual MouseParser implementation (now handled by opentui)

Features (from opentui)

  • Mouse selection: Click and drag to select text in console
  • [Copy] button: Clickable button in console title bar
  • Keyboard shortcut: Ctrl+Shift+C to copy selection
  • OSC52 support: Works in tmux and terminals supporting OSC52

Context: https://github.com/sst/opencode/issues/4885#event-21603684651

edlsh avatar Dec 17 '25 01:12 edlsh