Skip to content

perf(ui): defer dormant chat engines while preloading common interactions - #183601

Closed
steipete wants to merge 116 commits into
mainfrom
solid2/w-boot-combined
Closed

steipete wants to merge 116 commits into
mainfrom
solid2/w-boot-combined

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Cold Chat eagerly loaded optional tool, media, composer, menu, authoring, workspace and config-write implementations. This change moves optional implementations behind their rendering or interaction boundaries, keeps first-screen transcript/stream/geometry work synchronous, and starts common Canvas loading alongside the admitted managed preview to avoid a serial round trip. Existing owners retain mutation authority, ordering, cancellation and persistence.

Measured frozen comparison: c5be6441d3a1e4a562cafd9eedd8d0f774e17a64 → 73d79cfa87f8ed80ac39666a71b9374009575e47; both rebuilt with dirty: false, Node 26.12.1, one pinned harness. Current PR comparison: 712a32e5d7761a3d6c721747d975da2e316bae34 → 972b78763d00a2252b2a16b2d06421420b2af21d. Frozen build IDs are 2026.10.7-c5be6441d3a1-2026-10-27T10-21-33.837Z and 2026.10.7-73d79cfa87f8-2026-10-27T10-22-45.634Z. Frozen timing/coverage below retains its original identities. It is not a direct run on 972b.

The source audit found identical lane-owned non-test/non-Markdown patches after reconciliation and identical browser/preload/fixture/dependency pins. Incoming main makes one UI constant private and changes plugin artifact producers/Knowledge assets; fresh final canonical inventories must settle emitted-byte/graph differences. Final build, trace A/A, exact-head CI and landing remain pending.

The committed workload is scripts/bench-control-ui-cold-load.ts: process-cold Chromium, cold HTTP cache, --face chat --boot-route chat --gateway-method-profile core --fixture-now-ms 1800000000000 --capture-ms 0 --thread-cpu-time, against each exact production bundle served through the compiled Gateway HTTP owner. Untraced runs use --untraced; coverage uses --coverage; traced runs omit --untraced. Profiles are unlimited localhost and --network-latency-ms 100 --download-kbps 10000. The same pinned harness and transport-diagnostic hook run on both arms. The retained cohort recipes, build receipts and full source/asset hashes pin the orchestration.

Evidence

The frozen same-machine run measures HTTP downloads separately from V8-loaded source, with twenty base/control/head triplets on each network profile. Focused tests and type checks are recorded below; final-head assets, compiler-trace assessment and CI remain pending.

Loaded and executed work

The target was −40% unused-at-boot raw JS (approximately 950 KB). The fresh frozen pair removes about 176–177 KB (7.86–7.91%) of V8-covered unused source. It misses that target: approximately 773–774 KB remains against the requested 950 KB reduction. Against 40% of this frozen base, the local gap is 721,001 B. Completed JS downloads fall 76,603 raw B / 19,297 encoded B; this is a smaller download win than the decrease in evaluated-script bytes.

Measurement Base Head Change
Completed HTTP JS raw B, both profiles 4,594,446 4,517,843 −76,603 (−1.667%)
Completed HTTP JS encoded B, both profiles 1,274,955 1,255,658 −19,297 (−1.514%)
Completed HTTP JS requests, both profiles 68 66 −2
V8-covered loaded raw B, 0ms 4,222,350 3,963,805 -258,545 (-6.123%)
V8-covered executed raw B, 0ms 1,979,139 1,896,877 -82,262 (-4.156%)
V8-covered unused raw B, 0ms 2,243,211 2,066,928 -176,283 (-7.859%)
V8-covered loaded raw B, 100ms 4,222,350 3,963,805 -258,545 (-6.123%)
V8-covered executed raw B, 100ms 1,982,394 1,900,928 -81,466 (-4.109%)
V8-covered unused raw B, 100ms 2,239,956 2,062,877 -177,079 (-7.905%)

Coverage starts before navigation and stops after the same synthetic Chat fixture settles: desktop header/sidebar/plugin entry and nested Canvas content visible; all fixture events delivered; queue empty and idle for >750 ms. captureMs=0 adds no extra wait. It covers main-page Control UI asset scripts; iframe scripts are outside this V8 population. Data literals inherit enclosing execution status. Executed bytes are not CPU time or proof that unused bytes cost a particular compile duration.

Completed HTTP resources are a separate population. Base has 372,096 raw B / 16 completed JS resources outside V8 coverage; head has 554,038 raw B / 17 resources outside coverage. Preloaded-but-unevaluated code can be in this difference. Do not subtract these bytes from network cost, call the difference all preloads, or add module/function totals.

Frozen static surface Base raw / gzip B Head raw / gzip B Δ raw / gzip B JS or CSS requests
Startup JS 838,195 / 270,675 839,968 / 270,894 +1,773 / +219 5 → 5
Startup CSS 187,700 / 32,702 187,345 / 32,688 −355 / −14 1 → 1
Chat boot JS 4,060,263 / 1,267,265 3,999,095 / 1,248,455 −61,168 / −18,810 20 → 20
Chat boot CSS 769,541 / 125,195 769,186 / 125,270 −355 / +75 3 → 3
New Session JS 2,481,195 / 768,392 2,414,270 / 748,400 −66,925 / −19,992 16 → 16
New Session CSS 546,358 / 89,783 546,003 / 89,769 −355 / −14 3 → 3

Both frozen strict checks pass with zero violations/warnings. Startup still grows 219 gzip B beyond 64 B build variance; its small-growth CPU justification and final-head budget evidence must remain explicit. Static route graphs differ from completed runtime downloads.

Readiness, CPU and long tasks

Untraced n20: 20 interleaved observations per base/control/head arm and profile, 120 total; no exclusions, lifecycle/core-contract episodes, warnings or pending samples. A/A is unchanged base code. Values are median/p95 in milliseconds, except task counts.

Localhost, unlimited bandwidth

Metric Base A/A control Head Head/base % A/A/base %
Composer ready 410.20/848.20 433.45/660.50 329.60/416.30 -19.649/-50.920 +5.668/-22.129
Transcript ready 601.10/1046.60 616.00/849.80 516.70/613.30 -14.041/-41.401 +2.479/-18.804
Inline Canvas ready 1230.20/1658.40 1202.10/1432.30 993.30/1118.20 -19.257/-32.574 -2.284/-13.634
Script CPU 789.73/828.58 775.11/806.73 751.67/813.10 -4.820/-1.868 -1.852/-2.637
Task CPU 1507.31/1543.82 1476.83/1530.82 1455.13/1534.21 -3.462/-0.622 -2.023/-0.842
Thread CPU 1520.13/1557.08 1489.58/1545.52 1469.11/1548.23 -3.356/-0.568 -2.010/-0.742
Long-task count 2.00/2.00 2.00/2.00 2.00/2.00 +0.000/+0.000 +0.000/+0.000
Long-task duration 237.50/252.00 235.00/251.00 230.00/249.00 -3.158/-1.190 -1.053/-0.397

Host one-minute load ranges: base 14.59–41.31, control 14.67–40.30, head 14.05–41.19.

100 ms RTT, 10,000 Kbps

Metric Base A/A control Head Head/base % A/A/base %
Composer ready 1531.40/1542.40 1497.70/1540.20 1487.70/1500.00 -2.854/-2.749 -2.201/-0.143
Transcript ready 1704.20/1726.40 1705.60/1740.20 1691.15/1740.90 -0.766/+0.840 +0.082/+0.799
Inline Canvas ready 2652.70/3120.70 2718.50/3113.20 2226.55/2310.00 -16.065/-25.978 +2.480/-0.240
Script CPU 694.11/733.35 709.35/762.79 704.54/755.26 +1.502/+2.987 +2.195/+4.014
Task CPU 1504.13/1547.78 1510.82/1607.33 1490.08/1572.74 -0.934/+1.612 +0.445/+3.847
Thread CPU 1531.51/1575.00 1538.66/1634.46 1517.03/1604.61 -0.945/+1.880 +0.467/+3.776
Long-task count 2.00/3.00 2.00/3.00 2.00/3.00 +0.000/+0.000 +0.000/+0.000
Long-task duration 204.00/262.00 237.50/266.00 188.50/252.00 -7.598/-3.817 +16.422/+1.527

Host one-minute load ranges: base 16.35–39.28, control 16.82–41.76, head 18.12–40.02.

Local A/A composer median is +5.668%, so the magnitude of local wall-time wins is noisy. Every local paired readiness observation improves; local script/task/thread CPU medians improve 4.82/3.46/3.36% versus base. RTT transcript p95 is +14.5 ms (+0.840%) versus base, compared with +13.8 ms (+0.799%) for A/A; head differs from control by 0.7 ms. RTT script CPU is +1.502/+2.987% versus base, smaller than A/A +2.195/+4.014%; this supports no meaningful regression, not a clear RTT CPU win.

Retained adverse raw observations: RTT triplets 10/16/18 have 3 head long tasks versus 2 in both bases. Duration base/control/head is 230/182/254, 192/243/252 and 200/236/247 ms. These include >20% duration comparisons, and head count is +50%. Extra head tasks start near 1.28 s and last 51–55 ms. Aggregate count remains 2/3 in all arms; total three-task samples are base 6/control 3/head 3. A/A also has raw >20% wall/task outliers. Do not discard these observations or use A/A alone to excuse that pattern: trace attribution remains pending. No raw head CPU/readiness comparison exceeds 20%.

Compile/GC CPU and traced A/A: pending. Full performance acceptance is pending.

Top 30 modules and functions by unused raw bytes

Tables rank the head local capture; each base value comes from the complete base partition, matched by exact source or source plus declaration. Columns also preserve 100 ms RTT results without pooling. Both profiles have the same top-30 identities; rank can differ. Follow-up labels are source-reviewed triggers, not measured user-frequency statistics. Byte weights partition emitted UTF-8 using source maps; exclusive function ownership avoids nested double counting. Sparse map glue can belong to a neighboring source. No mapped source occurs in multiple loaded chunks in these captures.

Modules

# Source / definition Unused local B, base → head Unused RTT B, base → head Reviewed follow-up
1 markdown-it/dist/markdown-it.mjs 32,726 → 32,728 32,726 → 32,728 Common/content-dependent follow-up: shared parser (markdown-parser.ts:150) enables HTML recognition, breaks and linkify; markdown.ts:145–189 parses/renders ordinary noncached messages
2 dompurify/dist/purify.es.mjs 12,390 → 12,388 12,390 → 12,388 Common HTML-sanitization boundary: markdown-sanitizer.ts:398–401 configures the instance; markdown.ts:151–189 sanitizes settled/fallback HTML
3 @tanstack/virtual-core/dist/esm/index.js 11,658 → 11,658 11,658 → 11,658 Common transcript measurement/scroll lifecycle: chat-transcript-virtualizer-host.ts:206 constructs Virtualizer, layout-solid.tsx:78 consumes virtual items
4 ui/src/lib/protocol-validators.generated/approvals.js 10,221 → 10,221 10,221 → 10,221 Normal subscription replay plus approval-specific payloads: chat-history-subscription.ts:370–382 adopts includeApprovals replay; session-approval-projection.ts:92 validates even an empty replay and110 validates events
5 ui/src/pages/chat/chat-pane-side-panels.ts 9,568 → 9,568 9,568 → 9,568 Mixed: Opening conversation/context/session rails and mobile navigation; companion-question and attachment paths require that optional feature
6 linkify-it/build/index.mjs 8,970 → 8,970 8,970 → 8,970 Common content-dependent autolinks: MarkdownIt imports this library and calls match/matchAtStart; markdown-parser.ts:192 disables fuzzyLink and customizes HTTP/HTTPS/www
7 ui/src/app/app-shell-chrome.ts 8,748 → 8,747 8,748 → 8,747 Mixed: Common keyboard/navigation/resize and palette interactions; approvals, debug overlays, focus recovery and lazy-shell retries are conditional
8 ipaddr.js/lib/ipaddr.js 8,647 → 8,647 8,647 → 8,647 Common/content-dependent assistant MEDIA URL policy and optional Link Reader image admission: normalizeMessage calls splitMediaFromOutput (base message-normalizer.ts:412; head:368), then parse-output.ts:610/643 validates remote MEDIA URLs through isAllowedRemoteMediaUrl:129 and isBlockedRemoteMediaHostname:95
9 ui/src/pages/chat/chat-pane-sharing.ts 8,582 → 8,580 8,582 → 8,580 Mixed: Common typing updates while composing a shared session; sharing/suggestion acceptance, multiple identities and remote actor states are conditional
10 ui/src/app/app-root.tsx 8,562 → 8,561 8,562 → 8,561 Mixed: Common shell connection/navigation updates; login, focused-window routes, errors, and optional shell surfaces are conditional
11 ui/src/pages/chat/components/chat-composer-view.tsx 8,526 → 8,532 8,526 → 8,532 Mixed: Common typing/submitting, picker and attachment controls; disabled banners, pending queue/questions, goals and voice state are conditional
12 @solidjs/signals/dist/prod/store/store.js 7,903 → 8,295 8,043 → 8,295 Common presentation-state runtime: SelectPicker uses createStore at select-picker-view.tsx:86 and mutates collapsed groups at401/650
13 ui/src/components/select-picker-view.tsx 8,246 → 8,241 8,246 → 8,241 Common: Opening a picker, searching/filtering, keyboard selection, group expansion and scrolling; variants require different branches
14 ui/src/lib/protocol-validators.generated/activity.js 7,822 → 7,822 7,822 → 7,822 Common live activity with content branches: generated exports at396–399 validate activity/observer/narration/reactions
15 ui/src/components/session-organizer.ts 7,809 → 7,806 7,809 → 7,806 Common: Sidebar pin/archive/group and drag/drop organization; rollback and mutation failures are conditional
16 ui/src/pages/chat/chat-outbox-owner.ts 7,661 → 7,661 7,661 → 7,661 Common: Fresh/queued sends, draft persistence and projection updates; stored-queue recovery, admission failures and cleanup require their respective state
17 ui/src/pages/chat/chat-view.tsx 7,615 → 7,617 7,615 → 7,617 Mixed: Common transcript/composer updates, search and active run presentation; task suggestions, approvals and notices depend on session state
18 ui/src/api/gateway.ts 7,580 → 7,580 7,580 → 7,580 Mixed: Common RPC/event traffic and connection lifecycle; native-auth, pairing, scope-upgrade, reachability/retry/error branches are conditional
19 ui/src/pages/chat/chat-send-submit.ts 7,441 → 7,423 7,441 → 7,423 Common: First and later send/submit actions; slash commands, goals, queued edits, attachments and offline admission select optional branches
20 ui/src/components/session-progress-card-solid.tsx 7,416 → 7,415 7,416 → 7,415 Conditional/common: Progress-card rendering for a session that has a card; composer, details and board placements exercise different branches
21 ui/src/pages/chat/chat-pane-lifecycle.ts 7,350 → 7,349 7,350 → 7,349 Mixed: Common pane start/stop, retained mounting and context/session changes; file-drop, paste and reconnect-specific paths are conditional
22 packages/gateway-client/src/session-projection.ts 7,062 → 7,062 7,062 → 7,062 Common: New send, persisted-message, run-delta and run-terminal updates; transport gaps/reconnect/reset are conditional branches
23 entities/dist/decode.js 7,053 → 7,053 7,053 → 7,053 Content-dependent ordinary Markdown entity decoding: MarkdownIt imports decodeHTMLStrict and calls it at its lines94/3281
24 @solidjs/web/dist/web.js 6,728 → 7,000 7,000 → 7,000 Common live DOM renderer: app-root.tsx:94 renders the app; solid-bridge.ts:278–306 uses insert/render/spread; chat-transcript-layout-solid.tsx:276 mounts transcript
25 ui/src/pages/chat/composer-dictation.ts 6,994 → 6,993 6,994 → 6,993 Rare/conditional: Opt-in press-and-hold or direct voice dictation and its media permission/cancel/error lifecycle
26 ui/src/pages/chat/chat-pane-history.ts 6,979 → 6,974 6,979 → 6,974 Common: Scrolling to older history, switching or continuing sessions, and branch navigation; rewind and attachment restoration are conditional
27 ui/src/pages/chat/run-lifecycle.ts 6,954 → 6,954 6,954 → 6,954 Common: Send/run start, streaming completion and Stop actions; error, reconnect and stale terminal reconciliation are conditional
28 @openclaw/uirouter/dist/index.js 6,841 → 6,841 6,819 → 6,819 Common startup/navigation owner: app-routes.ts imports createRouter, calls start at469 and subscribes at398
29 @solidjs/signals/dist/prod/store/optimistic.js 6,734 → 6,734 6,734 → 6,734 Shared runtime hook installation at optimistic.js:394 plus route-specific optimistic store work: Cron jobs at cron-page-presentation.ts:104, channels busy state at channels-page.tsx:98, plugins/skills/settings
30 ui/src/components/sidebar-menus.tsx 6,699 → 6,712 6,699 → 6,712 Common: Opening sidebar session/agent/filter/context menus, changing selection and dismissing them; creation and errors are conditional

Exclusive functions

# Source / definition Unused local B, base → head Unused RTT B, base → head Reviewed follow-up
1 handleSendChat — ui/src/pages/chat/chat-send-submit.ts:97:1 7,358 → 7,341 7,358 → 7,341 Common: Submitting a chat message, including normal first send; commands/goals/attachments/offline branches are conditional.
2 t — ui/src/lib/protocol-validators.generated/board.js:50:16 5,458 → 5,458 5,458 → 5,458 Persisted Board restoration: session-snapshot-store.ts imports isBoardSnapshot at5 and calls it only for storedBoard at178; malformed boards are dropped independently of usable chat history
3 canApplySessionListSnapshot — ui/src/lib/sessions/session-list-query.ts:37:1 4,037 → 4,037 4,037 → 4,037 Common: Automatic roster reconciliation after session-change events, including normal send/run changes; not a user-only menu action.
4 buildChatItems — ui/src/pages/chat/chat-thread-build.ts:131:1 3,768 → 3,765 3,768 → 3,765 Common: New replies, streaming/tool rows, search and refreshed history rebuild the transcript presentation; complex content selects unexecuted branches.
5 drainStoredChatOutbox — ui/src/pages/chat/chat-outbox-drain.ts:140:1 3,657 → 3,653 3,657 → 3,653 Common: Fresh queued sends and automatic retry/replay of stored entries; empty-queue cold boot exercises neither.
6 loadChatRoute — ui/src/pages/chat/route-loader.ts:253:1 3,567 → 3,567 3,645 → 3,652 Common: Navigation between sessions or faces and route revalidation; shared/slug/offline/not-found branches are conditional.
7 normalizeStoredQueueItem — ui/src/lib/chat/outbox-store-codec.ts:112:1 3,494 → 3,494 3,494 → 3,494 Common: Serializing a fresh queued submission and reading restored queue entries; field variants depend on attachments/commands.
8 startRealtimeTalk — ui/src/pages/chat/chat-realtime.ts:143:29 3,287 → 3,287 3,287 → 3,287 Rare/conditional: Explicit realtime voice start and voice-change restart; requires voice capability and a connected client.
9 PluginViewContent — ui/src/plugins/control-ui-view.solid.tsx:61:1 3,131 → 3,131 3,131 → 3,131 Rare/conditional: A configured plugin view is rendered; plugin mount/update/error paths are absent from an ordinary chat.
10 PersonReferenceContent — ui/src/components/solid/person-reference.tsx:25:1 3,121 → 3,125 3,121 → 3,125 Conditional/common: Markdown person references render this content; opening a reference card invokes its separate idle-imported runtime.
11 resolveTaskSuggestion — ui/src/pages/chat/chat-pane-task-suggestions.ts:321:3 3,082 → 3,082 3,082 → 3,082 Rare/conditional: Accepting or dismissing a task suggestion; includes authorization, stale selection and start-failure branches.
12 WorkingStatus — ui/src/pages/chat/components/chat-working-indicator.tsx:46:1 3,008 → 3,007 3,008 → 3,007 Common: Working, waiting-for-approval, retry and subagent status during a run; expanded detail/bubble variants select different paths.
13 tokenizeHtmlFlow — node_modules/.pnpm/[email protected]/node_modules/micromark-core-commonmark/lib/html-flow.js:55:1 2,950 → 2,948 2,950 → 2,948 Disabled in reviewed UI parser paths: markdown-code-regions.ts:12 and reasoning-tag-parser.ts:16–18/205 disable htmlFlow/htmlText; create-tokenizer.js:413 honors that list
14 handleTranscriptContextMenu — ui/src/pages/chat/components/chat-thread-interactions.ts:463:1 2,760 → 2,757 2,760 → 2,757 Conditional/common: Right-click/context menu on a transcript row to reply/copy or act on tools and runs.
15 hydrateChatHistory — ui/src/pages/chat/chat-history-hydration.ts:73:1 2,729 → 2,728 2,729 → 2,728 Common: Session navigation, reload and reconnect load history; stale request/retry/pagination and active-run merging are conditional.
16 openWorkspaceItem — ui/src/pages/chat/components/chat-session-workspace-preview.ts:25:1 3,154 → 2,666 3,154 → 2,666 Conditional/common: Opening a file/workspace preview; pin/reuse and async loading paths depend on that optional interaction.
17 RunFrame — ui/src/pages/chat/components/chat-agent-run-frame.tsx:278:1 2,646 → 2,659 2,646 → 2,659 Common: Completed or structured agent runs with tool/work/source groups; plain boot history or stream-only status does not enter every branch.
18 ChatPaneMobileHeader — ui/src/pages/chat/components/chat-pane-mobile-header.tsx:84:1 0 → 2,637 0 → 2,637 Other viewport/common: Normal mobile chat chrome; a desktop capture cannot exercise it
19 reconcileChangedEvent — ui/src/lib/sessions/session-reconciliation.ts:399:5 2,608 → 2,608 2,608 → 2,608 Common: Automatic sessions.changed events after sends, completion, edits or archive updates; stale and absent-row branches depend on payload.
20 switchChatModel — ui/src/pages/chat/chat-session.ts:345:1 2,549 → 2,549 2,549 → 2,549 Conditional/common: Selecting another model/account/runtime in the chat model controls.
21 consumeChatOutboxRecovery — ui/src/lib/chat/outbox-recovery.ts:314:1 2,522 → 2,522 2,522 → 2,522 Rare/conditional: Restoring/discarding/retiring an account recovery entry after stored-queue interruption or ownership changes.
22 createTokenizer — node_modules/.pnpm/[email protected][email protected]/node_modules/micromark/lib/create-tokenizer.js:61:1 2,498 → 2,495 2,498 → 2,495 Markdown code-region/ownership follow-up: packages/markdown-core/src/markdown-code-regions.ts:7–15 bypasses text without code markers then invokes parse().document().write(); micromark parse.js:49–53 creates this tokenizer
23 ComposerCard — ui/src/components/session-progress-card-solid.tsx:530:1 2,457 → 2,457 2,457 → 2,457 Conditional/common: A session progress card shown in the composer placement; absent-card boot or board/details placement does not enter this branch.
24 tokenizeHtmlText — node_modules/.pnpm/[email protected]/node_modules/micromark-core-commonmark/lib/html-text.js:24:1 2,441 → 2,444 2,441 → 2,444 Disabled alongside htmlFlow in markdown-code-regions.ts:12 and reasoning-tag-parser.ts:16–18/205, enforced by create-tokenizer.js:413
25 reconcileParsedSessionChangedRow — ui/src/lib/sessions/session-row-reconcile.ts:477:1 2,370 → 2,367 2,370 → 2,367 Common: Normal incoming session-row snapshots and changed events; delete, scope and ancestor reference branches are payload-dependent.
26 loadMoreSessionCatalog — ui/src/components/session-data-catalog.ts:437:1 2,366 → 2,366 2,366 → 2,366 Mixed: Explicit More on a catalog and automatic hidden-page discovery; requires additional catalog pages or a retry.
27 discover — ui/src/components/tooltip-title.ts:168:21 2,350 → 2,350 2,350 → 2,350 Common: Pointer hover or keyboard focus discovers titles/tooltips; file-path and touch exclusions are conditional.
28 splitMediaOutput — src/media/parse-output.ts:355:1 2,340 → 2,331 2,340 → 2,331 Conditional/common: A reply/tool output containing MEDIA directives, Markdown images or audio tags enters the parser branches
29 reduceReasoningText — packages/markdown-core/src/reasoning-tag-syntax.ts:222:1 2,324 → 2,322 2,324 → 2,322 Conditional/common: Reasoning-tag parsing in streamed or stored assistant text; code spans and malformed/split tags select additional branches.
30 tokenizeTable — node_modules/.pnpm/[email protected]/node_modules/micromark-extension-gfm-table/lib/syntax.js:43:1 2,319 → 2,318 2,319 → 2,318 Content-dependent table grammar: code-region scanning explicitly adds gfmTable() at markdown-code-regions.ts:12; reasoning ownership adds it unless commonmark at reasoning-tag-parser.ts:203–205

The only source-unmatched top-30 identity in the base rankings is generated function oo, deferred-ui-support-B8Os-Xpn.js:61885–66831, 4,946 unused B on both profiles. It is the inline session-panel-rail.css?inline initialization thunk (exact CSS starts with .sidebar-region--mobile-host; exported as T), consumed by link-reader, desktop and Portals panel views. This is conditional panel/navigation work; the same CSS also has ordinary stylesheet imports. Its source map has no source entry for this generated thunk, so it remains explicitly generated/unmapped, with source-backed classification rather than a fabricated mapping. Every head top-30 row has a reviewed identity.

Unmapped bytes remain included in aggregate totals: local base 386,033 loaded / 356,190 executed / 29,843 unused; head 345,950 / 322,534 / 23,416. Module tables exclude the unmapped bucket. All 71 base and 72 head distinct classified source files match their reviewed hashes; zero mismatches. Full rankings and exact source/signature hashes are retained in the proof artifacts.

Correctness, review and current scope

Frozen proof: integrated snapshot/store/prewarm 71/71; Workspace/Files-rail 11/11; attachment-spacing E2E 17/17 on exact 73d assets. Scope/source reviews and their hash receipts are retained. Final 972b notice sibling passed 1/1; the narrow three-test typecheck and pnpm tsgo:ui both exited 0. Final exact-head CI is pending (40492058164, last supplied state queued); no auto-merge intent or merge claim.

Frozen production Knip failed identically on both exact sides: seven entries, byte-identical logs SHA-256 07edcc6bf6594b4be2cf355a96b2b76c2bd4e5b64596958f6bb99ca5018ab4d3. Entries: REVIEW_SCRIBE_DECLARATION_KEY, summarizeOpenAITransportError, APP_ROUTE_PATHS/APP_ROUTE_OFFLINE_PREFIXES, CHAT_SNAPSHOT_DB_NAME, MatrixQaHarnessFiles, MatrixQaRecordingProxy, PluginConsentIntent. This is frozen evidence; final-head Knip/CI attribution must use current exact names. Do not treat the removed constant export as still failing on final main.

Inspected synthetic before/after screenshots, pinned to frozen builds: PR screenshot evidence. They show the same Chat/Details/sidebar/composer state and viewport. Final reconciliation is source-qualified separately.

Final source LOC

Physical complete changed-file union, including blanks/comments, actual merge-base 712a to head 972b; excludes merged-main-only changes. LOC is not performance evidence.

Category Paths Before After Δ Added / deleted
Production/config 263 72,827 75,733 +2,906 11,553 / 8,647
Tests/fixtures/tooling 209 97,479 101,794 +4,315 5,637 / 1,322
Generated 5 2,240 2,260 +20 296 / 276
Docs 1 747 800 +53 53 / 0
Total 478 173,293 180,587 +7,294 17,539 / 10,245
Non-generated 473 171,053 178,327 +7,274 17,243 / 9,969

