Repository navigation
fix(ui): restore total CSS budget headroom - #189618
Conversation
Remove redundant light-DOM border-box declarations already owned by the global reset, a duplicate chat-details action rule, an unrendered approval selector, and unused mobile variables. Keep pseudo-element and standalone/inline stylesheet resets. Same-host production assets shrink from 309737 to 309190 B CSS gzip (176 B below the unchanged cap) and 1601796 to 1599243 B raw. Computed styles and geometry match for 127 selector fixtures across light/dark at 400/820/1280 px. UI typecheck, targeted stylelint, and independent P0-P2 review passed.
|
🦞👀 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 SummaryThis 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 redundant resets, duplicate styling, and unused CSS to restore Control UI asset-budget headroom. Example: Build Control UI against the unchanged 309,366-byte gzip CSS cap.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it restores the CSS budget through focused deletions, with no introduced defect found; remaining browser-test failures still need attribution. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI stylesheets enter the production asset build, which emits compressed CSS measured by the performance-budget checker and served to browsers. flowchart LR
A[Global reset] --> C[Production asset build]
B[Component and route styles] --> C
C --> D[Compressed CSS]
D --> E[Performance budget checker]
D --> F[Control UI browser]
Technical reviewBest possible solution: Retain the existing global reset and fixed budgets, remove the verified redundant CSS, and settle the remaining CI attribution before landing. Do we have a high-confidence way to reproduce the issue? The unchanged checker enforces the stated cap, the PR records a baseline overrun, and exact-head performance CI passes; no local build was run during this read-only review. Is this the best way to solve the issue? Deleting redundant declarations at their consumers is a focused repair that preserves the existing reset owner, cascade intent, and budget enforcement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2fe0a234f29b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -123. Total -123 across 49 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 31, 2026, 2:09 PM ET / 18:09 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Remove redundant light-DOM border-box declarations already owned by the global reset, a duplicate chat-details action rule, an unrendered approval selector, and unused mobile variables. Keep pseudo-element and standalone/inline stylesheet resets. Same-host production assets shrink from 309737 to 309190 B CSS gzip (176 B below the unchanged cap) and 1601796 to 1599243 B raw. Computed styles and geometry match for 127 selector fixtures across light/dark at 400/820/1280 px. UI typecheck, targeted stylelint, and independent P0-P2 review passed.
What Problem This Solves
Fixes the total CSS budget failure in Control UI performance CI. Current main measured 309,737 B gzip against the fixed 309,366 B cap, beyond the earlier 26 B overrun reported in #189556.
User Impact
No visual or behavioral change. The production CSS is smaller without raising either CSS cap or changing lazy loading boundaries.
Why This Change Was Made
The document-wide reset already gives every light-DOM element
box-sizing: border-box. Remove 94 redundant declarations from their rendering consumers while retaining pseudo-element and standalone/inline stylesheet resets. Also remove an exact duplicate chat-details action rule, the unrendered approval-source selector, and four unused mobile CSS variables. The complete change deletes 123 lines and adds none.Evidence
Same machine and installed toolchain, Node 26.12.1. Baseline:
0fa8b191def1ac87f9109eb7a0c1485bcf3f9c1a. CI's exactpnpm ui:check-performance:base <base>reproduced the baseline measurements; the candidate used the same fixed comparison build identity withpnpm ui:buildand the strictpnpm ui:check-performance --base-dist <baseline>.pnpm tsgo:uigit diff --checkComputed-style proof used production CSS, 127 concrete selector fixtures, 400/820/1280 px viewports, and light/dark themes: zero differences in computed CSS properties or geometry in all six cells. Only the four intentionally removed, unconsumed custom-property names were excluded from property enumeration. The selector fixtures cover every removed reset selector and the duplicate action rule, plus the old mobile-variable locations. Source search confirms the approval selector has no production renderer. No screenshots are required for a visual change because the rendered styles are unchanged; this uses the lane's explicitly allowed computed-style proof.
The requested 200 B gzip headroom target is missed by 24 B; both fixed caps pass without an increase. No leases or local Docker were used.
CI failure attribution
Run 41226684796, attempt 1, passed
control-ui-performance,security-fast, both real-Gateway shards, and the other applicable checks. Three E2E jobs failed. Their seven exact test names also fail without this patch on CI's main parentb873e69d3c224be83206d5c6cc12be761618bf4d:keeps dark child rows stable through loading and refresh at 390 px with a fine pointer and 100% textkeeps light child rows stable through loading and refresh at 390 px with a fine pointer and 100% textkeeps dark child rows stable through loading and refresh at 390 px with a coarse pointer and 100% textkeeps light child rows stable through loading and refresh at 390 px with a coarse pointer and 100% textdispatches a cloud target before sending its first turn and shows placementrefreshes accessible sidebar disk pressure through canonical session eventsshares read-only Uncommitted demand between Environment and Review and recovers retained countsThe baseline runs selected only these failed cases, used headless Chromium, and left the baseline checkout clean. The tests and identified domain/sizing inputs are unchanged between the baseline and CI's tested merge
50156436dd80a61961831fd9f4207b7e994b3e2b. The native inherited-failure recovery retains these failures; it does not relabel CI green.