Skip to content

fix: make HiDPI clicks reach HTML file previews - #205259

Merged
hannesrudolph merged 11 commits into
mainfrom
openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218
Nov 25, 2026
Merged

hannesrudolph merged 11 commits into
mainfrom
openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • I reproduced the native-click failure on main 21fce061, then verified the fix with the actual built Gateway, Control UI and browser CLI on refreshed main 9ff7f7d. The owning stylesheet and test files are unchanged between those main bases.
  • Chrome 159.0.8154.6, Linux x86_64, fresh state and profile, one tab, device set before chat navigation: the direct click at 96,131 opens; the preview click at 896,216 now opens and delivers trusted pointerdown, pointerup and click to SUMMARY. DPR remains 2.
  • I isolated the original preview regression to a91e8bf / #197522: its raw parent 13f1257d passes 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.
  • The added browser regression fails on unmodified main and passes with the fix. The final focused run passes all 16 tests across HTML previews, divider interactions, Browser panel width, and composer picker layout, including Chromium and WebKit picker cases. The Browser width and composer picker files also pass all 7 tests on unmodified main production code.
  • The geometry unit suite passes all 23 tests. UI chat test typechecking, scoped lint, and formatting pass. The browser-layout assertions remain unchanged; coverage verifies the conversation minimum and equal division of space after reserving the gutter. The component resize fixture now expects 376px for a 700px pane, after reserving 312px for the conversation and 12px for the divider. Its input, pane and iframe-retention assertions remain unchanged. The runtime/UI build and original stylesheet checks passed.
  • I ran pr-simplify and removed the obsolete overlapping hit layer and trailing-edge paint overrides. The final main diff is production +13/-30 lines and tests +100/-4 lines. Existing sandbox fixtures provide the new regression; no diagnostic harness or test-only production hook is included.
  • I ran pr-simplify again on the geometry repair and kept it in the existing calculation owner, with no new layout state or production hook. This addresses ClawSweeper's valid P2 about the stale 6px budget.
  • Local Auto Review of the original change and the geometry follow-up completed with no P0 findings. Coverage was P0 only; the reviewers did not independently rerun the tests.
  • I have not checked ARM64, touch input or RTL. Hosted CI for the updated head is pending. The actual-app proof uses synthetic HTML and a seeded message, with no model call. Screenshots show main before the fix and the final built fix.

Full UI shard replay

I ran the complete checks-ui (3/3) selection through the CI shard runner, using the pinned Bun revision 1.4.4-canary.1+191755ec1 and Chromium 156.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.

Main: coordinate click leaves Batch notes closed

After: final fix built on main 9ff7f7d, same click opens it.

Fixed: coordinate click opens Batch notes

Annotated comparison

Before: missed HiDPI click highlighted

After: opened disclosure highlighted

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

roboclaw-bot and others added 7 commits November 25, 2026 07:17
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
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 25, 2026
…html-0b3218

Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: a182b587-c8b5-43a2-b346-2a98f508da50
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 25, 2026 09:49
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The browser reports success, but the disclosure stays closed.
  • After: The disclosure opens and displays Six boxes of winter pears.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused repair with inspected shipped-entry-point evidence, preserved interaction coverage, resolved prior feedback and passing exact-head CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots and the accompanying built-Gateway/browser-CLI report exercise the changed divider and HTML-preview path on Linux with Chrome 159 at DPR 2; the same coordinate click opens the disclosure after the fix.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A successful native coordinate click can leave an interactive HTML preview control unchanged under HiDPI emulation.
Reason: Restoring preview interaction has clear value, and the collaborator-authored direction explicitly accepts the extra 6px of gutter space while preserving resizing.

Regression provenance

Regression provenance — suspected predecessor, not a causality claim: source commit debc7123f743 by Vyctor H. Brzezowski; no PR verified.

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: b7d52670e8213df2a5fa2ef1fc16ce2e513161bb

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ec4b63b adds ui/src/pages/chat/sidebar-layout-geometry.ts:109 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ec4b63b5e6b2; files: ui/src/pages/chat/sidebar-layout-geometry.ts)
  • Vyctor H. Brzezowski: Raw commit f8a97fe adds ui/src/styles/chat/startup-layout.css:1128 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8a97fe87ce2; files: ui/src/styles/chat/startup-layout.css)
  • RoboClaw: Raw commit a91e8bf adds ui/src/e2e/chat-rail-columns.e2e.test.ts:498 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: a91e8bf16c99; files: ui/src/e2e/chat-rail-columns.e2e.test.ts)

PR surface

Source -17, Tests +96. Total +79 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 13 30 -17
Tests 4 100 4 +96
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 113 34 +79

Preflight source

Source 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

Metric Value Why it matters
Production versus test changes Production +13/-30; tests +100/-4 Production machinery shrinks; test growth covers HiDPI pointer delivery, both divider orientations, and the corrected geometry budget.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-25T10:06:21.335Z sha 36040a5 :: needs changes before merge. :: [P2] [P2] Update sidebar geometry to account for the 12px gutter

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
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 25, 2026
@hannesrudolph
hannesrudolph merged commit 0b99555 into main Nov 25, 2026
106 checks passed
@hannesrudolph
hannesrudolph deleted the openclaw/beta-regression-managed-browser-click-coords-misses-html-0b3218 branch November 25, 2026 16:23
@hannesrudolph

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
* 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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: HiDPI coordinate clicks miss HTML previews in the Files panel

2 participants