Skip to content

Copying in a pane writes to the host's clipboard when herdr runs on a VS Code Remote Tunnels host #2015

Description

@ChocoTonic

Is this a reproducible bug?

  • I confirm this is a reproducible bug, not a feature request, idea, question, contribution proposal, or direction check.
  • I reproduced this bug on the version and environment reported below using the exact steps provided.

Current behavior

When herdr runs on a machine I'm connected to through VS Code Remote Tunnels, copying in a pane puts the text on that machine's clipboard, not mine.

The "copied to clipboard" toast appears and the server log records the copy, so it looks successful from inside herdr. Nothing reaches the clipboard of the machine I'm actually sitting at. Running pbpaste on the host afterwards shows the text I selected.

Expected behavior

Copying in a pane puts the text on the clipboard of the machine I'm viewing from, the way it does over plain SSH.

Reproduction

On a macOS host:

  1. code tunnel (leave it running)
  2. From a second machine (Windows 10 in my case), open the tunnel in VS Code and attach to that host
  3. In the VS Code integrated terminal on the host: herdr
  4. Drag-select some text in a pane, the "copied to clipboard" toast appears
  5. Paste on the machine you're sitting at -> clipboard is unchanged
  6. Back on the host, run pbpaste -> it prints the text from step 4

Impact

Copying anything out of herdr is a manual retype. It comes up constantly with agent panes, file paths, commands, error messages, snippets I want to move into a browser or another app. It also silently overwrites the host's clipboard as a side effect.

Environment

  • Herdr version: 0.7.5
  • Update channel (stable or preview): stable
  • Operating system: macOS 26.5.1 (Apple Silicon), host running herdr
  • Terminal: VS Code integrated terminal over Remote Tunnels (VS Code 1.114.0)
  • Client: Windows 10, vscode.dev in a browser / VS Code desktop app
  • Shell, if relevant: zsh
  • Relevant config, if any: none, all defaults

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions