Skip to content

chore(ui): account for route byte costs after paydown - #199256

Merged
steipete merged 1 commit into
mainfrom
solid2/w-perf-bytes-caps-1114
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-perf-bytes-caps-1114

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Chat and New Session have exceeded their absolute JavaScript caps on main. Scheduled main builds compare identical inputs and pass with a zero delta, but every later PR adding more than the 64 B variance allowance fails. The existing debt is blocking #199136's independently measured WebKit boot improvement.

User Impact

Account for the measured route-byte debt after paying down unnecessary boot copy. New work remains responsible for its own growth. This changes only two caps; it does not change runtime behavior.

Why This Change Was Made

The remainder is coordinator-accepted feature cost after paydown, not a claim of new approval from Peter. Keep the shipped features and set Chat and New Session to the exact current-main measurements with zero headroom, following the earlier total-CSS accounting in #196356.

Paydown #199196 keeps session-management English out of command boot, saving 3,934 B on Chat and 4,074 B on New Session after refresh to main b7bc6c410210 (original base: 4,882 B / 4,879 B). Startup requests and bytes stay unchanged within 1 B build variance. The 100 ms RTT cold-Chat guard passes ten rotated base/head/A/A triplets.

Cap Previous Measured current-main cap Headroom
Chat boot JS gzip 1,303,711 B 1,310,659 B 0 B
New Session boot JS gzip 805,886 B 814,328 B 0 B

Measured feature owners

Frozen-lockfile, clean, same-machine parent/commit builds; normalized gzip. The measurement owners and normalizer did not change in the inspected range. These are historical gross deltas, not allocations of today's compressed remainder.

PR Chat delta New Session delta What it buys / prior decision
#197481 −108 B +1,782 B Cmd/Ctrl+Enter creates a background session; its PR documents an accepted boot-byte exception. New Session crosses its cap here: 805,046 → 806,828 B.
#197804 +263 B 0 B Wrap/scroll toggle for user-message code blocks. Chat crosses its cap here: 1,303,640 → 1,303,903 B. The PR records a CSS exception but did not call out this JS crossing.
#197817 +6,804 B +7,667 B Localized slash-command titles and argument choices; accepted size exception is recorded. #199196 removes the unnecessary management catalog from this path.
#192242 +1,070 B +648 B Inline human mentions, recipient identity, clipboard and history; accepted size exception is recorded.
#186059 +3,418 B +3,895 B Search/Compose palette and retained drafts; accepted size exception is recorded.

The inline-mention and palette changes were candidates, not the initial cap crossings. The last cap-setting main commit 65c2e61b164e builds to 1,302,392 B / 803,942 B on this machine. The five listed feature deltas total +11,447 B / +13,992 B. Other intervening main changes net +1,119 B / +481 B; that residual was not individually decomposed or represented as previously approved. The coordinator's current accounting instruction accepts the measured remainder after the paydown.

Complete telescoping accounting to the paydown base
Main interval, excluding listed feature commits Chat net New Session net
65c2e61 → #197481 parent e886e45 +1,210 B +1,104 B
#197481 → #197804 parent 8c2ff6d +146 B +129 B
#197804 → #197817 parent 220ca12 +423 B +128 B
#197817 → #192242 parent 63513b0 +17 B −2,427 B
#192242 → #186059 parent 9401863 −1,170 B −60 B
#186059 → e4d39f4 +493 B +1,607 B
Net other changes +1,119 B +481 B

Starting main + listed features + other net = paydown base 1,314,958 B / 818,415 B exactly. Subtracting #199196 gives 1,310,076 B / 813,536 B on that base. Fresh post-merge main is measured separately above; no older value is used as the final cap.

Evidence

Fresh post-paydown main 5328b2754d84472b6c6e05fe80c2fc4513fd7e2e was built once with its frozen dependencies. The runtime bundle is unchanged by this PR.

Proof Result
Production build on fresh main Passed; absolute debt reported before accounting
Strict same-bundle comparison after cap edits Passed, zero violations
Existing performance-checker tests 50/50 passed, one worker, 23.08 s
Focused lint and whitespace check Passed
Independent P0–P2 review Clean

Only scripts/check-control-ui-performance.mts changes: +4/−7 lines, 863→860 total. No new tests or runtime code. No remote lease. Other inherited size warnings remain unchanged and visible. The checker grants no general growth allowance when a base equals its cap. #199136 already carries a coordinator-accepted +235 B adjustment; its owner must reapply that increment to these refreshed caps and reconcile the 1 B Linux difference (+236 B). All other caps, startup baseline, tolerances and checker behavior remain unchanged. No visual change; no screenshot comparison applies.

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

@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-14T22:08:23.708234Z 527d0f2 PR opened
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 14, 2026
@steipete
steipete enabled auto-merge (squash) November 14, 2026 22:10
@steipete
steipete merged commit bcfa6ca into main Nov 14, 2026
99 checks passed
@steipete
steipete deleted the solid2/w-perf-bytes-caps-1114 branch November 14, 2026 22:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant