Repository navigation
test(ui): scope dashboard settings setup to the top frame - #139618
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 10:05 PM ET / September 6, 2026, 02:05 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* 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) ...
* 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)
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.