qwen-code/docs/users/reference
ChiGao a6dcae2ce5
feat(cli): Open OSC 8 links with a plain click in VP mode (#10979)
* feat(cli): Open OSC 8 links with a plain click in virtual-viewport mode

Virtual viewport turns on SGR mouse tracking, which makes the terminal
stop handling OSC 8 hyperlink clicks — so links could not be opened at
all in that mode. Read the URL from the composited frame cell under the
pointer and open it on a plain left click, deferring the open by the
multi-click window so drag-to-select and double/triple-click word/line
selection keep their priority. A right-click raises an in-app context
menu (Open Link / Copy Link Address / Copy Selection).

Gating is unchanged for other cohorts: non-VP and mouse-tracking-off
users keep native terminal link handling (the controller is inert
outside VP+mouse), and the OpenTUI renderer has its own link path and is
not wired into this one.

* fix(cli): guard context-menu executeIndex against same-tick double Enter

executeIndex cleared menu state asynchronously but left the synchronous
menuRef mirror live, so two Enter keypresses dispatched in one stdin
chunk (before React re-renders) ran the item's onSelect() twice — opening
the browser twice for "Open Link". Null the mirror before the async
setMenu, mirroring the guard closeMenu already applies.
2026-09-04 06:14:53 +00:00
..
_meta.ts feat: refactor docs 2025-12-05 10:51:57 +08:00
keyboard-shortcuts.md feat(cli): Open OSC 8 links with a plain click in VP mode (#10979) 2026-09-04 06:14:53 +00:00