Repository navigation
perf(ui): keep session-management English out of boot - #199196
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 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 moves three slash-command labels into the existing shared English catalog so boot no longer imports session-management copy. Example: Cold-load Chat and display the /name command.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is a focused performance improvement that preserves existing labels and loading owners, with no concrete introduced code defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI command discovery registers English catalogs before translating command titles, while build chunking determines which catalogs boot routes download. flowchart TD
A[Chat and New Session] --> B[Command discovery]
B --> C[Shared English catalog]
D[Management views and dialogs] --> E[Management English catalog]
E --> C
F[Build chunking] --> G[Route JavaScript downloads]
Technical reviewBest possible solution: Retain this small catalog cutover, preserving command titles and canonical catalog order without adding another runtime owner. Do we have a high-confidence way to reproduce the issue? Current-main source directly establishes the eager management-catalog import through command discovery; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The patch restores the existing shared-versus-management boundary with one independent loading regression and no unnecessary machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f357291605fb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +15. Total +25 across 6 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. 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 November 14, 2026, 4:25 PM ET / 21:25 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* perf(ui): defer session-management copy beyond command boot * test(ui): preserve command-label tuple types
What Problem This Solves
Both Chat and New Session boot fetch the full session-management English catalog because slash-command discovery imports it for three labels. The remaining copy belongs to management views and dialogs. On main
e4d39f47a63d, Chat boot is 1,314,958 B gzip and New Session is 818,415 B, above their existing caps.User Impact
Chat and New Session download about 4 KB less compressed JavaScript at boot. Existing command labels and session-management dialogs keep their behavior.
Why This Change Was Made
Put Rename session, Verbose, and Reasoning in the existing shared catalog. Commands register that owner; the full management catalog reuses those values and loads with its actual consumers. Regenerate the boot manifest and keep the catalog out of stale boot groups. No labels, controls, routes, authority, dependencies, or budget limits change.
Evidence
Same-machine fresh production bundles, normalized gzip; refreshed main
b7bc6c410210versus head34d9acb3bffd:e4d39f47a63d, full six-file local snapshot, P0–P2: no actionable findings. Its scope was the supplied diff; unchanged consumers and reported test outcomes were not independently executed by that reviewer.e4d39f47a63dbase/paydown pair (the refreshed pair keeps identical request counts): 30/30 observations passed over ten rotated base/head/control triplets, headless Chromium and synthetic 400-message Gateway fixture. Readiness median/p95: base 814.50/849.28 ms, head 814.25/822.16 ms, unchanged control 815.15/821.16 ms. Renderer thread CPU median/p95: 449.32/459.63 → 447.18/454.52 ms. Host load 3.59–5.52 on 32 logical CPUs. No latency regression.scripts/perf/web-push-measure.ts: opensslis an unlisted binary in unchanged main code; the exact clean basee4d39f47a63dfails identically. No ignore added.ci:full). Absolute pre-existing size overruns remain visible; this PR lowers both route totals and changes no cap.No appearance changes, so no screenshot comparison applies. Simplification leaves one shared owner for the three labels and no extra runtime abstraction. Solid lifecycle/reactivity counters are unchanged (0 added). Production/config source: 1,832→1,838 lines; test source: 63→78 lines; generated manifest: 1,959→1,963 lines.
This is the source paydown for the follow-up exact-cap accounting requested by the migration coordinator. The follow-up will document historical feature owners and accept only the measured remainder, with zero headroom.
CI repair: the first run caught a missing readonly tuple annotation in the new test and the PR context checker required the repository template headings. Both are corrected; the exact
core-test-ui-othertypecheck passes. The tuple-only repair changes no measured production input.CI follow-through
The initial tuple type and PR-template headings were corrected. Current head
34d9acb3bffdintegrates mainb7bc6c410210; its full CI run 43643729839 is failed, not green. The native inherited-failure exception is selected only after matching every failed test by name:loads remote previews during refresh at 1440 pxand390 px;keeps Activity understandable during loading, refresh failure and compact media at 1440 pxand390 px; New Session:keeps blocked palette readiness out of creation errorsb7bc6c410210: zero removed thumbnails instead of four, and one palette creation error instead of zero.completes direct setup as the selected channelSet upbutton on clean original basee4d39f47a63dand completed scheduled-main 43637458849.keeps independent model and effort controls within the chat composerb7bc6c410210.uploads picked and dropped files, then pastes staged paths without EnterThe six current-base repros ran once with one worker. Node was selected because these are Playwright E2E tests. The current CI checkout is
bfba24e95d8e94be90bed0179b962a65b0121f8d, whose ordered parents are that main base and this PR head. All other executed jobs, including both real-Gateway shards, passed. The aggregate CI gate fails on these four jobs.Earlier connection-splash and question-panel cases passed the refreshed CI. No source fix or inherited attribution is claimed for those intermittent observations. No unrelated test was changed, disabled, or ignored. The scoped diff remains six files, +31/-6.