Skip to content

fix(ui): stabilize browser interaction coverage - #149929

Merged
steipete merged 1 commit into
mainfrom
codex/bun-final-candidate
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/bun-final-candidate

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Problem

A cold, single-worker Control UI browser stress run exposed six order- and platform-dependent failures. Three reproduced under Node as well as Bun: macOS undo used the Linux modifier, native select keyboard automation did not change the selected option, and retained pointer hover kept board chrome visible. Full-suite ordering also leaked theme/palette state into favicon and annotation assertions.

The annotation failure revealed a production CSS ownership bug: the editor's shadow reset tied the shared primary-button selector on specificity, so a later lazy stylesheet could restore a red glow.

Solution

Use the platform's real undo modifier, select the pending desktop option through the browser test API, clear retained hover, and make theme fixtures own and restore both palette and mode. Give the annotation editor's primary-button reset enough specificity to remain authoritative regardless of stylesheet load order.

Visual proof

Before, the later shared button sheet restores a red shadow:

Annotation confirm button before

After, the annotation owner keeps the button shadow-free:

Annotation confirm button after

Validation

  • Node focused browser control: 5 files, 56 tests passed.
  • Direct Bun cold browser lane: 71 files, 936 tests passed.
  • Repository changed-file gate passed, including core/UI typechecks, formatting, style lint, dead-code checks, and dependency guards.
  • Fresh P0-P2 autoreview found no actionable issues.

@clawsweeper

clawsweeper Bot commented Sep 16, 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: S maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 5:14 AM ET / 09:14 UTC.

ClawSweeper review

What this changes

Stabilizes Control UI browser tests across platforms and test order, and prevents shared button styles from restoring a red shadow on annotation controls.

Merge readiness

✅ Ready for maintainer review

The PR remains useful: current main retains the CSS specificity problem and the affected test behavior. No actionable correctness or security findings were identified, and the inspected before/after screenshots support the visual fix.

Priority: P3
Reviewed head: 7f8eb46bae05e4b66a4bb894154c7975f1af1e1f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant visual evidence, retained behavioral assertions, and no identified blocking defect.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.
Evidence reviewed 7 items Introduced scope and current-main comparison: The complete pinned introduction contains five browser-test adjustments and two CSS selectors. Comparing those paths with fetched main shows the same changes still outstanding; base-only native and runtime changes are not part of this PR.
CSS ownership and keyboard focus: Shared .btn.primary and .btn.primary:hover rules introduce shadows. The added annotation-specific selectors outrank them, while the existing one-pixel focus-visible outline remains intact. The annotation renderer uses these primary classes for both compact confirmation and expanded Save.
Inspected visual evidence: Both prepared images were opened locally. The before image shows an outer shadow around the annotation confirmation button; the after image removes it while retaining the button and editor layout. PR-body attachments: https://github.com/user-attachments/assets/74ba9e80-f701-4a56-b524-ed8b509cf409 and https://github.com/user-attachments/assets/8ccb2834-d6f2-40ec-8624-928a49f1a631. This supports the appearance change, not an unrelated runtime or security claim.
Findings None None.
Security None None.

How this fits together

The Control UI renders chat annotations and other interactive browser controls. Browser tests exercise their presentation and input behavior, while component CSS determines how shared button styling applies to the annotation editor.

flowchart TD
  A[Browser input and theme] --> B[Control UI components]
  C[Shared button styles] --> D[Annotation editor styles]
  B --> D
  D --> E[Visible annotation controls]
  F[Browser interaction tests] --> B
  E --> G[Appearance and focus assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +2, Tests +21. Total +23 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 0 +2
Tests 5 50 29 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 52 29 +23

Review metrics

None.

Technical review

Best possible solution:

Keep annotation appearance owned by its existing stylesheet and preserve browser tests that explicitly establish their theme, pointer, selection, and platform state.

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

Yes, from source: loading shared primary-button styles after the current annotation stylesheet lets equal-specificity shadow rules win. The supplied screenshots demonstrate the visual difference; this read-only review did not execute a reproduction.

Is this the best way to solve the issue?

Yes. Increasing specificity within the existing annotation style owner is a narrow repair that preserves keyboard focus, while the test changes retain observable behavior checks without adding retries or relaxing their outcome thresholds.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is bounded browser-test stabilization with a small visual styling correction and no demonstrated urgent user workflow failure.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.

Label justifications:

  • P3: This is bounded browser-test stabilization with a small visual styling correction and no demonstrated urgent user workflow failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after browser captures show the annotation editor's confirmation button losing its unwanted outer shadow, directly matching the production CSS change; reported Node and Bun browser runs supplement that appearance proof.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Peter Steinberger: 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 4eb58dd into main Sep 16, 2026
89 checks passed
@steipete
steipete deleted the codex/bun-final-candidate branch September 16, 2026 09:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
A cold single-worker browser run exposed platform and stylesheet-order failures in Control UI coverage. Use the host's undo modifier, deterministic selection and pointer interactions, and complete theme-state ownership while keeping annotation button shadows scoped to the chat owner.

Validation: Node passed all 56 affected browser tests; the signed Bun build passed the complete 936-test browser lane; exact-head CI, the changed-file gate, visual proof, ClawSweeper review, and P0-P2 autoreview passed.
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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