Repository navigation
Conversation
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.
Preserve durable comments and scoped transcript footprints across the lazy owner boundaries. Update the raw-output geometry test to the extracted component owner and retain main's leading sidebar indicators.
Contributor
Author
|
Before/after from the current frozen performance comparison, Before After |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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 withdirty: false, Node 26.12.1, one pinned harness. Current PR comparison:712a32e5d7761a3d6c721747d975da2e316bae34→972b78763d00a2252b2a16b2d06421420b2af21d. Frozen build IDs are2026.10.7-c5be6441d3a1-2026-10-27T10-21-33.837Zand2026.10.7-73d79cfa87f8-2026-10-27T10-22-45.634Z. Frozen timing/coverage below retains its original identities. It is not a direct run on972b.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.
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=0adds 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.
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
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
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
markdown-it/dist/markdown-it.mjsdompurify/dist/purify.es.mjs@tanstack/virtual-core/dist/esm/index.jsui/src/lib/protocol-validators.generated/approvals.jsui/src/pages/chat/chat-pane-side-panels.tslinkify-it/build/index.mjsui/src/app/app-shell-chrome.tsipaddr.js/lib/ipaddr.jsui/src/pages/chat/chat-pane-sharing.tsui/src/app/app-root.tsxui/src/pages/chat/components/chat-composer-view.tsx@solidjs/signals/dist/prod/store/store.jsui/src/components/select-picker-view.tsxui/src/lib/protocol-validators.generated/activity.jsui/src/components/session-organizer.tsui/src/pages/chat/chat-outbox-owner.tsui/src/pages/chat/chat-view.tsxui/src/api/gateway.tsui/src/pages/chat/chat-send-submit.tsui/src/components/session-progress-card-solid.tsxui/src/pages/chat/chat-pane-lifecycle.tspackages/gateway-client/src/session-projection.tsentities/dist/decode.js@solidjs/web/dist/web.jsui/src/pages/chat/composer-dictation.tsui/src/pages/chat/chat-pane-history.tsui/src/pages/chat/run-lifecycle.ts@openclaw/uirouter/dist/index.js@solidjs/signals/dist/prod/store/optimistic.jsui/src/components/sidebar-menus.tsxExclusive functions
handleSendChat — ui/src/pages/chat/chat-send-submit.ts:97:1t — ui/src/lib/protocol-validators.generated/board.js:50:16canApplySessionListSnapshot — ui/src/lib/sessions/session-list-query.ts:37:1buildChatItems — ui/src/pages/chat/chat-thread-build.ts:131:1drainStoredChatOutbox — ui/src/pages/chat/chat-outbox-drain.ts:140:1loadChatRoute — ui/src/pages/chat/route-loader.ts:253:1normalizeStoredQueueItem — ui/src/lib/chat/outbox-store-codec.ts:112:1startRealtimeTalk — ui/src/pages/chat/chat-realtime.ts:143:29PluginViewContent — ui/src/plugins/control-ui-view.solid.tsx:61:1PersonReferenceContent — ui/src/components/solid/person-reference.tsx:25:1resolveTaskSuggestion — ui/src/pages/chat/chat-pane-task-suggestions.ts:321:3WorkingStatus — ui/src/pages/chat/components/chat-working-indicator.tsx:46:1tokenizeHtmlFlow — node_modules/.pnpm/[email protected]/node_modules/micromark-core-commonmark/lib/html-flow.js:55:1handleTranscriptContextMenu — ui/src/pages/chat/components/chat-thread-interactions.ts:463:1hydrateChatHistory — ui/src/pages/chat/chat-history-hydration.ts:73:1openWorkspaceItem — ui/src/pages/chat/components/chat-session-workspace-preview.ts:25:1RunFrame — ui/src/pages/chat/components/chat-agent-run-frame.tsx:278:1ChatPaneMobileHeader — ui/src/pages/chat/components/chat-pane-mobile-header.tsx:84:1reconcileChangedEvent — ui/src/lib/sessions/session-reconciliation.ts:399:5switchChatModel — ui/src/pages/chat/chat-session.ts:345:1consumeChatOutboxRecovery — ui/src/lib/chat/outbox-recovery.ts:314:1createTokenizer — node_modules/.pnpm/[email protected][email protected]/node_modules/micromark/lib/create-tokenizer.js:61:1ComposerCard — ui/src/components/session-progress-card-solid.tsx:530:1tokenizeHtmlText — node_modules/.pnpm/[email protected]/node_modules/micromark-core-commonmark/lib/html-text.js:24:1reconcileParsedSessionChangedRow — ui/src/lib/sessions/session-row-reconcile.ts:477:1loadMoreSessionCatalog — ui/src/components/session-data-catalog.ts:437:1discover — ui/src/components/tooltip-title.ts:168:21splitMediaOutput — src/media/parse-output.ts:355:1reduceReasoningText — packages/markdown-core/src/reasoning-tag-syntax.ts:222:1tokenizeTable — node_modules/.pnpm/[email protected]/node_modules/micromark-extension-gfm-table/lib/syntax.js:43:1The 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 inlinesession-panel-rail.css?inlineinitialization thunk (exact CSS starts with.sidebar-region--mobile-host; exported asT), 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
73dassets. Scope/source reviews and their hash receipts are retained. Final972bnotice sibling passed 1/1; the narrow three-test typecheck andpnpm tsgo:uiboth 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
712ato head972b; excludes merged-main-only changes. LOC is not performance evidence.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.