Repository navigation
fix(ui): stabilize browser interaction coverage - #149929
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 16, 2026, 5:14 AM ET / 09:14 UTC. ClawSweeper reviewWhat this changesStabilizes 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +2, Tests +21. Total +23 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. 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.
|
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.
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:
After, the annotation owner keeps the button shadow-free:
Validation