LOC artifact SHA-256: dcfb4def934bd17c4198b8046bb6ca3580b55afac86a2e1d1450d671a952fb99.

Pending before landing: current trace A/A attribution, final inventory equivalence or refreshed final performance evidence, exact-head CI and native review/preparation. No final acceptance or merge claim. No retained Crabbox/Testbox lease is held; active frozen proof checkouts are preserved.

Download common rich surfaces with route hints while evaluating them on use. Retain ordinary message text and Canvas-only content in eager renderers, keep capability custody with the pane, and extend the canonical rich workload for isolated HTTP proof. This checkpoint remains an experiment pending runtime and performance acceptance.
Preserve one application-owned capability and teardown lifetime while moving its factory into lazy route graphs. Keep Channels config and status reads parallel. Runtime proof remains pending the current frozen measurement cohort.
Retain shared Details and native menu owners through viewport changes. Scope mobile drawer registration to the active layout. Independent source review is clean; runtime and performance proof remain pending the frozen measurement cohort.
Keep saved Context bytes downloading with the route while search, header operations and command dispatch load on explicit demand. Preserve the complete static dependency graph and common send/model-recovery preloads. Source checkpoint pending runtime and performance proof.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 25, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Before/after from the current frozen performance comparison, c5be6441d3a1 → 73d79cfa87f8. Both are the same synthetic Chat workload and viewport. Inspected: no real conversation/account data; transcript, Details, sidebar and composer presentation match. These captures retain their measured build identity; the subsequent 972b787 merge and test repairs are tracked separately in the final proof.

Before

Before: synthetic Chat with Details and sidebar

After

After: same synthetic Chat with Details and sidebar

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #186004, which contains the current reviewed head, complete cold-boot coverage rankings, timing evidence, and inspected screenshots. This older head is retired; its CI is not evidence for the replacement.

@steipete steipete closed this Oct 27, 2026
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. gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant