Skip to content

Copilot CLI remote SSH session reports “Copied” but clipboard remains empty on macOS #4551

Open

Description

@Mariushrek

Describe the bug

Summary

When using Copilot CLI on a remote Linux machine over SSH from macOS Terminal, copy actions report success ("Copied to clipboard") but the selected text is not actually placed into the macOS clipboard.
Environment

Local OS: macOS (Apple Terminal)
Terminal: Terminal.app Version 2.15 (470.2)
Connection: ssh -p <port> <host>
Remote OS: Ubuntu 24.04.4 LTS
Copilot CLI version: 1.0.80

Steps to Reproduce

From macOS Terminal.app, connect to a remote Ubuntu machine via SSH:
    ssh -p <port> <host>
Run Copilot CLI on the remote machine.
Generate output in the CLI and select part of the text in the terminal.
Try to copy the selected text (right-click copy or Ctrl+C in the terminal context).
Observe that Copilot CLI shows a "Copied" confirmation message.
Paste into another app on macOS (e.g., Notes/TextEdit).

Expected Behavior

Selected text should be copied to the macOS system clipboard and be available for paste in other local apps.

Actual Behavior

Copilot CLI shows a "Copied" confirmation, but the text is not present in the macOS clipboard.

Additional Notes

Reproducible every time.
Also reproducible on machines other than mine.
This does not happen when Copilot is used locally (without SSH / without remote host).

Affected version

GitHub Copilot CLI 1.0.80

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on Aug 21, 2026
  2. adam-stanek commented on Sep 5, 2026

    @adam-stanek

    Same. Launching with --no-mouse helps.
    GitHub Copilot CLI 1.0.83.

  3. aodanosullivan commented on Sep 9, 2026

    @aodanosullivan

    Same. Launching with --no-mouse helps. GitHub Copilot CLI 1.0.83.

    This did not work for me.
    GitHub Copilot CLI 1.0.83 launched via node on Google cloud workstations.

  4. larsxschneider commented on Oct 17, 2026

    @larsxschneider
    Member

    Do you run it under tmux? set -g allow-passthrough on helped me with this problem.

  5. added
    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input
    and removed on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions