Skip to content

test(ui): scope advanced disclosure summary selectors - #131541

Merged
steipete merged 1 commit into
mainfrom
codex/issue-131421-ui-summary-ci
Aug 28, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/issue-131421-ui-summary-ci

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #131421. Maintainer CI repair required to validate #119388.

What Problem This Solves

Resolves a problem where the Control UI advanced-settings E2E check fails when it tries to close a disclosure containing nested object settings. This current-main failure also blocks otherwise unrelated PR validation.

Why This Change Was Made

The check must click the summary belonging to the outer disclosure, not every descendant summary. Opening the advanced fields legitimately renders a nested Prefs disclosure, making the old selector ambiguous. All three uses now select the outer disclosure's direct-child summary.

The nested fixture, strict locator resolution, initial-closed/open/closed sequence, and assertions that no configuration writes occur are unchanged. There are no production changes, timeout increases, skipped tests, or first-match shortcuts.

User Impact

No product behavior or appearance change. The existing browser check can validate opening and closing advanced settings without confusing nested controls.

Evidence

  • Before: CI 33141092161, UI E2E job 98752003883 executed 94 passing tests and one failure. The second disclosure click failed because the selector resolved to both the outer Advanced settings summary and the nested object summary. The affected test and renderers are unchanged between that run's main baseline and this branch's base.
  • Provenance: the three descendant-summary selectors were introduced in #131421, authored and merged by Patrick Erichsen (@Patrick-Erichsen), commit f6e38796923a.
  • Local checks passed: git diff --check and node_modules/.bin/oxfmt --check ui/src/e2e/config-form-guidance.e2e.test.ts.
  • Reviewed the complete test, shared disclosure and nested-object renderers, suite lifecycle, and installed Playwright 1.62.1 selector implementation. Fresh Codex P0–P2 autoreview and a separately invoked independent P0–P3 review both completed with no findings.
  • After: exact-head CI 33143118814 passed, including the required CI gate, type and lint checks. Native Chromium job 98758255690 explicitly passed all three tests in this file: transform-input branches, the browser-local advanced disclosure, and quiet Notifications autosave. The complete shard passed 101 tests across 23 files. This uses the production UI against the mocked Gateway WebSocket harness, not a live provider session.
  • Executed merge: 522ba50d3525e0b53e03b3c76ff8cb9a1c69684f, combining candidate 3af26749e690f59ed7e9eeb9f302ece711dce05b with main 2058fd7e91a7abbbfa924107a9e73c5f692adce0. The initial draft run was intentionally skipped; after marking ready, the normal CI run above supplied the passing proof. No test rerun, timeout change or assertion weakening was needed.

Production LOC: 0. Tests: +3/-3. AI-assisted maintainer repair.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 28, 2026 04:53
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 1:00 AM ET / 05:00 UTC.

ClawSweeper review

What this changes

The PR makes the Control UI E2E test target only the outer Advanced settings disclosure summary, preventing nested settings disclosures from making its clicks ambiguous.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 3 items remain

Keep open. Current main still contains the ambiguous descendant selectors, while this narrow branch repairs the test failure without changing product behavior; the maintainer-owned PR remains pending exact-head CI completion.

Priority: P2
Reviewed head: 3af26749e690f59ed7e9eeb9f302ece711dce05b

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 7 items Current main remains affected: Current main retains descendant summary locators for the outer disclosure, so the PR's central CI failure is not already fixed.
Rendered ownership boundary: The shared settings renderer makes the outer Advanced settings summary a direct child, while nested object fields render their own descendant details and summary after expansion.
Focused regression coverage: The fixture supplies an advanced leaf beneath ui.prefs; the branch preserves the initial-closed, open, closed, and no-write assertions while scoping all three outer-summary operations.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/config-form-guidance.e2e.test.ts

Result: FAIL (failed) — step 1 expect_output keeps the one advanced disclosure browser-local: expected terminal output was not visible within 30 seconds: "keeps the one advanced disclosure browser-local"

[failure]
expected terminal output was not visible within 30 seconds: "keeps the one advanced disclosure browser-local"

[command 1 combined output]
RUN  v4.1.11 /tmp/clawsweeper-live-proof-131541-TnGkxU/target

Assertions:

  • FAIL expect_output: keeps the one advanced disclosure browser-local

How this fits together

The Control UI renders schema-driven settings, including an outer Advanced settings disclosure and nested object disclosures. The mocked-Gateway E2E test verifies that opening and closing the outer disclosure does not write configuration.

flowchart LR
A[Mocked configuration schema] --> B[Settings form renderer]
B --> C[Outer Advanced settings disclosure]
C --> D[Nested object disclosure]
D --> E[Playwright E2E locator]
E --> F[Open close and no-write assertions]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The exact-head CI rollup is incomplete; remaining UI E2E, lint, and guard jobs must finish successfully before landing.
  • Complete next step (P2) - No repair finding remains; this maintainer-owned PR needs the normal exact-head CI completion before merge.
Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

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

Review metrics

Metric Value Why it matters
Production versus test LOC production 0; test-only +3/-3 The repair changes only three existing E2E selector expressions and adds no runtime surface.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the direct-child selector repair and merge after the remaining exact-head checks verify the focused Chromium path.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the direct-child selector repair and merge after the remaining exact-head checks verify the focused Chromium path.

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

Yes: running the existing focused Chromium E2E test on the pre-fix selector reaches two descendant summaries after the outer disclosure expands, whereas the direct-child selector has one target.

Is this the best way to solve the issue?

Yes: the outer renderer owns a direct summary and nested objects own descendant summaries, so a direct-child selector fixes the strict-locator failure without weakening the test or changing the UI.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7573b91727c8.

Labels

Label changes:

  • add P2: This is a bounded CI regression in a browser test with no user-runtime behavior change.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦞 diamond lobster.
  • add status: needs maintainer proof decision: A ClawSweeper-authored PR needs a maintainer proof capture or override decision. Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This is a bounded CI regression in a browser test with no user-runtime behavior change.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦞 diamond lobster.
  • status: needs maintainer proof decision: A ClawSweeper-authored PR needs a maintainer proof capture or override decision. Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • Patrick-Erichsen: The merged disclosure change immediately precedes this repair in the affected-path history and is the linked source of the nested disclosure behavior. (role: original UI disclosure contributor; confidence: high; commits: f6e38796923a; files: ui/src/components/config-form.render.ts, ui/src/components/config-form.node.collection.ts, ui/src/e2e/config-form-guidance.e2e.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add after-fix proof from a real setup, such as a short recording, terminal output, linked artifact, or redacted logs.

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 87b1787 into main Aug 28, 2026
155 checks passed
@steipete
steipete deleted the codex/issue-131421-ui-summary-ci branch August 28, 2026 05:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 28, 2026
… summary

Companion to #131541, which fixed the strict-mode violation in
config-form-guidance: settings-layout carries the same under-scoped
summary locator; scope it to :scope > summary before it can trip the
same way once its clicks happen against expanded advanced content.
steipete added a commit that referenced this pull request Aug 28, 2026
* feat(ui): sidebar project grouping and truly flat None mode

Group by: None now renders one flat session list — no Other/Groups/Coding
zone headers — matching what None promises. New Group by: Project buckets
sessions by their resolved repo/workspace checkout, folding
.claude/worktrees checkouts into their origin repo via the same rule the
harness catalogs already use; checkout-less rows keep their smart zones,
mirroring Person mode.

* test(ui): scope settings-layout advanced-disclosure clicks to its own summary

Companion to #131541, which fixed the strict-mode violation in
config-form-guidance: settings-layout carries the same under-scoped
summary locator; scope it to :scope > summary before it can trip the
same way once its clicks happen against expanded advanced content.

* fix(ui): canonicalize checkout paths inside the shared worktree fold

ClawSweeper P2: sidebar Project mode keyed sections by the raw
workContext.path, so /repo/openclaw and /repo/openclaw/ minted two
identical headers. Move trailing-separator stripping into
foldWorktreeCheckoutPath so the catalog and sidebar callers share one
canonicalization; regression case fails pre-fix.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
…#131543)

* feat(ui): sidebar project grouping and truly flat None mode

Group by: None now renders one flat session list — no Other/Groups/Coding
zone headers — matching what None promises. New Group by: Project buckets
sessions by their resolved repo/workspace checkout, folding
.claude/worktrees checkouts into their origin repo via the same rule the
harness catalogs already use; checkout-less rows keep their smart zones,
mirroring Person mode.

* test(ui): scope settings-layout advanced-disclosure clicks to its own summary

Companion to openclaw#131541, which fixed the strict-mode violation in
config-form-guidance: settings-layout carries the same under-scoped
summary locator; scope it to :scope > summary before it can trip the
same way once its clicks happen against expanded advanced content.

* fix(ui): canonicalize checkout paths inside the shared worktree fold

ClawSweeper P2: sidebar Project mode keyed sections by the raw
workContext.path, so /repo/openclaw and /repo/openclaw/ minted two
identical headers. Move trailing-separator stripping into
foldWorktreeCheckoutPath so the catalog and sidebar callers share one
canonicalization; regression case fails pre-fix.
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 size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant