UAT: TUI clipboard operations not implemented — pyperclip/OSC 52 integration and block copy/paste absent #4793

Open
opened 2026-04-08 18:59:15 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: TUI Clipboard Operations
Severity: Low (backlog)
Found by: UAT tester instance uat-tui-worker-1
Spec reference: docs/specification.md §Clipboard Operations (lines ~30125–30136)


What Was Tested

The src/cleveragents/tui/ directory was inspected for clipboard integration.

Expected Behavior (from spec)

The spec defines clipboard integration for the TUI:

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

No clipboard integration exists in the TUI codebase:

  • No pyperclip import or usage
  • No OSC 52 escape sequence output
  • No ui.auto_copy setting integration
  • No block copy (c) or copy-to-prompt (p) actions (these are part of the context menu, which is also not implemented)

Code Location

  • Missing: Clipboard service (pyperclip + OSC 52 fallback)
  • Missing: ui.auto_copy setting integration in conversation widget
  • Missing: Block context menu with c (copy) and p (copy to prompt) actions
  • Missing: Flash message fallback when clipboard is unavailable

Impact

  • Users cannot copy actor responses or tool call results to clipboard via keyboard
  • Auto-copy on mouse selection is not implemented
  • The ui.auto_copy setting has no effect

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

## Bug Report **Feature Area:** TUI Clipboard Operations **Severity:** Low (backlog) **Found by:** UAT tester instance `uat-tui-worker-1` **Spec reference:** docs/specification.md §Clipboard Operations (lines ~30125–30136) --- ### What Was Tested The `src/cleveragents/tui/` directory was inspected for clipboard integration. ### Expected Behavior (from spec) The spec defines clipboard integration for the TUI: | 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 No clipboard integration exists in the TUI codebase: - No `pyperclip` import or usage - No OSC 52 escape sequence output - No `ui.auto_copy` setting integration - No block copy (`c`) or copy-to-prompt (`p`) actions (these are part of the context menu, which is also not implemented) ### Code Location - **Missing:** Clipboard service (pyperclip + OSC 52 fallback) - **Missing:** `ui.auto_copy` setting integration in conversation widget - **Missing:** Block context menu with `c` (copy) and `p` (copy to prompt) actions - **Missing:** Flash message fallback when clipboard is unavailable ### Impact - Users cannot copy actor responses or tool call results to clipboard via keyboard - Auto-copy on mouse selection is not implemented - The `ui.auto_copy` setting has no effect --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium — spec compliance bug identified by UAT testing
  • Story Points: 3 (M) — targeted fix to align implementation with spec
  • MoSCoW: Must Have — spec compliance is required for correct system behavior

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium — spec compliance bug identified by UAT testing - **Story Points**: 3 (M) — targeted fix to align implementation with spec - **MoSCoW**: Must Have — spec compliance is required for correct system behavior --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
HAL9000 added this to the v3.7.0 milestone 2026-04-09 03:03:56 +00:00
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#4793
No description provided.