Repository navigation
Long-chat gate: settle pointer targets before a trusted hover or click - #17274
Conversation
The thread viewport is scroll-smooth, so the gate's scrollIntoView animated and returned while the target was still moving, and block: nearest from below left it at the viewport's bottom edge under the floating composer. The trusted hover then landed on the composer, so source_card intermittently reported NOT_RUN (never reached sel) at 200 turns. Scroll instantly, wait until the target holds still, and centre it only if something else is under its centre.
|
@codex review |
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
The long-chat gate sometimes reports
source_cardas NOT_RUN ("never reached sel in this mode, OK in default"), most often in Liquid 3D at 200 turns. It has failed Frontend CI on unrelated PRs (the Ubuntu composer leg of #17007, local runs of other branches).Cause
The thread viewport is
scroll-smooth. The harness'sscrollIntoView({block: 'nearest'})therefore animated and returned while the target was still moving: on a freshly loaded 200-turn page the last source chip starts 3,000 to 19,000 px below the viewport, andscrollTopkept climbing for about 2 s after the call.block: 'nearest'from below also parks the chip at the viewport's bottom edge (y about 836 to 875 of 900), which is under the floating composer, so the trusted Playwright hover landed on the composer and no hover card opened. Both natural failures had the chip at [643, 836, 151, 26] withbutton.composer-pill-btnunder its centre.Change
behavior: 'instant'.hover,pclick) only, the harness waits until the target's rect holds for 3 frames (capped at 120) and checks that the target is the element under its own centre; if something covers it, it centres the target instantly and waits again. A target already clear gets no extra scroll.Results
Liquid 3D, 200 turns, 2 to 4 browsers in parallel on a loaded host:
source_cardCPU on passing runs is comparable (median 1038 ms, range 796 to 2291, before; 1284 ms, 1037 to 1846, after).tests/studio/test_area_matrix.py: 32 pass.