UAT: TUI clipboard operations not implemented — no pyperclip integration or OSC 52 fallback #5067

Closed
opened 2026-04-09 00:54:00 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: TUI — Clipboard Operations

Severity: Medium (copy/paste workflow broken)

What Was Tested

Clipboard operations as defined in the specification (§ Clipboard Operations).

Expected Behavior (from spec)

The TUI provides clipboard integration:

Operation Trigger Behavior
Auto-copy on selection Mouse text selection When ui.auto_copy is true (default), any text selected with the mouse is automatically copied to the system clipboard
Block copy c in block context menu Copies the focused block's text content to the clipboard
Block copy to prompt p in block context menu Inserts the focused block's text into the prompt TextArea at the cursor
Manual copy OS-native selection + copy Standard terminal copy behavior

Clipboard access uses pyperclip when available, with fallback to OSC 52 escape sequences for terminal-native clipboard access (works over SSH and in tmux/screen). If neither is available, copy operations display a flash message with the content for manual copying.

Actual Behavior (from code analysis)

No clipboard integration exists in the TUI codebase:

  • pyperclip is not imported anywhere in src/cleveragents/tui/
  • No OSC 52 escape sequence generation code exists
  • No auto-copy on mouse selection logic
  • No block copy operations (block cursor/context menu not implemented)
  • No flash message fallback for clipboard failures

Steps to Reproduce

  1. Run agents tui
  2. Select text with the mouse — not copied to clipboard
  3. No c key in context menu (context menu not implemented)

Code Location

  • src/cleveragents/tui/ — no clipboard module exists
  • pyperclip not in pyproject.toml TUI dependencies

Impact

Users cannot copy conversation content to the clipboard via the TUI. This is a fundamental productivity feature for working with actor responses.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Bug Report **Feature Area:** TUI — Clipboard Operations **Severity:** Medium (copy/paste workflow broken) ### What Was Tested Clipboard operations as defined in the specification (§ Clipboard Operations). ### Expected Behavior (from spec) The TUI provides clipboard integration: | Operation | Trigger | Behavior | |-----------|---------|----------| | Auto-copy on selection | Mouse text selection | When `ui.auto_copy` is `true` (default), any text selected with the mouse is automatically copied to the system clipboard | | Block copy | `c` in block context menu | Copies the focused block's text content to the clipboard | | Block copy to prompt | `p` in block context menu | Inserts the focused block's text into the prompt TextArea at the cursor | | Manual copy | OS-native selection + copy | Standard terminal copy behavior | Clipboard access uses `pyperclip` when available, with fallback to OSC 52 escape sequences for terminal-native clipboard access (works over SSH and in tmux/screen). If neither is available, copy operations display a flash message with the content for manual copying. ### Actual Behavior (from code analysis) No clipboard integration exists in the TUI codebase: - `pyperclip` is not imported anywhere in `src/cleveragents/tui/` - No OSC 52 escape sequence generation code exists - No auto-copy on mouse selection logic - No block copy operations (block cursor/context menu not implemented) - No flash message fallback for clipboard failures ### Steps to Reproduce 1. Run `agents tui` 2. Select text with the mouse — not copied to clipboard 3. No `c` key in context menu (context menu not implemented) ### Code Location - `src/cleveragents/tui/` — no clipboard module exists - `pyperclip` not in `pyproject.toml` TUI dependencies ### Impact Users cannot copy conversation content to the clipboard via the TUI. This is a fundamental productivity feature for working with actor responses. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Author
Owner

Closing as duplicate of #4793 — both issues report the same problem: TUI clipboard operations not implemented (pyperclip/OSC 52 integration absent).


Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Closing as duplicate of #4793 — both issues report the same problem: TUI clipboard operations not implemented (pyperclip/OSC 52 integration absent). --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#5067
No description provided.