Repository navigation
perf(ui): restore Chat byte budgets with browser-floor cleanup - #194203
Conversation
Remove unsupported-platform branches and compile existing test hooks out of production. Consolidate redundant Dreaming CSS without changing computed styles. Chat falls 335 B normalized gzip from the merged baseline; total CSS returns below both caps. Lower New Session, shared-chunk, raw CSS, and startup baselines without raising Chat.
|
🦞👀 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 changes before merge. What this changesThis PR removes obsolete browser fallbacks and redundant CSS, compiles test hooks out of production, and lowers Control UI byte budgets. Example: Loading Chat in a supported browser with the matched production build.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 5 items remain Keep open: this PR provides useful, owner-approved byte savings, but four test-environment regressions block merge. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI renders Gateway state through browser-owned observers, media queries, and Solid components; production asset measurements feed the existing performance-budget checker. flowchart LR
A[Gateway state] --> B[Control UI owners]
C[Browser events] --> B
B --> D[Solid presentation]
D --> E[Chat and settings]
F[Production assets] --> G[Performance budgets]
Technical reviewBest possible solution: Preserve the browser cleanup, repair test-environment compatibility at existing fixture owners, and retain main’s newer lower caps when resolving the conflict. Do we have a high-confidence way to reproduce the issue? The supplied matched builds establish the byte reduction, while exact-head CI annotations and fixture source establish the test-environment failures; no target code was executed locally. Is this the best way to solve the issue? Deleting unsupported-platform branches at existing owners is appropriate, but the cutover must update every affected test environment and preserve native browser storage behavior during browser tests. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d46a50ff8bc7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -92, Tests -32, Other -1. Total -125 across 36 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 6, 2026, 11:11 AM ET / 16:11 UTC. |
|
Merged via explicitly authorized admin squash with prior CI and scoped validation.
|
…law#194203) * perf(ui): restore chat budgets with browser-floor cleanup Remove unsupported-platform branches and compile existing test hooks out of production. Consolidate redundant Dreaming CSS without changing computed styles. Chat falls 335 B normalized gzip from the merged baseline; total CSS returns below both caps. Lower New Session, shared-chunk, raw CSS, and startup baselines without raising Chat. * test(ui): align browser fixtures with the supported platform
What Problem This Solves
Pay back Chat boot growth and restore the tighter budgets after #194135. The matched main build exceeded its Chat and New Session caps; this change removes bytes without changing request counts or moving a lazy boundary.
User Impact
The same Chat controls and layouts load fewer bytes. Browser support remains Safari 26.2+, Chrome 147+, and Firefox 150+.
Why This Change Was Made
Remove unsupported-browser branches for observers, media queries, pointer capture, highlights and visibility; delete 23 unreferenced English keys and six stale aliases; use native hex and base64url encoding; compile existing Node test hooks out of production. Mark four fixed theme-validation RegExp constructors pure so consumers that only need theme branding do not retain unused validation initialization. The validator and all its checks remain intact for its callers.
Consolidate duplicate Dreaming CSS and remove declarations already supplied by the cascade or flex layout. No lazy boundary, request timing, or state ownership changes. This is a deletion proof, not a latency claim.
Evidence
Same-machine Node 26.12.1 production builds, using the generated-name normalization from #193843. Base:
21cd90050fb6b8389cc5c8b81a1ee40230aba901(includes the Cron boundary change #194165).Every listed size cap is measured head + 64 B; the initial baseline retains its existing growth/variance policy. No ceiling increased. The strict checker passes without a base-over-budget exemption. Requests stay Chat 20 JS / 3 CSS, New Session 15 / 3, initial 3 / 1.
Together with #194135, the two matched deltas reclaim 2,466 B from Chat. After concurrent main changes, final Chat is 2,101 B below the original 1,289,681 B baseline, exceeding the 1.5 KiB goal.
git diff --checkpass.common.healthtest probes, a Node navigation fixture withoutmatchMedia, a pointer test fabricating capture events without capture state, and missing JSDOM Range geometry. Test-only repairs preserve the original assertions: 60 i18n tests, 25 navigation/leak tests, 29 transcript tests, and the final 26 browser/leak tests pass. Duplicate per-suite font/observer fixtures were removed in favor of central setup.ci:fullselects all UI, Control UI E2E, browser-extension and real-Gateway shards.Touched files: 16,292 → 16,166 LOC (+162/−288, including the JSDOM fixtures). Net test LF growth against the merge base is zero; no test budget allocation or ceiling increase. Solid checklist counts stay unchanged: effects 4, render effects 0, untrack 0, direct listeners 1, DOM queries 0, flush 2, owner APIs 0, cleanup 4, dynamic imports 7. Native observers and events retain their original lifecycles.
Inspected synthetic before/after frames: