Skip to content

fix: measure the Access page after the browser resizes - #208985

Merged
daniel-lxs merged 4 commits into
mainfrom
openclaw/access-layout-test-flake-2b0a9b
Nov 30, 2026
Merged

daniel-lxs merged 4 commits into
mainfrom
openclaw/access-layout-test-flake-2b0a9b

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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

  • Main, 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.
  • Cause: A separate probe on main sampled the same 390 × 480 transition before the app's resize listener, then again before paint. Before the listener, the grid columns were 310 + 80 px, the Access page was 72 px wide, and 79 elements overflowed starting with 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.
  • Fix, d6f46258524b: 20/20 fresh Chromium runs passed on two AWS Pond boxes, 10 per box. AWS batch A · AWS batch B.
  • Negative control: I temporarily forced the header to a 980 px minimum width. The fixed test still failed at the containment assertion. The control was not committed. The E2E TypeScript shard, formatting, and git diff --check passed. Focused lint found zero warnings or errors.
  • I checked the clipped-heading fix and the readable-warning fix. Both protections remain. Browser proof used the registered plugin and synthetic Gateway data, not live signing or removal.

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:

  • Reactions: the badge counts distinct known people, not reactions. One known person correctly showed 👀; #209003 fixed the stale 👀2 expectation.
  • Composer at 390 and 768 px: loading generic toast CSS after chat CSS removed the card's border at both widths. #208953 fixed the cascade.
  • Cron agent scope: an 80 ms pause on main let the 50 ms inventory debounce expire after the request-count snapshot. The fifth call was cron.list for the new writer scope, 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

roboclaw-bot and others added 2 commits November 30, 2026 07:32
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 3e02d37a-cbaf-4f5c-9c36-30df061784ca
@clawsweeper

clawsweeper Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 30, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 30, 2026 07:50
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

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

  • Before: Containment can be measured before the shell handles the resize, reportedly flagging 79 overflowing elements.
  • After: The measurement follows an animation-frame callback, allowing the responsive shell update to run first.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful minimal repair with preserved assertions and passing reviewed-head CI; detailed causal and negative-control results remain author-reported.
Proof confidence 🦐 gold shrimp (3/6) This proof-exempt, test-only PR reports Chromium replays, a resize-order probe, and a failing forced-overflow control; exact-head CI passes, but the linked detailed artifacts could not be independently inspected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The UI browser-test shard can report Access overflow while the shell is still processing a viewport resize.
Reason: A focused synchronization repair improves CI reliability while preserving the layout contract, and the maintainer-authored PR supplies direction.

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

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Raw commit 33d26e4 adds ui/src/e2e/access-member-layout.e2e.test.ts:227 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 33d26e441f91; files: ui/src/e2e/access-member-layout.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit ee9fb85 adds ui/src/e2e/access-member-layout.e2e.test.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: ee9fb85d0960; files: ui/src/e2e/access-member-layout.e2e.test.ts)

PR surface

Tests +2. Total +2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 0 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 0 +2

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.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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

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-30T07:54:42.399Z sha 4a59975 :: passed. :: none

Reviewed November 30, 2026, 3:48 AM ET / 08:48 UTC (Revision 2).

roboclaw-bot and others added 2 commits November 30, 2026 08:24
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: bc82c58e-6e96-4481-bede-08f7bf5353f5
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs
daniel-lxs merged commit df33dce into main Nov 30, 2026
79 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/access-layout-test-flake-2b0a9b branch November 30, 2026 08:50
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

2 participants