mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-09-12 03:57:07 +00:00
* 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. |
||
|---|---|---|
| .. | ||
| _meta.ts | ||
| keyboard-shortcuts.md | ||