Skip to content

Clipboard copy silently fails when outer terminal ignores OSC 52 #2399

Description

@huiihao

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 pressing Ctrl+C or using mouse-select in Claude Code (or any app) running inside herdr, the "copied to clipboard" toast appears, but the content is not actually available in the system clipboard. Pasting (Ctrl+V) pastes whatever was previously in the clipboard, not the content that was just "copied."

The same herdr instance running via herdr --remote does not have this problem — clipboard works correctly in that path.

Expected behavior

After copying text from an app inside herdr, the content should be available in the system clipboard and pasteable immediately with Ctrl+V.

Reproduction

  1. Open VS Code integrated terminal
  2. SSH into a remote Linux server
  3. Run herdr on the remote server
  4. Open Claude Code inside a herdr pane
  5. Select a code block and press Ctrl+C to copy, or use mouse-select copy
  6. Observe the "copied to clipboard" toast
  7. Try Ctrl+V to paste — the clipboard contains old or no content

Alternatively (without SSH):

  1. Open VS Code integrated terminal on Windows with WSL
  2. Run herdr inside WSL
  3. Copy text from any pane app — "copied to clipboard" appears but paste fails

Impact

This makes herdr unusable as a daily driver for Claude Code in VS Code, which is a very common workflow. The clipboard is critical — every code block, command output, or log excerpt that Claude Code generates needs to be copyable. The workaround of using herdr --remote instead of a direct SSH connection works but adds friction and is not always available (e.g., behind jump hosts that do not allow persistent remote connections).

Environment

  • Herdr version: 0.7.5-preview
  • Update channel: preview
  • Operating system: Windows 11 (host), Ubuntu 24.04 (WSL), Ubuntu 24.04 (remote server via SSH)
  • Terminal: VS Code integrated terminal (1.131.0)
  • Shell, if relevant: bash, zsh
  • Relevant config, if any: default config

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintainer-neededrequires maintainer judgment or maintainer-only reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions