Repository navigation
perf(ui): trim unused filter styles and defer popup geometry - #196291
Conversation
Keep popup sizing in the lazy OpenClaw ID account flow while preserving synchronous reservation and opener isolation. Remove obsolete Usage and Dashboard selectors and consolidate identical search declarations without changing their computed styles.
|
🦞👀 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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused filter styles, combines identical CSS declarations, and moves popup geometry into the lazy sign-in module. Example: Open the Dashboard author search at 400 px in dark mode.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed cleanup preserves existing behavior, with no introduced defect found; both failing UI checks match verified earlier failures. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI loads shared styles and external-window utilities for multiple routes; lazy account code supplies sign-in popup geometry before the shared helper opens an isolated window. flowchart TD
A[Control UI routes] --> B[Shared field styles]
A --> C[Lazy account menu]
C --> D[Sign-in popup geometry]
D --> E[Shared window reservation]
E --> F[Browser popup]
C --> G[Gateway sign-in flow]
Technical reviewBest possible solution: Retain this bounded cleanup using the existing lazy account owner, shared window reservation helper, and stylesheet owners. Do we have a high-confidence way to reproduce the issue? Source inspection confirms unused selector families, duplicated declarations, and popup geometry in the shared utility; no target build or test was executed during this review. Is this the best way to solve the issue? The patch follows the smallest complete approach: delete unused CSS, group identical declarations, and move unchanged geometry into its existing lazy consumer without adding state or dependencies. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5b3bd03b8bb9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -59, Tests +18. Total -41 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 9, 2026, 6:02 PM ET / 23:02 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…w#196291) Keep popup sizing in the lazy OpenClaw ID account flow while preserving synchronous reservation and opener isolation. Remove obsolete Usage and Dashboard selectors and consolidate identical search declarations without changing their computed styles.
What Problem This Solves
The Control UI ships unused filter selectors and repeats search-field declarations. Chat also loads popup geometry before the sign-in flow is used.
User Impact
Fewer bytes on the initial route, with the same search fields, popup sizing, Archive Undo, and page-leave commit behavior. This pays down existing size overruns without raising any budget or removing features.
Why This Change Was Made
Move popup geometry to the existing lazy sign-in owner. Keep the shared reservation helper responsible for synchronous window creation and opener isolation. Delete the obsolete Usage row/pin and Dashboard select rules, and group identical search declarations after checking their cascade. Distinct font, flex, padding, and margin rules remain intact.
Evidence
Same-machine production builds and strict checker, base
a8d7470fbdc→ this patch (normalized gzip):The strict checker remains red for inherited caps: CSS is still 1,600 B gzip / 7,974 B raw over, and New Session is 344 B over. All three improve; no cap or baseline changes. Chat is 72 B below its current cap. Across all lazy JS assets the gzip sum grows 245 B (raw sum shrinks 4 B); this is the disclosed compression trade for keeping sign-in code out of route preload. The 23 B route saving is below the 64 B build-variance band; it is not claimed as a meaningful timing win.
pnpm tsgo:ui, scoped test typechecking, scoped oxlint/stylelint/format,git diff --check, and productionpnpm deadcode:knippass. Both directly changed test files pass: 24 tests. Three popup geometry cases now exercise the actual sign-in entry point, including reservation before its first Gateway read. Local Codex autoreview of the complete seven-file change reports no actionable P0–P2 findings. Production LOC 7,612→7,553 (−59); tests 330→348 (+18). The Solid state/effect/owner API counts are unchanged.Visual proof: 16 synthetic states across desktop 1280 px / phone 400 px and light/dark. All 50 computed-style/geometry snapshots and all 16 complete viewport images are identical. The phone Author capture explicitly waits for all ten search highlights; earlier incomplete captures were discarded as setup evidence. All 123 stylesheet asset hashes are identical between the visual-proof build and final accepted build.
Historical Chat attribution and rejected experiment
Three clean historical builds isolate Archive Undo and the attachment crossing; the existing exact popup-parent build is reused.
b32f01ae6b1d86Archive parentc31ffe8Archive head2dce49cattachment picker9eb1dc2popup parent50a1577popup headThe attachment delta comes from its two input modules in the shared chunk; the Archive delta comes mainly from held-archive state and Chat presentation. They preserve working iOS picker positioning and Undo behavior. The −217 B and +39 B intervals are not assigned to individual owners. A candidate moving Archive's page-hide listener to its lazy runtime added 17 B of normalized Chat gzip compared with the popup-only candidate and was dropped; its 21 focused tests passed. No accepted transcript performance trade was removed.
The remaining CSS overrun belongs to live Usage picker/filter and Dashboard gallery/row styles. The source audit found no further certain dead rules in those stylesheets. This patch is a bounded cleanup, not full recovery of the accumulated caps.
Timing confirmation: 240/240 observations passed, twenty rotated base/head/A/A-control triplets per scene and engine. Fresh Chromium/Firefox processes, desktop, no throttle, production bundles and synthetic Gateway. Host load min/median/max 18.91/23.75/29.76. No resolved timing regression and no timing win claimed.
Chromium paired task medians are −0.06% cold / +0.82% Dashboard, with both p95s lower. Every cold arm renders 400 messages / 6 mounted rows and completes 20 JS requests; Dashboard retains 637 elements. The +2 ms Firefox cold tail is <1%; tiny layout/style tails remain inside A/A variation. Firefox does not supply CPU counters. Usage timing is excluded by the committed harness; its visual/computed proof above covers the changed controls. WebKit startup smoke timed out, so no WebKit pass is claimed. Reusable Chromium crashed in the host display link; the completed run uses the existing fresh-process option.
CI follow-through
Exact-head CI run 42714856084 passed the performance job, the other UI unit shards, browser-extension and real-Gateway coverage. The first attempt had one transcript clamp unit failure (
scrollTop960 versus 860); a single targeted job retry passed on attempt 2. Two local base attempts timed out in the Mac browser before reaching that assertion; a queued Linux Testbox was stopped without running its payload. No source change or passing replay is claimed as a fix; the original timing failure remains documented.The three E2E failures match the scheduled run at the exact merge base, 42711813458:
aligns Person left status at 1200 px,aligns Person left status at 390 px(both measure 14 versus 13), andkeeps a single web conversation with in-page native navigation and Dashboard handoff(header 56 versus 64). The first two labels are redacted in both logs; the identical case order, unchanged source matrix and Person-only assertion identify them. Owning tests and layout styles are byte-identical in the base and actual CI merge2f9ed93b3e76c8caa9c9b2c4429486b4fe59e411. They are retained as failures, not reported as passing.Both startup and closeout WebKit launch smokes timed out at 12 seconds. No WebKit pass is claimed.
The native inherited-failure route is selected for the three matching E2E cases; all other current jobs pass.