Repository navigation
fix: make HiDPI clicks reach HTML file previews - #205259
hannesrudolph merged 11 commits into
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 9f8227ee-33b8-4d34-9d64-9f425d825253
|
🦞👀 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. |
…html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a182b587-c8b5-43a2-b346-2a98f508da50
|
Codex review: needs maintainer review before merge. What this changesThis PR gives the side-panel divider its own 12px gutter so HiDPI clicks reach HTML previews while resizing remains usable. Example: Chrome 159 at DPR 2, clicking Batch notes in packing-slip.html at CSS coordinates 896,216.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR addresses a concrete preview-interaction regression. The earlier geometry finding is resolved, the exact-head CI gate passes, and no actionable defects remain. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar layout combines conversation and panel dimensions with a draggable divider; its geometry and CSS determine where pointer input reaches embedded HTML previews. flowchart LR
A[Coordinate click] --> B[Control UI layout]
C[Sidebar geometry] --> B
B --> D[Divider gutter]
B --> E[HTML preview iframe]
E --> F[Disclosure opens]
Technical reviewBest possible solution: Use the existing layout and geometry owners to contain the centered resize target within a fully budgeted gutter. Do we have a high-confidence way to reproduce the issue? The supplied real-app comparison specifies Chrome 159, DPR 2, device emulation before navigation, a working direct-page control and failing preview input; inspected screenshots corroborate the outcome, but this read-only review did not rerun it. Is this the best way to solve the issue? The patch is a focused repair: it removes the overlapping hit layer, preserves the accepted centered grab area and animation layering, and corrects both geometry calculations without adding state or changing iframe security. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5db826fd05b2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -17, Tests +96. Total +79 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
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 HistoryReview history (1 earlier review cycle)
Reviewed November 25, 2026, 6:09 AM ET / 11:09 UTC (Revision 2). |
…html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ab98865-6ed7-447e-abca-64e0be68f258
…html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 8205af0e-1989-446c-b1d1-33e228c58d9e
…html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b0ac9abb-fed3-436f-9663-22e63bc0b13e
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * fix: make HiDPI clicks reach HTML file previews Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 9f8227ee-33b8-4d34-9d64-9f425d825253 * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a182b587-c8b5-43a2-b346-2a98f508da50 * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ab98865-6ed7-447e-abca-64e0be68f258 * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 8205af0e-1989-446c-b1d1-33e228c58d9e * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b0ac9abb-fed3-436f-9663-22e63bc0b13e --------- Co-authored-by: daniel-lxs <[email protected]>
* Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * fix: make HiDPI clicks reach HTML file previews Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 9f8227ee-33b8-4d34-9d64-9f425d825253 * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a182b587-c8b5-43a2-b346-2a98f508da50 * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ab98865-6ed7-447e-abca-64e0be68f258 * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 8205af0e-1989-446c-b1d1-33e228c58d9e * Publish openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b0ac9abb-fed3-436f-9663-22e63bc0b13e --------- Co-authored-by: daniel-lxs <[email protected]> (cherry picked from commit 0b99555)
Closes #205251
What Problem This Solves
Managed-browser coordinate clicks can report success without activating HTML in the Files preview after HiDPI emulation is set before navigating to chat. I reproduced the failure on main with Chrome 159: the direct-page control opens, but the preview disclosure stays closed.
User Impact
The same native coordinate click now opens the preview disclosure. The side-panel resize target remains centered on its visible line, but occupies its own 12px gutter instead of overlapping preview content. The gutter uses 6px more layout space beside the panel, or above a bottom-docked panel. The width calculations reserve that full space, preserve the conversation's minimum width, and keep the normal composer width when opening Browser on a wide pane. No configuration change or migration is needed.
Why This Change Was Made
I removed the raised, overflowing resize target and gave the divider actual layout space. I reused the shared centered hairline and kept the divider below the panel during its opening movement. I also updated the existing geometry owner to subtract the full gutter before splitting the remaining space between panels. Browser emulation, coordinate dispatch and iframe security policies are unchanged.
Evidence
21fce061, then verified the fix with the actual built Gateway, Control UI and browser CLI on refreshed main9ff7f7d. The owning stylesheet and test files are unchanged between those main bases.159.0.8154.6, Linux x86_64, fresh state and profile, one tab, device set before chat navigation: the direct click at96,131opens; the preview click at896,216now opens and delivers trusted pointerdown, pointerup and click to SUMMARY. DPR remains 2.13f1257dpasses the same Chrome 159 real-app flow, while that commit loses the preview's native pointer events. The intended divider overlap was only 5px, not the tested point 96px inside the panel.Full UI shard replay
I ran the complete
checks-ui (3/3)selection through the CI shard runner, using the pinned Bun revision1.4.4-canary.1+191755ec1and Chromium156.0.8078.4, before pushing. The corrected component resize test passes. The Node compatibility subset passed 4 files and 12 tests; the Bun portion passed 804 of 805 files and 9,267 tests, with one separate local fixture failure.Local exception:
chat-composer-overflow.browser.test.tsx, “settles overlay-scrollbar drafts crossing the height cap”, fails its fixture-calibration assertion (expected 200 to be greater than 200). I reproduced the identical failure with unmodified main production code. Its test and relevant composer sources are unchanged on current main. Restoring the standard font configuration did not resolve it, and I made no change to that unrelated test. Why this local environment cannot find the required line-wrap interval remains unverified.Formatting, scoped lint and the UI chat test typecheck pass. I ran pr-simplify on the one-line expectation update and retained the exact assertion rather than relaxing it.
Clean comparison
Before: main
21fce061, click leaves the disclosure closed.After: final fix built on main
9ff7f7d, same click opens it.Annotated comparison
Matched real-app captures with synthetic HTML, Chrome 159, 1280×720 CSS viewport and DPR 2. The final after capture is byte-identical across the main refresh. The owning stylesheet is unchanged between the two main bases.
I used the QA reproduction supplied by @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by