Repository navigation
fix(ui): correct WebKit touch activation and layout updates - #185137
Conversation
Twenty interleaved desktop Chromium pairs retained a 27.04% p95 regression with a stable control. Restore native virtualizer measurements while retaining the independent WebKit rail, sidebar, reveal, and touch fixes.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis 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. |
This comment has been minimized.
This comment has been minimized.
|
Codex review: needs maintainer review before merge. What this changesThis PR fixes WebKit touch activation, sidebar scroll anchoring, and rail geometry scheduling, and adds a cross-engine benchmark. Example: Tap the chat model picker in mobile WebKit at 390×844.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs concrete WebKit interaction and layout failures still present on main. No definite introduced defect was found; failing exact-head E2E checks remain unattributed. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI turns browser input, CSS geometry, and transcript updates into picker activation, visible sidebar rows, and position-rail markers through existing presentation owners. flowchart TD
A[Browser input] --> B[Composer activation]
B --> C[Picker highlight and reveal]
D[CSS and resize observations] --> E[Sidebar window and anchor]
F[Transcript updates] --> G[Rail layout frame]
D --> G
Technical reviewBest possible solution: Retain the focused repairs in the existing UI owners and resolve the exact-head CI disposition before landing. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the reported cancellation and observer paths, supported by the contributor’s before/after browser evidence; this read-only review ran no target code. Is this the best way to solve the issue? The runtime repairs are appropriately placed: preserve native touch activation, keep picker reveal with its scroll owner, and schedule geometry through existing frames rather than repeatedly registering observers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7a8f6d72f88b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +26, Tests +69, Docs +27, Other +1222. Total +1344 across 21 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 26, 2026, 7:40 PM ET / 23:40 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#185137) * perf(ui): measure WebKit and remove duplicate layout work * perf(ui): isolate focused Cron search paint in WebKit * perf(ui): retain the Cron search compositor backing * perf(ui): drop Cron compositor hint after tail regression * fix(ui): preserve touch activation and schedule sidebar row geometry * fix(ui): match virtual sidebar estimates to the CSS row minimum * fix(ui): preserve sidebar anchor across measured row sizing * test(ui): settle navigation preloads in cross-engine benchmarks * test(ui): repeat navigation actions for WebKit CPU sampling * perf(ui): defer picker row layout reads to resize delivery * perf(ui): drop picker measurement experiment with slower first open Twenty interleaved desktop Chromium pairs retained a 27.04% p95 regression with a stable control. Restore native virtualizer measurements while retaining the independent WebKit rail, sidebar, reveal, and touch fixes. * test: account for pinned WebKit inspector access * fix(ui): retain sidebar estimate until styles load * test(ui): recognize the people actions menu
What Problem This Solves
Fixes the chat model picker failing to open on a touch tap in WebKit, sidebar rows losing their visible position as mobile row sizes settle, and unnecessary geometry work while navigating or streaming. It also prevents an unstyled sidebar from repeatedly publishing a
NaNrow minimum before CSS is available.User Impact
Users can open the model picker by touch and keep the expected sidebar position when scrolling or returning to a session; the position rail continues updating during streaming without repeatedly registering its resize observer.
Why This Change Was Made
Keep geometry with its existing owner: the rail schedules offset measurements in its existing frame, pickers own their focused-row reveal, and the sidebar derives its row minimum from CSS and preserves its logical anchor. Touch triggers retain native click activation. If the CSS row minimum is absent or nonnumeric, the sidebar keeps its existing 30px estimate; styled 30px/44px behavior is unchanged. A headless cross-engine benchmark now exercises the same production bundle and synthetic Gateway scenarios in Chromium and WebKit.
Evidence
Merged through native inherited-failure recovery at
a54402e27d585ab69cccda86ce7c0160a68afeaf; origin/main ancestry was independently verified at 02:44 UTC. Audited parent isa7fe06b17a966a1a1a518f805f85c7cbfaf9fee5. The native merge command exited 0, the retained outcome is complete, and managed-worktree cleanup is verified. completion comment. Reviewed heada939d155f8320ffa461af3bd27747711d323174bretains failed CI40436922958: 46 successful jobs, 23 skipped jobs, and three failed E2E roots plusci-gate. All UI-unit jobs, both real-Gateway jobs, and E2E3 passed. Eight failures match exact names and assertions on scheduled main40434422133. Typecheck/build, independent review 19, and production Knip files/dependencies checks passed. No broad WebKit CPU/latency win is claimed. All timing tables remain historicalf1bf17df378→06d9f88125b/ pre-fix656d579bddd; landing adds no new timing, screenshot, whole-tree identity, or native-app proof.9acpairing-access file: 19/19 in 3.24 s; sidebar visibility: 4/4 Chromium in 4.77 s and 4/4 WebKit in 5.72 s. The exact old unstyled-sidebar test hung and was explicitly interrupted with SIGINT/130; the owner fallback resolves it. Earlier rail proof: 18/18; retained picker: 17/17 per engine. Finala939UI-unit CI also passes.a939; E2E3 also passes, resolving its prior stalled coverage. The earlier sharing(event)failure was not inherited; the local 8/8 replay alone was not causal fix proof.Pin, then passes on main's existingActions for Alice: 1 pass, 11 skipped, 24.29 s total; case 11.653 s. Only the assertion changes, with no People production change.939750base and finala939builds measure 270,602 B JS + 32,180 B CSS = 302,782 B gzip, five JS requests and one CSS request. Base is 302,760 B combined; +22 B is within 64 B build variance. Raw JS remains 837,787 B. Final strict metrics have no violations/warnings; no cap or baseline changed.9acbudget-selected boot chunk contains the 30px fallback and its mapped sidebar source matches the9acGit blob. Historical read-only verification, not final-candidate identity or a new timing run.a939production files/dependencies check passed in 2m 43.8s (head-a939-knip.log). No full exported-symbol scan is implied.Reviewed-head run
40436922958remains overall FAILURE, with eight cases failing across E2E roots 1/7, 4/7, and 6/7. Each exact name and assertion also fails in scheduled main run40434422133, head8d50df8c2698cad92ed46ca967f68118ddb1a124; shard placement differs. Native review, preparation, and inherited-failure recovery landed the PR with that evidence. No all-green CI rerun is claimed; the native operation and verified cleanup are complete.Control UI model provider login mocked Gateway E2E > shows a provider's accounts and every connection method before browser sign-inExpiringlabelControl UI Models mocked Gateway E2E > lists configured providers with auth state, quota, and billingExpiredlabelControl UI mocked Gateway E2E > reveals overflowing rtl sidebar titles with pointer and keyboard controlsControl UI mocked Gateway E2E > keeps session titles on the first line and collapses rows that have no second lineControl UI session management mocked Gateway E2E > keeps action-only text stable and active state visible with actions52px, received0pxControl UI session management mocked Gateway E2E > does not widen desktop session text when hover actions appear beside trailing state52px, received0pxSidebar rail alignment > centers rail controls and the owner toolbar (touch: false)Sidebar rail alignment > centers rail controls and the owner toolbar (touch: true)The local evidence retains raw PR logs
a939-pr-e2e1/4/6.logand scheduled-main logsa939-main-e2e2/5/6.log.a939-inherited-source-equality.jsonverifies identical Git blobs for all five failed-test files at scheduled main8d50df8c2698cad92ed46ca967f68118ddb1a124, CI parent2bf234076397255f851422e1ea45b3b359eeee82, and tested mergec2c84594cd737831bcead0e354ef4b7ed82af1e4. Exact-case evidence supplies the current recovery basis; the four-case old-base replay below remains history only. No new source change or test run is needed for these matched failures.The stalled UI jobs were not dismissed as infrastructure: the sidebar CSS-floor parse introduced a
NaNsignal loop in unstyled jsdom, which is fixed here. Prior UI2 also failedkeeps sharing busy through refresh and retires it for a same-key successor (event); it passes recorded scheduled main40420221913, and all three UI-unit shards subsequently pass at9ac. Four separate E2E names failed that recorded main run and have exact-name attribution; they do not excuse a different assertion. At9ac, E2E5 exposed the obsolete PeoplePinexpectation, corrected by the retained one-line test change. That head's stalled E2E3 was confirmed cancelled at 00:51:53Z, with no log blob or completed coverage. The old auto request was cancelled under outcomeda3e62e95896a5419bc104061f2a6ad45255f52a.Prior-head run
40428897058at80ccis terminal FAILURE. E2E3 attempt 2, job121953013956, was cancelled after 30 minutes (01:24:49–01:54:49 UTC); its log-blob endpoint returned 404. No assertion, passing coverage, or inherited-failure status is inferred. New main adds a 20-minute test-step timeout andincludeTaskLocation, supporting a fresh run with better diagnostics.The same prior run had four E2E4 layout failures. All four reproduced through the production-bundle entrypoint on old merge base
871ae80ed1a, whose relevant inputs matched CI's actual basec840fb2c218. Their evidence remains scoped to that head/base: main now changes session-ownership tests, so it does not automatically attribute or exempt any new-head failure.Control UI session ownership > keeps inline-owner activity last at 1200pxControl UI session ownership > keeps inline-owner activity last at 390pxSidebar rail alignment > centers rail controls and the owner toolbar (touch: false)Sidebar rail alignment > centers rail controls and the owner toolbar (touch: true)The bounded old-baseline replay ran exactly these four cases: four failed, twelve skipped, with setup successful. This is prior-head evidence of pre-existing layout assertions, not final-candidate CI or a claim that the layout itself is correct.
Final wall time was 8h 46m 54s (2026-10-26 18:01:09 UTC → 2026-10-27 02:48:03 UTC). The native command exited 0 and retained outcome phase is complete; completion comment records closeout. The native managed PR worktree and task-owned baseline worktree were removed, with paths and Git registrations verified absent. The lane checkout remains clean and detached at current
origin/maincd83314709dbecause another lane holdsmain. No remote lease or local Docker container was used. Native closeout and cleanup are complete.Measurement scope and source size
The census uses headless Chromium 156.0.8078.4 and WebKit 27.2 at 1440×1000 and 390×844, production assets, and a synthetic Gateway. Cold boot means a fresh browser context; warm boot reloads the same context with persisted transcript state. Mock routing disables HTTP cache. Single census observations rank investigation leads; they do not establish stable timing gains. Chromium renderer-main-thread CPU and WebKit process CPU have different scopes and are not divided into a cross-engine CPU ratio.
Browser-sampled readiness requires visible transcript text and an enabled composer. Values below are milliseconds, n=1 per cell on a loaded host; these are the requested before/after engine comparisons, not performance acceptance. Large-open retains 2,000 messages.
The completed streaming comparison uses serial base/candidate/identical-base observations, twenty per role in each engine. WebKit baseline and control each emit two ResizeObserver errors in every observation; the candidate emits none. Those failed but completed intervals remain in the distributions. Candidate WebKit CPU coverage is 21,675.94 ms median, with median utilization 21.76%. Streaming input-delay p95 rises 1.72 ms in Chromium and 0.80 ms in WebKit; A/A rises 0.90 ms and 0.10 ms. Frame-gap p95 is unchanged and input-to-next-frame p95 is effectively unchanged. This supports the rail correctness repair without establishing a broad latency gain.
All six baseline failures are WebKit: desktop streaming reports two ResizeObserver errors during measurement; mobile chat typing, session switch, sidebar toggle, and warm picker search report setup ResizeObserver errors; mobile first-open also times out waiting for the picker after native tap. Every corresponding retained-candidate cell passes. Failed completed intervals remain in the evidence.
The first CI run found a missing suppression-inventory entry for the adapter’s three explained private-field accesses. Playwright 1.64.1 exposes WebKit Inspector through its in-process
_connection/_sessionbridge; no public WebKit session exists. The narrow entry records exactly one file, one rule, and three uses. The corrected inventory test passes 14/14, targeted lint/format pass, and an isolated review found no actionable issue. The LOC table counts complete touched files against939750da2177, including pairing-access at 598→599 lines and the People E2E file at 572→572. Final source incorporates newer main; no equivalence to the historically measured tree is asserted.Historical source verification at
9ac1afa44becfound its budget-selectedcontrol-ui-boot-shared-BVWTfsyx.jscontains the fallback and its mapped sidebar source exactly matches the9acGit blob (SHA-2564d1bea85d24e42fea29ac6c6d486fcf9481ac3a1abf5114db75f0a74146486ff). That proof is not a final-candidate source-map comparison. Final startup proof comes from the refreshed strict budget; timing results retain their original source scope.The diff against
939750da2177is 1,464 additions and 117 deletions across 23 files. Most growth is reusable measurement tooling. The lane preserves lazy boundaries and adds no dependency or domain-state owner. Historical pre-merge Solid refactor counts retain zero effects/controller classes/manual import loaders, one existing lazy boundary, and unchanged cleanup ownership; the one added signal holds measured CSS geometry. Those counts retain their original scope and are not a fresh post-merge census.