Skip to content

[Bug]: Clipboard copy shows "copied N chars" but nothing is actually copied #16019

@0xharryriddle

Description

@0xharryriddle

Bug Description

When selecting text in Hermes TUI or the web dashboard and pressing Ctrl+C (Cmd+C on macOS), the UI displays a success message like "copied 42 characters", but the system clipboard remains empty. Pasting yields nothing. This breaks the core copy-paste workflow for all users.

Steps to Reproduce

Dashboard

  1. Run hermes dashboard
  2. Select any message text with the mouse
  3. Press Ctrl+C (or Cmd+C on macOS)
  4. Try to paste into an editor or terminal
  5. Result: Paste fails — clipboard is empty despite success notification

TUI

  1. Run hermes --tui
  2. Select text (via mouse or Shift+arrow keys)
  3. Press Ctrl+C OR run /copy slash command
  4. Observe message: "copied N characters"
  5. Try to paste somewhere
  6. Result: Paste fails — clipboard empty

Expected Behavior

Copying selected text should place that text into the system clipboard, allowing immediate paste into any application. The success message should only appear when the clipboard operation actually succeeds.

Actual Behavior

The clipboard remains empty despite success messages. The UI reports a false positive — users believe copy succeeded when it did not.

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

Debug report uploaded:
  Report     https://paste.rs/04UXg
  agent.log  https://paste.rs/CDvsW

Operating System

Ubuntu 24.04

Python Version

3.12.3

Hermes Version

0.11.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardcomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions