[PR #5658] feat(tui): console copy-to-clipboard via opentui #11519

Closed
opened 2026-02-16 18:16:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5658

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5658 **State:** closed **Merged:** Yes --- Closes #4885 Supersedes #5239 — uses opentui's new `onCopySelection` callback from [sst/opentui#411](https://github.com/sst/opentui/pull/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
yindo added the pull-request label 2026-02-16 18:16:22 -05:00
yindo closed this issue 2026-02-16 18:16:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11519