Skip to content

perf(ui): keep session-management English out of boot - #199196

Merged
steipete merged 3 commits into
mainfrom
solid2/w-perf-bytes-paydown-2-1114
Nov 14, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-perf-bytes-paydown-2-1114

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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 b7bc6c410210 versus head 34d9acb3bffd:

Surface Main Paydown Delta
Startup JS 90,952 B 90,953 B +1 B build variance
Chat boot JS 1,314,889 B 1,310,955 B −3,934 B
New Session boot JS 818,389 B 814,315 B −4,074 B
Startup JS / CSS requests 3 / 1 3 / 1 0
Chat / New Session JS requests 21 / 17 21 / 17 0
  • Import-boundary regression: red on base (commands registered dialog-only copy); 6/6 passing after the fix, 1.66 s wall time including wrapper.
  • UI typecheck and keyless i18n verification passed. Canonical copy and its order are unchanged.
  • Independent local autoreview, base 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.
  • Cold Chat at 100 ms RTT on the original e4d39f47a63d base/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.
  • Strict paired performance check: passed, zero violations.
  • Production Knip: scripts/perf/web-push-measure.ts: openssl is an unlisted binary in unchanged main code; the exact clean base e4d39f47a63d fails identically. No ignore added.
  • PR CI owns broad unit and E2E coverage (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-other typecheck 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 34d9acb3bffd integrates main b7bc6c410210; its full CI run 43643729839 is failed, not green. The native inherited-failure exception is selected only after matching every failed test by name:

Failed job Exact cases Baseline evidence
132597206971, UI E2E 3/7 Activity: loads remote previews during refresh at 1440 px and 390 px; keeps Activity understandable during loading, refresh failure and compact media at 1440 px and 390 px; New Session: keeps blocked palette readiness out of creation errors All five fail identically on clean current base b7bc6c410210: zero removed thumbnails instead of four, and one palette creation error instead of zero.
132597207004, UI E2E 6/7 WhatsApp: completes direct setup as the selected channel Same missing exact Set up button on clean original base e4d39f47a63d and completed scheduled-main 43637458849.
132597207023, UI E2E 5/7 keeps independent model and effort controls within the chat composer Same model-button focus assertion fails on clean current base b7bc6c410210.
132597207074, UI E2E 4/7 Terminal: uploads picked and dropped files, then pastes staged paths without Enter Same stale upload-error text selector on original base and scheduled-main run above.

The 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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T21:38:36.996801Z 34d9acb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 14, 2026 21:02
@steipete
steipete disabled auto-merge November 14, 2026 21:05
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: “Rename session” requires importing the full management catalog; reported Chat boot JavaScript is 1,314,958 B gzip.
  • After: The same title comes from the shared catalog; reported Chat boot JavaScript is 1,310,076 B gzip.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and source-consistent, but runtime evidence does not meet the scoped performance policy and broad CI is not yet cleared.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Chat and New Session download management-dialog English before users open those surfaces.
Reason: The maintainer-authored direction removes unnecessary boot bytes using established catalog owners while preserving visible text and behavior.

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
Reviewed head: 58dc39992f830e285d7ea8019b8ec26ac5e62045

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted output from the production UI served by a real isolated Gateway demonstrating the cold-load catalog deferral and retained command labels.
Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

  • Shared and management English catalogs keeps the original intent (c2d4264: Keep cold-chat labels shared while management copy follows lazy consumers, preserving values and property ordering.)
  • Localized slash-command titles keeps the original intent (0880fe3: Use localized action titles consistently for command rendering and search.)
  • Generated boot membership keeps the original intent (11828a0: Record route-reachable fetched modules rather than every module co-located in a fetched chunk.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit be4af37 adds ui/config/control-ui-chunking.ts:283 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: be4af37c3c9f; files: ui/config/control-ui-chunking.ts)

PR surface

Source +10, Tests +15. Total +25 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 16 6 +10
Tests 1 15 0 +15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 31 6 +25

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A bounded boot-transfer improvement with measured savings and no demonstrated urgent user-facing regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A bounded boot-transfer improvement with measured savings and no demonstrated urgent user-facing regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • The CI owner should attribute the remaining question-layout and channel-setup failures using a matching baseline or another independently verified occurrence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 4:25 PM ET / 21:25 UTC.

@steipete
steipete merged commit 0a3ec34 into main Nov 14, 2026
109 of 115 checks passed
@steipete
steipete deleted the solid2/w-perf-bytes-paydown-2-1114 branch November 14, 2026 22:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
* perf(ui): defer session-management copy beyond command boot

* test(ui): preserve command-label tuple types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant