Skip to content

test(ui): scope dashboard settings setup to the top frame - #139618

Merged
steipete merged 1 commit into
mainfrom
codex/a2ui-settings-top-frame
Sep 6, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/a2ui-settings-top-frame

Conversation

@steipete

@steipete steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Related: #139490

What Problem This Solves

Resolves a problem where the dashboard A2UI browser fixture raises storage-access errors inside its sandboxed widget frames, even while its action and theme assertions pass.

Why This Change Was Made

The settings preload now runs only in the top-level dashboard. Both existing theme scenarios also assert that no uncaught page errors occurred.

User Impact

No production or visual behavior changes. The fixture initializes only the page that owns those settings and exposes future uncaught renderer errors. Existing action delivery, payload, and scrollbar checks remain intact; no timeout or dependency changes.

Evidence

With only the new error assertion, both existing scenarios fail on three opaque-frame localStorage errors each. With the ownership guard, both pass with zero page errors and unchanged action/theme results. Scoped type-aware lint, formatting, diff checks, and independent P0–P2 review pass. The change adds seven test-only lines.

This fixes the demonstrated fixture errors; it does not claim to explain the separate, unreproduced missing-action CI failure. Exact-head CI is required before landing.

@clawsweeper

clawsweeper Bot commented Sep 6, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 6, 2026
@steipete
steipete marked this pull request as ready for review September 6, 2026 02:00
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 10:05 PM ET / September 6, 2026, 02:05 UTC.

ClawSweeper review

What this changes

The dashboard browser test initializes settings only in the top frame and checks both theme scenarios for uncaught page errors.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped fixture repair absent from inspected main. No actionable patch defect was found, and the maintainer-authored, protected PR should remain open for normal landing.

Priority: P3
Reviewed head: c89b6380e6f09df89177feb3f4b838d7aef65937

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with meaningful error detection, reported before/after validation, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER association exempts this maintainer-authored fixture repair from the external-contributor proof gate; no production authority changes trigger an exception. The body reports both Chromium theme cases passing with zero errors after the guard.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER association exempts this maintainer-authored fixture repair from the external-contributor proof gate; no production authority changes trigger an exception. The body reports both Chromium theme cases passing with zero errors after the guard.
Evidence reviewed 7 items Verified introduced change: The merge-base-to-head diff contains only the top-frame guard, page-error collection before navigation, and an empty-error assertion after the existing action and theme checks.
Repair remains absent from main: Inspected main still initializes localStorage unconditionally in the page init script and lacks the new error assertion.
Opaque widget boundary: The production sandbox creates its inner iframe with allow-scripts and allow-forms, without allow-same-origin. The fixture guard respects this boundary without changing sandbox permissions.
Findings None None.
Security None None.

How this fits together

The dashboard browser fixture loads OpenClaw’s widget renderer inside nested sandbox frames and supplies simulated Gateway responses. It verifies widget actions and scrollbar themes through Chromium.

flowchart TD
  A[Browser fixture] --> B[Settings preload]
  B --> C{Top frame?}
  C -->|Yes| D[Dashboard settings]
  C -->|No| E[Skip storage access]
  D --> F[Sandboxed widget renderer]
  F --> G[Action and theme checks]
  F --> H[Uncaught error check]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep dashboard settings initialization at its owning top frame while preserving sandbox isolation and the existing action, theme, and uncaught-error checks.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: the current-main init script accesses localStorage in child frames, while the widget sandbox deliberately gives its inner frame an opaque origin. The reported before/after browser runs were not independently executed here.

Is this the best way to solve the issue?

Yes. Guarding the fixture’s settings producer is the narrow repair, and extending existing browser scenarios catches uncaught errors without weakening sandboxing or existing assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e915ac8ec5be.

Labels

Label changes:

  • add P3: This improves browser-fixture correctness and error detection without changing production behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this maintainer-authored fixture repair from the external-contributor proof gate; no production authority changes trigger an exception. The body reports both Chromium theme cases passing with zero errors after the guard.

Label justifications:

  • P3: This improves browser-fixture correctness and error detection without changing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this maintainer-authored fixture repair from the external-contributor proof gate; no production authority changes trigger an exception. The body reports both Chromium theme cases passing with zero errors after the guard.

Evidence

What I checked:

  • Verified introduced change: The merge-base-to-head diff contains only the top-frame guard, page-error collection before navigation, and an empty-error assertion after the existing action and theme checks. (ui/src/e2e/board-a2ui.e2e.test.ts:44, c89b6380e6f0)
  • Repair remains absent from main: Inspected main still initializes localStorage unconditionally in the page init script and lacks the new error assertion. (ui/src/e2e/board-a2ui.e2e.test.ts:41, e915ac8ec5be)
  • Opaque widget boundary: The production sandbox creates its inner iframe with allow-scripts and allow-forms, without allow-same-origin. The fixture guard respects this boundary without changing sandbox permissions. (src/agents/sandbox-host.ts:233, c89b6380e6f0)
  • Playwright initialization contract: The changed fixture directly imports Playwright and calls page.addInitScript. The official API documents that initialization also executes when child frames attach or navigate, supporting the reported mechanism: https://playwright.dev/docs/api/class-page#page-add-init-script.
  • Captured validation and related work: The supplied PR body reports three opaque-frame storage errors in each theme scenario before the guard and zero afterward, with action/theme assertions preserved. It explicitly distinguishes this from the unreproduced missing-action failure encountered alongside fix(ui): keep Swarm outcomes visible after completion #139490. These are contributor-reported results; this review executed no tests. (c89b6380e6f0)
  • Area history and attribution limits: Main-path history identifies Peter Steinberger’s A2UI fixture and subsequent maintenance work, plus Vyctor H. Brzezowski’s scrollbar-theme work. Raw commit records were available for the recent input and scrollbar commits. Detailed blame/parent-file comparisons failed on unavailable objects, so routing does not claim exact source-line introduction. (ui/src/e2e/board-a2ui.e2e.test.ts, 8214179fe29c)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 6c55a99 into main Sep 6, 2026
132 checks passed
@steipete
steipete deleted the codex/a2ui-settings-top-frame branch September 6, 2026 02:27
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to ylcn91/openclaw that referenced this pull request Sep 6, 2026
* commit '6c55a99226ed0611ca088004c81b00fb296f1f71': (182 commits)
  test(ui): scope dashboard settings setup to the top frame (openclaw#139618)
  refactor(skills): share pending proposal creation (openclaw#139617)
  fix(release): accept frozen targets before worker bundles (openclaw#136699)
  fix(gateway): preserve percent sequences in media filenames (openclaw#139508)
  fix: preserve current update availability alongside update history (openclaw#139501)
  feat(diagnostics): expose garbage collection duration metrics (openclaw#139592)
  fix(ui): keep Logbook timestamps clear of the activity stripe (openclaw#139539)
  fix(ui): keep Swarm outcomes visible after completion (openclaw#139490)
  test: check file accessibility without runtime-specific return values (openclaw#139590)
  refactor(sdk): keep helper types private (openclaw#139601)
  fix(cron): preserve current-session delivery intent (openclaw#139491)
  fix: prevent browser profile permission hangs in Doctor (openclaw#139612)
  fix(agents): repair storage-failure test fixture after failover owner move (openclaw#139531)
  fix(cli): keep note text with Windows and Unicode line endings (openclaw#139512)
  fix(agents): keep isolated completion context on its admitted generation (openclaw#139607)
  fix: avoid declaration builds during source-server updates (openclaw#139392)
  fix(models): keep discovered models after catalog refresh failures (openclaw#139357)
  fix(gateway): record a transcript notice when a run fails before replying (openclaw#139439)
  refactor(ios): reuse shared integer conversion (openclaw#139581)
  fix(sessions): prevent database lock failures during reclamation (openclaw#139469)
  ...
vincentkoc added a commit that referenced this pull request Sep 6, 2026
* commit 'refs/openclaw/tasks/pr-135167-main-latest':
  test(ui): scope dashboard settings setup to the top frame (#139618)
  refactor(skills): share pending proposal creation (#139617)
  fix(release): accept frozen targets before worker bundles (#136699)
  fix(gateway): preserve percent sequences in media filenames (#139508)
  fix: preserve current update availability alongside update history (#139501)
  feat(diagnostics): expose garbage collection duration metrics (#139592)
  fix(ui): keep Logbook timestamps clear of the activity stripe (#139539)
  fix(ui): keep Swarm outcomes visible after completion (#139490)
  test: check file accessibility without runtime-specific return values (#139590)
  refactor(sdk): keep helper types private (#139601)
  fix(cron): preserve current-session delivery intent (#139491)
  fix: prevent browser profile permission hangs in Doctor (#139612)
  fix(agents): repair storage-failure test fixture after failover owner move (#139531)
  fix(cli): keep note text with Windows and Unicode line endings (#139512)
  fix(agents): keep isolated completion context on its admitted generation (#139607)
  fix: avoid declaration builds during source-server updates (#139392)
  fix(models): keep discovered models after catalog refresh failures (#139357)
  fix(gateway): record a transcript notice when a run fails before replying (#139439)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant