Copilot CLI remote SSH session reports “Copied” but clipboard remains empty on macOS
未关闭
还没有人认领这个 Issue。
triage
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 macOS Terminal.app 中通过 SSH 连接到 Ubuntu 24.04.4,复现 Copilot CLI 1.0.80 中的复制流程。跟踪 CLI 如何在远程会话中处理终端选择和剪贴板报告,然后验证复制的文本可在本地 macOS 应用中使用,同时本地会话继续正常工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- linux, macos, shell
- 领域
- cli, networking, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100