Repository navigation
fix: measure the Access page after the browser resizes - #208985
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 3e02d37a-cbaf-4f5c-9c36-30df061784ca
|
🦞👀 |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThe Access browser test waits for one animation frame after each viewport resize before measuring containment. Example: The test changes from a desktop viewport to 390 × 480 pixels.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a minimal repair for premature layout measurement, preserves the existing assertions, and has passing checks on the reviewed head; no actionable defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser test loads the registered Access plugin with synthetic Gateway responses, resizes the browser, and checks readable content and usable removal controls. flowchart LR
A[Access browser test] --> B[Viewport resize]
B --> C[Shell resize listener]
C --> D[Responsive shell update]
D --> E[Animation frame callback]
E --> F[Containment assertions]
Technical reviewBest possible solution: Keep the single animation-frame wait at the existing measurement boundary with all current layout assertions intact. Do we have a high-confidence way to reproduce the issue? Source establishes an immediate geometry read following resize and a separate event-driven shell update, but this read-only review did not independently reproduce the intermittent failure. Is this the best way to solve the issue? The change addresses the measurement boundary without retries, sleeps, relaxed tolerances, additional exclusions, or production changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 622f2835c8c0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. 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. 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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ 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 30, 2026, 3:48 AM ET / 08:48 UTC (Revision 2). |
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: bc82c58e-6e96-4481-bede-08f7bf5353f5
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Related: #208739 (failing CI job)
What Problem This Solves
The Access confirmation browser test can report 79 overflowing elements when it switches from desktop to a 390 × 480 phone viewport. It can read the new viewport dimensions while the shell still reserves space for the desktop navigation rail.
User Impact
This fixes a false failure in the UI E2E shard. No production code, permissions, or Access page layout changes.
Why This Change Was Made
I moved the first geometry read after each resize to the next animation frame. Chromium delivers the resize event before that frame, so the shell can apply its responsive layout. The test still takes a single containment measurement: no retry, sleep, relaxed tolerance, or new exclusion. It still tests 390, 820, and 1400 px, readable warnings and identities, and actionable confirmation and Cancel buttons.
Evidence
20f70ea2c590: 16 uninstrumented Chromium runs passed on AWS. The reported unmodified-main run failed on trial nine; my ordinary replay alone did not reproduce that failure.ocid-access__header. At the animation frame the grid was 390 px, Access was 382 px, and zero elements overflowed. No CSS was changed for the probe.d6f46258524b: 20/20 fresh Chromium runs passed on two AWS Pond boxes, 10 per box. AWS batch A · AWS batch B.git diff --checkpassed. Focused lint found zero warnings or errors.CI attribution and main update
I updated this branch to main
2ce0a516812f. All three files passed on pinned main with CI's Bun runtime. The original failures were inherited:👀; #209003 fixed the stale👀2expectation.cron.listfor the newwriterscope, not a retired refresh. No stale job appeared.On the updated branch, 48/48 tests across the three files passed, and the Access Chromium E2E passed. I verified that the published tree matches the tested tree; the diff from main is still the two Access-test lines.
Worked on by: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw