Repository navigation
perf(ui): defer dormant Chat presentation and streaming runtime - #183198
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 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. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b70907cf0
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (pending.events.some((frame) => frame.isCurrent())) { | ||
| state.chatError = t("lazyView.staleSubtitle"); | ||
| } | ||
| pending.events.length = 0; |
There was a problem hiding this comment.
Publish live-runtime loading failures to the visible error state
If the live-events chunk fails to load, such as after a deployment invalidates its asset URL or the network disconnects, this handler discards the queued frames but writes only chatError. The normal Chat error notice reads state.lastError (chat-pane-render.ts:521), and createChatErrorState maintains those fields independently, so this failure is not shown to the user. The transcript can therefore miss live updates without explaining why or prompting recovery. Use the existing setChatError owner to update both error fields before dropping the frames.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR defers Chat streaming, optional presentation, and operation implementations until their existing use boundaries. Example: Cold-load desktop Chat with settled text history.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored performance PR open; its measured evaluation savings are useful, but live-runtime loading failures currently discard updates without showing the recovery notice. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI consumes Gateway history and ordered live events, maintains scoped Chat state, and renders transcripts and interaction controls through Solid. flowchart LR
A[Gateway history and events] --> B[Chat state owners]
B --> C[Scoped live event queue]
C --> D[Deferred streaming runtime]
B --> E[Settled transcript renderer]
D --> F[Chat presentation]
E --> F
G[User interactions] --> H[Deferred operation implementations]
Technical reviewBest possible solution: Retain the deferred boundaries and publish loading failures through the existing setChatError owner. Do we have a high-confidence way to reproduce the issue? Source inspection establishes that rejecting the first live-runtime import clears queued updates while leaving the rendered lastError field unchanged; no executable reproduction was run. Is this the best way to solve the issue? Deferring implementations behind existing owners fits the measured problem, and the smallest corrective change reuses the shared error setter without adding another recovery mechanism. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1d0d6db70218. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 24, 2026, 11:54 PM ET / October 25, 2026, 03:54 UTC. |
|
The final repair preserves mobile prompt position when the Gateway acknowledges a send. Before: delivery status and timestamp wrap into two lines; acknowledgment collapses the footer by 17 px. After: one metadata slot stays 24 px tall and prompt movement is 0 px. Queue actions remain available and the timestamp returns after acknowledgment. The unchanged full motion file passes all four cases on d93f420. Both captures use synthetic conversation content and were inspected in full. |
|
Merged via squash.
|
…claw#183198) * perf(ui): defer dormant chat presentation and streaming runtime * fix(ui): retain first-frame chat and offline behavior across lazy boundaries * fix(ui): retain mobile People and complete lazy runtime fixtures * fix(ui): keep pending-send footer geometry stable
…nk (#207550) ## What Problem This Solves `check-lint-core-5` fails on every PR that runs it: ``` ui/config/control-ui-chunking.ts:178:10: error: Duplicate case label (eslint(no-duplicate-case)) ``` #207505 added `case "src/shared/assistant-display-content.ts":` to the `chat-transcript-runtime` list. An older case for the same module (#183198) was already in the `deferred-ui-support` list. In a `switch` the first label wins, so the new case never ran: a build of main still puts the module in `deferred-ui-support`, not where #207505 meant it to go. ## Why This Change Was Made Remove the stale `deferred-ui-support` case and keep #207505's placement. The only importers of the module are `ui/src/pages/chat/chat-gateway.ts` and `ui/src/pages/chat/chat-live-events.runtime.ts`, and both are in the `chat-transcript-runtime` list. ## User Impact No visible change. Chat loads the same code with the same number of requests. Routes that use `deferred-ui-support` without Chat download 200 fewer raw bytes. ## Evidence - `node scripts/run-oxlint.mjs ui/config/control-ui-chunking.ts`: 1 error on main da76574, 0 with this change. - `pnpm ui:build` on main and on this change. Source maps show `assistant-display-content.ts` in `deferred-ui-support` before and in `chat-transcript-runtime` after. The chunk names are the same; only those two chunks change materially (`deferred-ui-support` -200 B raw, `chat-transcript-runtime` +178 B raw). - `scripts/check-control-ui-performance.mts --base-dist <main build>`: 0 violations. Chat boot JS 18 -> 18 requests, 1,335,977 -> 1,336,203 B gzip (limit 1,336,272 B), served brotli 1,148,012 -> 1,147,881 B. New Session 16 -> 16 requests. Co-authored-by: Ayaan Zaidi <[email protected]>
…nk (openclaw#207550) ## What Problem This Solves `check-lint-core-5` fails on every PR that runs it: ``` ui/config/control-ui-chunking.ts:178:10: error: Duplicate case label (eslint(no-duplicate-case)) ``` openclaw#207505 added `case "src/shared/assistant-display-content.ts":` to the `chat-transcript-runtime` list. An older case for the same module (openclaw#183198) was already in the `deferred-ui-support` list. In a `switch` the first label wins, so the new case never ran: a build of main still puts the module in `deferred-ui-support`, not where openclaw#207505 meant it to go. ## Why This Change Was Made Remove the stale `deferred-ui-support` case and keep openclaw#207505's placement. The only importers of the module are `ui/src/pages/chat/chat-gateway.ts` and `ui/src/pages/chat/chat-live-events.runtime.ts`, and both are in the `chat-transcript-runtime` list. ## User Impact No visible change. Chat loads the same code with the same number of requests. Routes that use `deferred-ui-support` without Chat download 200 fewer raw bytes. ## Evidence - `node scripts/run-oxlint.mjs ui/config/control-ui-chunking.ts`: 1 error on main 35d95ac, 0 with this change. - `pnpm ui:build` on main and on this change. Source maps show `assistant-display-content.ts` in `deferred-ui-support` before and in `chat-transcript-runtime` after. The chunk names are the same; only those two chunks change materially (`deferred-ui-support` -200 B raw, `chat-transcript-runtime` +178 B raw). - `scripts/check-control-ui-performance.mts --base-dist <main build>`: 0 violations. Chat boot JS 18 -> 18 requests, 1,335,977 -> 1,336,203 B gzip (limit 1,336,272 B), served brotli 1,148,012 -> 1,147,881 B. New Session 16 -> 16 requests. Co-authored-by: Ayaan Zaidi <[email protected]>


What Problem This Solves
Cold Chat evaluates streaming transforms, inactive presentation, and operation implementations before those features are used. This continues #183042 by separating those implementations from the first-screen path.
User Impact
The initial Chat screen retains its existing appearance and behavior while evaluating less JavaScript. Common next interactions download in parallel with the route and evaluate on use; uncommon viewers and operations defer both. No dependency versions, public contracts, or user settings change.
Why This Change Was Made
Streaming Markdown/remend and text transforms now have a live-only entry; range-only micromark removes redundant Markdown AST preparation while retaining the existing grammar and literal protection. First-frame text, status, tool/permission chrome, saved voice captions, mobile header and context summary stay synchronous. Optional media/widgets, Details/context breakdown, provider review, Talk implementation, sidebar menus and mobile operations load at their content or interaction boundary. Commands, goal operations and recovery retain synchronous owner/admission; offline payload storage remains synchronous.
Per-pane live frames retain FIFO custody while the implementation loads, with existing scope/retirement checks before application. Common interaction chunks receive route modulepreloads that do not evaluate modules; downloading is not reported as avoided work. Details CSS is pooled separately from renderer JS, so Outputs cannot pull in Details through a stylesheet import.
Evidence
Exact head:
d93f4205d48ac62b2c1bc37f5fd0e57aa1bc0f35; merge base:0e0d3037943c29811f939d308de9f91eb763f413. Both production bundles built on the same Mac with Node 26.12.1. Candidate build2026.10.7-d93f4205d48a-2026-10-25T04-53-03.483Z, clean source. These final-head measurements supersede all earlier captures.ffmpeg,scripts/generate-social-preview.mts; no new unused files/dependenciesci:full; exact-head run 40163718181, all selected jobs andopenclaw/ci-gatepassedTotal raw CSS remains 52 B over its fixed cap on base; head is 1 B smaller. The base-aware strict checker passes. Startup grows 81 B gzip /77 raw B within the existing allowance, with unchanged requests and one CSS request. This is disclosed growth, not a CPU-win claim.
This step removes 130,727 unused raw B (5.75%). Relative to the agreed campaign reference of 2,379,777 unused raw B, the observed cumulative reduction is 235,393 B (9.89%). The 40% goal remains unmet: 716,518 B remains to reach the desired 951,911 B cumulative reduction (at most 1,427,866 B still unused). Cumulative figures include intervening main changes and are not all attributable to this PR. Completed network JS is 1,008,696 raw B /297,270 encoded B below the original capture, with 107→66 requests.
V8 execution coverage is not compile coverage. Modulepreloaded, unevaluated code still costs network and may cost compilation: head has 416,853 network raw B outside V8 coverage, versus 337,202 on base. Therefore 145,066 fewer V8-observed bytes is not a 145 KB download or compile saving. All 49 script counters reconcile, with no duplicated mapped source among loaded chunks; 26,626 unmapped unused bytes remain in totals. Module/function rankings are alternate exclusive views and must not be added.
The emitted graph confirms all new optional groups stay outside startup/New static imports; common Chat interaction/live/streaming/support groups are preload-only. Full ownership parser/mdast emitted code is absent from ordinary Chat/New. Outputs has no Details renderer edge. New Session retains its pre-existing static composer-menu import on both sides. Mobile chrome remains eager; the People/mobile runtime is deferred. An adopted People trigger remains mounted through desktop parking, preserving identity and lookup cleanup.
Timing, CPU, and parse/compile proof
Head
d93f4205d48ac62b2c1bc37f5fd0e57aa1bc0f35. Each profile has 20 complete base/base/head triplets, with nearest-rank p95 and no omitted samples. Aggregate performance is accepted with the lifecycle outlier unresolved, as detailed below; this is not an unqualified no-regression claim.The workload uses first-load state, cold HTTP cache, production Gateway HTTP with synthetic fixtures, desktop viewport, no bandwidth throttle, and untraced renderer thread CPU. The A/A duplicate is
candidate; head iscandidate-2. Completed-network totals include preloads and are distinct from V8 executed/unused source.Localhost
Source:
boot-diet-lazy-paths-d93-local/2026-10-25T04-59-49.688Z/summary.json. Host one-minute load range 70.408–98.536; warnings 0; pending/queued samples 0.A/A deltas (median / p95): Enabled composer (ms): -6.597% / -21.226%; Nonempty transcript (ms): -3.651% / -11.813%; Inline Canvas ready (host timestamp, ms): -1.976% / -11.386%; Script CPU (ms): +5.660% / -0.859%; Task CPU (ms): +2.519% / +0.039%; Thread CPU (ms): +2.373% / +0.296%; Long-task count: +0.000% / +0.000%; Long-task duration (ms): +4.844% / +2.381%.
All positive timing cells above 5% (including A/A and pooled-base comparison):
100 ms RTT
Source:
boot-diet-lazy-paths-d93-rtt/2026-10-25T05-03-21.934Z/summary.json. Host one-minute load range 77.954–99.515; warnings 0; pending/queued samples 0.A/A deltas (median / p95): Enabled composer (ms): -1.975% / -24.057%; Nonempty transcript (ms): -2.709% / -17.802%; Inline Canvas ready (host timestamp, ms): -0.690% / -6.379%; Script CPU (ms): +2.123% / -2.535%; Task CPU (ms): +1.053% / -11.328%; Thread CPU (ms): +0.988% / -11.298%; Long-task count: +0.000% / +0.000%; Long-task duration (ms): +0.410% / +2.747%.
All positive timing cells above 5% (including A/A and pooled-base comparison):
Limits
Fixed base/base/head order and a shared loaded host limit tiny timing claims. Use A/A noise and the written CPU fallback; do not treat an unstable wall result as a latency win. Separate compile diagnostics, V8 coverage, strict asset checks, source review, CI, and visual proof are outside this assessment.
Timing / CPU judgment and outlier
All 120 measured navigations are retained, with both timing processes exiting 0, no harness warnings, no pending/queued work, and no mount-recovery navigation. There are 119 single-handshake navigations and one double-handshake navigation (localhost head run51). No sample was discarded. Native review-init CPU work overlapped localhost startup and initial samples; it exited when16rows had been recorded. The A/A script-CPU median moved +5.660% on localhost, and host load reached98.536 locally/99.515 at RTT. Readiness and CPU are evaluated with the prescribed20triplets and A/A controls, not with a latency-win claim.
Aggregate performance acceptance: all readiness medians remain within5% of both baselines on both profiles. Head readiness p95 improves versus the original base on every surface. Against the second baseline, localhost transcript p95 is +2.645%; RTT composer/transcript p95 is +7.183%/+5.374%. Local task/thread CPU p95 is about +7.4%, with stable medians; RTT CPU medians are lower. Local long-task p95 count is3/3/3 and duration210/215/210ms; RTT is3/3/2 and182/187/177ms (base/control/head). These tails remain visible; this is not a claim that every cell satisfies the simple band.
Local run51 is a real unresolved lifecycle episode, not discarded noise. Its script/task/thread CPU is811.450/1828.579/1851.509ms, versus matched base49 560.004/1123.452/1139.866ms and control50 571.559/1121.331/1137.395ms. Relative to the mean matched bases, the CPU deltas are +43.421%/+62.918%/+62.608%. Canvas readiness is2284.5ms versus1079.9/1056.8ms. Both connects declare the same instanceId and d93 build, at112.7 and1848.2ms; actual JS client/socket identity was not instrumented in this run. It makes109 RPCs versus70/70, reads config twice, and loads the same-digest sandbox twice. No close reason or event sequence history was retained, so its cause cannot be called inherited or unrelated. Fixture events are only catalog/presence, default tick policy is30000ms, and the5000ms inbound check is too late to explain a1.7s repeat-connect interval. There is no scope-upgrade request in the RPC trail.
The aggregate results support landing this as an incremental byte improvement. The single lifecycle episode remains an explicit unresolved observation; these measurements do not establish an unqualified no-readiness-regression conclusion. Four fresh diagnostic captures below do not reproduce it and cannot causally explain it. No additional capture was run to chase it away.
Parse / compile diagnostics
Four fresh canonical captures ran serially as base1/head1/base2/head2, with one fresh browser per capture and the same immutable bundles. Each used the same2,005-byte external
--init-scripttransport diagnostic: a64-entry ring of transport IDs, event names/sequence numbers, and close code/reason/stack, with no payload text. All four exited0 and reported one constructed transport, ordered event sequence1–18, no close, and zero dropped records. This instrumentation was identical on both sides and does not alter the shipped UI.Coarse V8 parse/compile spans are unioned per renderer thread. Nested parse spans are not added twice; this is not an exhaustive compiler profile. Values below are two diagnostic samples, not an untraced timing distribution.
Mean all-renderer compilation CPU is69.724ms on base and65.626ms on head (-5.877%); main CPU is4.836→4.504ms. Both pairs are lower on head, so the old13b +26.144% diagnostic is not substituted for this exact-head evidence. No compile/CPU improvement is claimed from two samples.
Fresh mapped post-transcript diagnostics find the same dominant>=50ms task family on both sides: identity-avatar-loader completions and sidebar row/window/icon rendering. Their wall/thread CPU is61.974/60.845 and65.919/63.975ms on base, versus71.123/68.822 and73.485/71.425ms on head. Total>=20ms post-transcript task CPU is305.546/218.347ms on base and215.295/203.563ms on head. These source owners are unchanged and do not identify the cause of untraced run51; no source attribution is inferred across those separate navigations.
Bundle identity
0e0d3037943c29811f939d308de9f91eb763f4132026.10.7-0e0d3037943c-2026-10-25T03-53-53.403Zd93f4205d48ac62b2c1bc37f5fd0e57aa1bc0f352026.10.7-d93f4205d48a-2026-10-25T04-53-03.483ZReproduction commands and fixture
All commands ran from
solid2-w-boot-lazy-paths. No bundle was rebuilt during this proof. These aliases expand to the exact bundles and output root used:Compile invocations ran individually, serially, in this order (the loop below spells the same arguments):
Fixture: canonical
control-ui-team-scale-fixture.ts, desktop1719×1179, 390sessions/200first-page/30pinned, 34owners/120people/6agents/7plugins/120cron jobs, 240transcript messages/12inline widgets, 6catalog hosts with20sessions each, 12presence events, sidebar sessions with avatars/expanded mode off. RPC latency35ms, frame gap4ms, CPU throttle1, no bandwidth limit, no streaming/session-switch/live-churn phase. First-load state and cold HTTP cache were cleared per sample. Production Gateway HTTP asset serving and synthetic bootstrap/RPC/media were used; immutable Gateway asset-reader caches remained warm per bundle. Quantiles use nearest-rank p95. Coverage ran separately because instrumentation changes execution cost.Size and ownership
Recounted source LOC over changed
.ts/.tsx/.js/.mjs/.mts/.csspaths, including styles, tests and helpers, excluding generated manifest/lockfile: production 33,585→34,931 (+1,346) across 135 paths; tests 31,390→32,136 (+746) across 69; tooling 1,227→1,350 (+123) across 5. Growth is extraction entry points, retained current-authority/FIFO custody and regression coverage, without another state owner.Solid census over 106 changed production UI paths: effects3→3, renderEffects0→0, untrack2→2, cleanup7→7, onSettled30→31, signals24→25, memos154→158, lazy21→31; native listeners0, query1+1, flush2, getOwner2, runWithOwner2 unchanged. Simplification removed failed first-frame and offline-storage deferrals. Domain owners stay plain TypeScript.
CI repairs on the final head
The previous head’s full CI had two PR-caused failures, and both were reproduced.
chat-prepared-silencenow waits for the actual final literal and terminal run receipt; mock dispatch can finish before the newly lazy event runtime.chat-motionexposed a 17 px mobile footer collapse when acknowledgment removed one of two metadata lines. The footer now uses one status-or-timestamp slot. Queue actions remain available and the timestamp returns after acknowledgment. No scroll workaround, timer or new state. The original full motion file passes 4/4 and the rendering unit file passes 29/29. Held-ACK prompt movement is 17→0 px.Inspected synthetic mobile before/after proof.
Before / after
Same synthetic desktop Chat fixture, 1719×1179; both final base/head captures inspected in full. No real conversations/account data or incidental desktop content.
Top 30 unused-at-boot modules and exclusive functions
Top 30 source modules
node_modules/.pnpm/[email protected]/node_modules/markdown-it/dist/markdown-it.mjsnode_modules/.pnpm/[email protected]/node_modules/dompurify/dist/purify.es.mjsnode_modules/.pnpm/@[email protected]/node_modules/@tanstack/virtual-core/dist/esm/index.jsui/src/lib/protocol-validators.generated/approvals.jsnode_modules/.pnpm/@[email protected]_patch_hash=421b418083c0218bb54ceb3e12bd0eb74a84e86474ca26cc1f1114abbe58de48/node_modules/@solidjs/signals/dist/prod/store/store.jsui/src/pages/chat/chat-pane-side-panels.tsnode_modules/.pnpm/[email protected]/node_modules/linkify-it/build/index.mjsui/src/pages/chat/chat-pane-sharing.tsui/src/app/app-shell-chrome.tsui/src/app/app-root.tsxnode_modules/.pnpm/[email protected]/node_modules/ipaddr.js/lib/ipaddr.jsui/src/pages/chat/components/chat-composer-view.tsxui/src/pages/chat/chat-pane-session-menu.tsui/src/pages/chat/chat-pane-history.tsui/src/components/session-organizer.tsui/src/lib/protocol-validators.generated/activity.jsui/src/pages/chat/chat-outbox-owner.tsui/src/api/gateway.tsui/src/lib/sessions/github-publication-owner.tsui/src/pages/chat/chat-send-submit.tsui/src/components/solid/menu.tsxui/src/pages/chat/chat-pane-lifecycle.tsui/src/components/session-progress-card-solid.tsxnode_modules/.pnpm/[email protected]/node_modules/entities/dist/decode.jsui/src/pages/chat/chat-pane-board.tspackages/gateway-client/src/session-projection.tsui/src/pages/chat/run-lifecycle.tsnode_modules/.pnpm/@[email protected]_patch_hash=6d6b2e52e607edf3c9cfcc1a26f331d013537d051f43bbb4f3e_d913839875323d2bb83ec59562493c23/node_modules/@solidjs/web/dist/web.jsui/src/pages/chat/composer-dictation.tsui/src/pages/chat/chat-view.tsxTop 30 module unused total: 270,192 B.
Top 30 functions
ui/src/pages/chat/chat-send-submit.ts:97:1ui/src/lib/protocol-validators.generated/board.js:50:16control-ui-boot-chat-CFxe_EMq.js:536237ui/src/lib/sessions/session-list-query.ts:37:1ui/src/pages/chat/chat-thread-build.ts:128:1ui/src/pages/chat/chat-outbox-drain.ts:140:1ui/src/lib/chat/outbox-store-codec.ts:112:1ui/src/pages/chat/chat-pane-session-menu.ts:179:3ui/src/pages/chat/chat-realtime.ts:142:29ui/src/components/modal-dialog.tsx:136:1ui/src/pages/chat/route-loader.ts:252:1ui/src/components/solid/menu.tsx:422:26ui/src/pages/chat/components/chat-session-workspace-preview.ts:26:1ui/src/pages/chat/chat-tool-activity-coalesce.ts:216:1ui/src/plugins/control-ui-view.solid.tsx:61:1ui/src/components/solid/person-reference.tsx:26:1ui/src/pages/chat/chat-pane-task-suggestions.ts:321:3ui/src/pages/chat/components/chat-working-indicator.tsx:49:1node_modules/.pnpm/[email protected]/node_modules/jsonc-parser/lib/esm/impl/scanner.js:10:1ui/src/pages/chat/components/chat-permission-card.tsx:12:1node_modules/.pnpm/[email protected]/node_modules/micromark-core-commonmark/lib/html-flow.js:55:1ui/src/pages/chat/chat-history-hydration.ts:73:1ui/src/pages/chat/components/chat-attachment-reads.ts:231:1ui/src/pages/chat/components/chat-thread-interactions.ts:393:1ui/src/pages/chat/components/chat-agent-run-frame.tsx:255:1ui/src/pages/chat/components/chat-comment-pins.tsx:36:4ui/src/lib/sessions/session-reconciliation.ts:399:5node_modules/.pnpm/[email protected]/node_modules/jsonc-parser/lib/esm/impl/parser.js:346:1ui/src/lib/chat/outbox-recovery.ts:314:1node_modules/.pnpm/[email protected][email protected]/node_modules/micromark/lib/create-tokenizer.js:61:1Top 30 function unused total: 100,033 B.
Remaining architecture opportunity
The final source audit found no duplicate mapped modules and no direct removable 100 KB island. The entirely unexecuted mapped modules total 137,728 raw B across 197 sources, distributed among owners needed by the first screen. Large whole-pane/sidebar closures include rendering, roster reconciliation and lifecycle code, so their totals are not removable savings.
strictExecutionOrderremains intact.The concrete next restructuring moves canonical tool preparation and conditional rendering behind one prepared-facts boundary. Its 19-module modeled upper bound is 37,515 loaded /32,748 unused raw B, before retained helpers and loading glue. All conditional renderers plus facts cover 49 modules /106,543 loaded /95,900 unused B before retention; first-screen Canvas/media code cannot be counted as absent. These are unmeasured design bounds, not promised savings. Every synchronous consumer must use the same prepared facts before mutable transcript projection; no parallel normalizer or asynchronous mutation of a stale frame. The 716,518 B target gap remains open.
Independent audits put menu/capability deferral at 25–30 KB unused raw after retaining admission/recovery, and shell/pane continuations below 12 KB before glue. Initialized catalogs/tables total about 246 KB raw but mostly count as executed in V8; key-use coverage is absent. Reaching the 40% goal requires broader conditional-rendering/preparation restructuring, rather than adding overlapping inventories or counting worker relocation as removed code.