Skip to content

perf(ui): load sidebar Pages and Roster on demand - #181497

Merged
steipete merged 32 commits into
mainfrom
solid2/w-perf-chat-optional-round2
Oct 23, 2026
Merged

steipete merged 32 commits into
mainfrom
solid2/w-perf-chat-optional-round2

Conversation

@steipete

@steipete steipete commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Merged as e66ae849c4ef7bd19e23e94b98a1ea03c7cde224. Exact-head full CI and paired cold-load timing passed.

What Problem This Solves

The default Sessions sidebar imports the Pages catalog and agent Roster renderer even when neither view is selected. Load each renderer at its existing visibility boundary. Keep the fixed rail, shell, authoritative session state, shared styles, and fallback pinned row eager. A local loading/error boundary preserves the shell and uses the existing guarded reload for stale chunks.

Lazy Roster catalog registration exposed a focus regression: reading the Show all translation while computing the agent-menu entries rebuilt that list and replaced a focused settings button. Read that label through a getter in its rendering consumer. The existing browser case proves retained button identity and focus, then exercises the original keyboard and Roster flow.

This refresh retains the merged main graph and its libdeflate11 compressor. It also repairs both public review findings: the Sidebar error component now retires pending document recovery through the existing canReload callback, and the plain roster owner can read agentsHome.loadFailed before the lazy renderer loads. That exact fallback remains eager; the lazy registrar merges the remaining labels into the existing namespace so it cannot discard the fallback. Main commits are merged, not replayed.

Evidence

Exact comparison base: df3c47e1931227124fac95b75f69113ffa5e69cb. Final publication head: e57558f98cc663d86bd999a814e7f56475cd476e.

Proof Result
UI types, targeted lint/format, controller guard, keyless i18n verification Pass
Review regression proof Both reported failures reproduced before their fixes; six focused tests pass. The catalog regression additionally failed when lazy registration replaced the eager namespace and passes with the in-place merge
Focus regression and selected Sidebar tests Retained same-Sidebar-source proof: red/green focus case, 37 selected Sidebar tests passed. No repeat run in this refresh
Independent P2 review Scoped-clean through P2 on the full candidate against df3c main; no actionable findings
Matched production build / strict gzip check Pass; identical fixed metadata and 29 plugin inputs; zero violations
Canonical production Knip pnpm deadcode:knip passed, exit0, 34.4 s
Synthetic screenshots Retained exact 538ef/3268 captures below; six byte-identical frames. Not claimed as current-head capture
Previous-head full CI 39962774086 passed every planned job on 3268c6bd43a, including UI E2E and real-Gateway. Prior-head evidence only
Current-head ci:full 39977482897, exact e57558f9: completed successfully; 59 successful and 24 conditionally skipped jobs, zero failures
Interleaved cold reload timing Pass: 10 interleaved base/candidate pairs (20 cold samples), exact df3c/e575 source and original harness; transcript/composer median and p95 improve or hold

Both matched builds use Node 24.22.1 and each root's Vite config with main's libdeflate 0.1.0 at level 11. They use identical fixed metadata and 29 pinned plugin artifacts (payload SHA-256 868a02463bbca5b0a2b162b1c33a8b7c1f96ead17a843c0a497b5c22ca8a4054). Emitted build-proof files match exactly, SHA-256 251177383f50c4780616b7d8cafd63c765f9f842ed646f64b019d61bf62f190f. These totals isolate the Sidebar change on current main; the compressor improvement already belongs to main.

Boot graph Base gzip B Candidate gzip B Change JS requests
Startup 285,393 285,303 −90 7 → 7
Chat 1,277,317 1,274,043 −3,274 (−0.26%) 22 → 21
New Session 782,867 771,311 −11,556 (−1.48%) 16 → 16

Startup CSS stays at 40,195 B / one request. Chat CSS falls by 20 B and New Session CSS by 321 B. The Chat/New caps decrease from 1,369,914 / 819,711 B to 1,366,403 / 807,612 B, using ceil(main cap × candidate / matched base) to preserve relative headroom. The startup baseline stays unchanged. Strict checking reports zero violations; largest CSS has 3,593 B of hard-ceiling headroom. This is a focused improvement, not a claim that this PR alone reaches the overall 15%/10% campaign target.

Exact-head timing uses an isolated real Gateway, 240 synthetic messages, a fresh browser and cold HTTP cache per sample, actual gzip/hash verification, and no trace. Ten interleaved df3c/e575 pairs (20 cold samples) pass the acceptance rule: transcript-visible and enabled-composer median regression each ≤5%, with neither p95 worse. These are the current-head measurements; prior-head timing is not credited.

Cold-load metric Base ms Candidate ms Change
Transcript visible, median 2,075.25 2,044.30 −1.49%
Transcript visible, p95 3,777.30 3,695.80 −2.16%
Composer enabled, median 987.55 987.50 −0.01%
Composer enabled, p95 1,863.50 1,542.20 −17.24%

The cold browser loads 54 → 53 application JavaScript requests and 1,366,715 → 1,363,401 compressed JavaScript bytes. Runtime request totals include everything actually fetched in this synthetic flow; the static boot-graph table above uses the canonical surface manifest. The candidate source, independent-repository package, original harness, and 29 plugin artifacts were verified before accepting the run. The independent verifier checked 1,070 served-asset receipts with zero warnings. The native artifact collector timed out after all 20 samples; recovery downloaded the existing small archive from the same job ID without rebuilding or rerunning a sample. Archive SHA-256: 4675a8879ef0862ce1e7fd77c88a5ee6e18fac7936eee11a0e9a90c9e506c0ce. Source identity and 4,255 raw/gzip asset pairs remained unchanged through recovery.

The transcript range was 1,642.00–3,777.30 ms on base and 1,550.10–3,695.80 ms on candidate; the composer range was 756.30–1,863.50 ms and 794.00–1,542.20 ms, respectively.

Production LOC across all changed production files: 4,837 → 4,938 (+101); tests: 2,281 → 2,489 (+208); tooling/config: 922 → 924; generated manifest: 1,878 → 1,874. The review repair itself adds 11 production lines and 62 test lines over the previous head. The production increase provides the local loading/error boundary and explicit lazy exports; the old eager Pages renderer and pinned-row helper are removed. Effects remain 1 → 1, lazy declarations 1 → 4, with no new untrack, manual listener, DOM-query, flush, owner-API or direct onCleanup calls. The repair adds one component-owned onSettled teardown for the error surface.

Inspected Synthetic Screenshots

Retained proof from the prior matched 538ef/3268 production builds: all six PNGs were inspected and byte-identical within each before/after pair and to the existing uploaded captures. The repair preserves the same rendered markup, classes, labels and styles; these URLs remain as prior visual evidence without a duplicate upload. This is visual evidence for the Sidebar change, not a fresh df3c/current-head capture. Exact-head full CI passed for the merged graph.

State Before After
Transcript and composer Before: Transcript and composer After: Transcript and composer
Pages sidebar Before: Pages sidebar After: Pages sidebar
Roster sidebar Before: Roster sidebar After: Roster sidebar

Top-30 Module Attribution

Source: sidebar-repair-performance.json; SHA-256 575faa08a83182af7bcb623c9b88affa91c7bd4621dfb90aa3967a1179a70658. The existing attribution tool gzips each emitted source-map range separately with its canonical Pako settings. These non-additive sizes identify large modules; the boot totals above are actual shipped libdeflate11 sidecars, not a sum of these rows.

Chat

Module Standalone gzip B Needed for first visible transcript/composer?
ui/src/i18n/locales/en.ts 20,077 Partly. Shared English fallback and shell labels are immediate; later-use strings are not all first-paint requirements.
node_modules/markdown-it/dist/markdown-it.mjs 15,903 Yes for rich-text transcript. Parser belongs to the first visible Markdown message; absent from New Session.
node_modules/entities/dist/generated/decode-data-html.js 13,140 Yes for rich-text transcript. Entity decoding is a parser dependency; absent from New Session.
node_modules/dompurify/dist/purify.es.mjs 11,547 Yes for transcript HTML. Sanitization stays before inserting visible message content; absent from New Session.
ui/src/i18n/locales/en-chat-session.ts 8,597 Partly. Active session/header copy is immediate; secondary session actions are conditional.
node_modules/@solidjs/web/dist/web.js 7,362 Yes. Core DOM runtime mounts the shell and first composer/transcript.
node_modules/@tanstack/virtual-core/dist/esm/index.js 6,869 Yes for Chat. Visible-range sizing and scroll restoration select the first visible transcript; absent from New Session.
ui/src/i18n/locales/en-chat-composer.ts 6,577 Partly. Composer/welcome labels are immediate; menu and uncommon action copy follow their consumers.
node_modules/@solidjs/signals/dist/prod/store/store.js 6,570 Yes. Reactive state/projections support the mounted shell and selected route.
ui/src/lib/chat/composer-draft-store.runtime.ts 6,030 Yes for restored drafts. Read/restore and durable ownership must be ready before editing; rare mutations are not all first-paint work.
node_modules/remend/dist/index.js 5,607 Content-dependent. Active partial Markdown needs repair without changing streamed output; settled-only text does not.
ui/src/pages/chat/chat-pane-render.ts 5,122 Yes for Chat pane composition. Optional bodies can remain behind their existing visible boundaries.
ui/src/i18n/locales/en-session-organization.ts 5,116 Conditional. Required if organization UI is restored/visible; menu/action copy is not required for an ordinary transcript.
ui/src/pages/chat/components/chat-composer-view.tsx 5,077 Yes. First textarea, restored content, submit state and keyboard behavior.
ui/src/app/app-root.tsx 5,050 Yes. Application context, initial connection and root rendering.
ui/src/app/app-shell-view.tsx 4,786 Yes. Stable shell placement and initial route mount.
ui/src/pages/chat/chat-pane-sidebar-view.tsx 4,784 Partly. Restored side-panel selection and split geometry are immediate; closed panel bodies are conditional.
ui/src/components/icon-data.ts 4,704 Partly. Visible shell/composer glyphs are immediate; the full icon table is not necessarily needed.
node_modules/@openclaw/uirouter/dist/index.js 4,609 Yes. Resolve and mount the initial route and preserve navigation.
ui/src/components/select-picker-view.tsx 4,585 Partly. Visible selected labels/triggers are immediate; open option content is interaction-dependent.
ui/src/pages/chat/chat-pane-header.ts 4,514 Partly. Visible title/status/navigation are immediate; menu-entry construction and actions are later-use.
ui/src/components/icon-data-tools.ts 4,505 Conditional. Tool glyphs appear with visible tool-bearing messages or menus, not every first transcript.
ui/src/pages/chat/components/chat-composer-controls.tsx 4,406 Yes for selected model, permission, send and enabled-state controls; expanded pickers remain conditional.
ui/src/pages/chat/chat-view.tsx 4,396 Yes. Selected Chat route state and its initial rendering orchestration.
ui/src/pages/chat/components/chat-transcript-projection.ts 4,345 Yes. Projects the selected history/stream state into the first visible transcript.
ui/src/pages/chat/chat-pane-lifecycle.ts 4,308 Yes. Current pane connection, restoration, readiness and disposal ownership.
ui/src/pages/chat/chat-pane-layout-render.ts 4,223 Yes for pane layout. Optional content follows explicit visibility while geometry stays stable.
src/logging/redact-patterns.ts 4,140 Conditional shared contract. Preserve redaction wherever currently rendered/recorded; not all patterns are first-paint UI.
ui/src/pages/chat/chat-state-page.ts 4,099 Yes. Active route/session state must be coherent before first render.
ui/src/components/app-sidebar-render.tsx 4,008 Partly. Visible sidebar shell/rows/navigation are immediate; selected optional views now load at their own boundary.

New Session

Module Standalone gzip B Needed for first visible transcript/composer?
ui/src/i18n/locales/en.ts 20,077 Partly. Shared English fallback and shell labels are immediate; later-use strings are not all first-paint requirements.
node_modules/@solidjs/web/dist/web.js 7,362 Yes. Core DOM runtime mounts the shell and first composer/transcript.
ui/src/i18n/locales/en-chat-composer.ts 6,577 Partly. Composer/welcome labels are immediate; menu and uncommon action copy follow their consumers.
node_modules/@solidjs/signals/dist/prod/store/store.js 6,570 Yes. Reactive state/projections support the mounted shell and selected route.
ui/src/lib/chat/composer-draft-store.runtime.ts 6,030 Yes for restored drafts. Read/restore and durable ownership must be ready before editing; rare mutations are not all first-paint work.
ui/src/app/app-root.tsx 5,050 Yes. Application context, initial connection and root rendering.
ui/src/app/app-shell-view.tsx 4,786 Yes. Stable shell placement and initial route mount.
ui/src/components/icon-data.ts 4,704 Partly. Visible shell/composer glyphs are immediate; the full icon table is not necessarily needed.
node_modules/@openclaw/uirouter/dist/index.js 4,609 Yes. Resolve and mount the initial route and preserve navigation.
ui/src/components/select-picker-view.tsx 4,585 Partly. Visible selected labels/triggers are immediate; open option content is interaction-dependent.
ui/src/components/icon-data-tools.ts 4,505 Conditional. Tool glyphs appear with visible tool-bearing messages or menus, not every first transcript.
ui/src/pages/chat/components/chat-composer-controls.tsx 4,406 Yes for selected model, permission, send and enabled-state controls; expanded pickers remain conditional.
ui/src/pages/new-session/composer.tsx 4,269 Yes for New Session. Primary initial draft composer; absent from Chat.
ui/src/i18n/locales/en-new-session-setup.ts 4,259 Partly. Initial setup/launch copy is needed for New Session; optional setup branches depend on selection.
src/logging/redact-patterns.ts 4,140 Conditional shared contract. Preserve redaction wherever currently rendered/recorded; not all patterns are first-paint UI.
ui/src/pages/new-session/new-session-page.tsx 4,013 Yes for New Session. Primary page, restored selection and launch readiness.
ui/src/components/app-sidebar-render.tsx 4,008 Partly. Visible sidebar shell/rows/navigation are immediate; selected optional views now load at their own boundary.
ui/src/components/app-sidebar-session-row-render.tsx 3,910 Yes for visible session rows, selection and unread state; row actions remain interaction-dependent.
ui/src/api/gateway.ts 3,830 Yes. Connection and RPC transport supply initial session/composer state.
packages/gateway-protocol/src/session-agent-status.ts 3,773 Yes where initial row/agent status is shown. Shared canonical status interpretation.
ui/src/components/solid/session-presentation.tsx 3,713 Yes for visible sidebar/session summaries; uncommon presentation branches depend on content.
ui/src/components/app-sidebar-owner.tsx 3,685 Yes. Sidebar state, subscription and selection ownership remain synchronous.
ui/src/lib/sessions/index.ts 3,666 Yes. Selected session identity, roster and reconciliation; secondary mutations are not all first-paint work.
ui/src/pages/new-session/draft-submission-flow.ts 3,665 Needed for an enabled initial composer. Durable submission ownership must not lag behind an apparently ready control.
ui/src/app/bootstrap.ts 3,631 Yes. Initial application and Gateway boot.
ui/src/app/gateway-store.ts 3,623 Yes. Canonical connection snapshot and live authority.
ui/src/app/app-shell-chrome.ts 3,602 Yes. Initial shell chrome, selection and stable geometry.
ui/src/components/app-sidebar-session-navigation.ts 3,595 Yes for visible/restored navigation and selected session; uncommon navigation operations are later-use.
ui/src/components/solid/shadow-styles.ts 3,517 Yes for visible controls. Styling must settle before measuring transcript/composer geometry.
ui/src/components/sidebar-attention-store.ts 3,479 Yes for initial unread/attention projection; keep the existing owner and subscription semantics.

Earlier Candidate and CI History

The earlier broader optional-UI candidate b0841b56 was rejected after 20 interleaved pairs because both p95 gates regressed. Its timing is not credited here. A later Sidebar-only head b1a883d9 had a collaborator-scroll CI failure (accepted send, no provider request before deadline); the exact-file local replay passed but did not establish a fix or waiver. After main's scheduler integration, full CI 39962774086 passed on 3268c6bd43a. This exact merged graph passed paired timing and full CI; no failed check was waived.

Whole Observed Runtime Attribution

Matched candidate e57558f98cc663d86bd999a814e7f56475cd476e (tree 979e2bb9b419fc88a411617a551f83d6a244da27) against base df3c47e1931227124fac95b75f69113ffa5e69cb (tree 3fd5e845251fb6c2786242d38704824cbe7938ff). All rows derive from the exact retained builds and the original 20 samples. No rebuild or new timing batch.

Actual gzip is the verified shipped libdeflate11 sidecar total. Group/module gzip is the existing helper's standalone Pako diagnostic and is non-additive; it cannot be subtracted from transferred bytes. CSS and the seven synthetic plugin scripts (1,953 uncompressed bytes) are outside this application-JavaScript ledger.

Observed surface Base gzip B / requests Candidate gzip B / requests
Static Chat closure 1,277,317 / 22 1,274,043 / 21
Content/connection-driven extra imports 89,398 / 32 89,358 / 32
Whole observed fixture graph 1,366,715 / 54 1,363,401 / 53

The original 98-group taxonomy is preserved for all 1,657 static modules. Each of the 64 newly observed modules has an explicit owner mapping in the JSON. Five natural new leaf groups name the newly present Ed25519 and Croner packages and three lazy English namespaces: Vendor / @noble/ed25519, Vendor / croner, i18n / en-chat-details, i18n / en-github, i18n / en-processes. There is no catch-all group for these modules.

Graph Base / candidate modules Base / candidate mapped raw B Base / candidate unmapped raw B
staticChat 1657 / 1657 4,051,455 / 4,041,558 74,869 / 72,961
additionalContent 64 / 64 237,404 / 237,394 20,026 / 19,693
runtime 1721 / 1721 4,288,859 / 4,278,952 94,895 / 92,654

Unmapped bytes include expected generated index-*.js and rolldown-runtime-*.js, which have no source map, plus generated ranges in mapped chunks. Their byte buckets and missing-map lists are preserved in every graph. Mapped plus unmapped raw bytes cover the entire observed application graph.

Source: runtime-module-ledger.json, SHA-256 cfa00815161f3465c897369977cd56388a8b564667a4b3fe7864dbfc1e41d8b6. The complete ledger retains each module owner, source-map hash, raw-byte bucket, and exact served asset identity; all 1,721 modules occur once in the candidate owner groups below. The A2UI/Canvas group is 17,812 standalone gzip bytes for content widgets and integration; the heavy A2UI renderer is absent.

All 100 candidate owner groups, largest standalone gzip first
Owning feature Base standalone gzip B Candidate standalone gzip B Candidate modules Needed for first visible transcript/composer?
Shared UI / Sidebar and session navigation 137,245 133,624 103 The visible rail, session rows, unread/selection state and restored navigation are first-render UI. Online rendering, person detail cards and organization menus depend on selection or interaction.
Chat / Session and route coordination 78,105 78,105 76 State, route selection, active run continuity and rendering orchestration are needed before painting the selected session; some notices and secondary controls are conditional.
Vendor / Markdown parsing and repair 75,902 75,920 73 Chat needs the Markdown parser and canonical hidden-text/code-region interpretation for visible rich text. New Session has no MarkdownIt or emoji data runtime in this graph, but shared micromark normalization remains through common consumers. Remend is Chat-only.
Shared domain / Sessions 68,577 68,600 69 Selected session identity, boot roster and reconciliation are needed immediately; mutations and secondary catalogs are not all required before visible transcript.
Chat / Pane composition and lifecycle 68,408 68,419 41 Selected pane layout, readiness and disposal are first-paint requirements. The class composition also imports optional pane features.
Chat / Detail panels and workspace 67,525 67,508 49 Chat layout and restored/auto-docked detail selection can affect the initial transcript. File/PR/subagent detail actions are unnecessary for a plain closed-panel session. This group is absent from New Session.
Chat / Composer 62,591 62,584 44 Textarea, draft, submission affordance and basic keyboard behavior are first-paint. MCP catalogs, emoji/mention menus and capability views depend on content or interaction.
App / Shell, routing and bootstrap 58,440 58,403 65 The shell, router and application context own the first usable UI and are also shared with non-Chat routes.
Chat / Message rendering 56,408 56,404 52 The visible message bubble/group and sanitization are first-paint for the selected transcript. Tool/plugin/permission branches are content-dependent.
Chat / Transcript and scrolling 54,386 54,395 50 Message projection, visible range, virtualizer, anchors and scroll restoration determine which transcript is visible and where.
Shared domain / Core contracts and helpers 49,689 49,669 111 This explicitly broad residual group contains command parsing, redaction, retry, URL/network policy, status and shared contracts; modules are listed individually in the ledger.
Vendor / Solid runtime 48,642 48,642 37 Reactive graph, DOM rendering and owner disposal are needed by the first shell and Chat render.
Shared UI / Overlays and pickers 40,216 40,221 33 Trigger labels/tooltips may appear initially; option lists and modal bodies are interaction-only. The existing primitives own focus, dismissal and native occlusion.
Chat / History and loading 36,755 36,807 29 Route loader, snapshot and history settlement determine the first transcript, including restored sessions.
Gateway / Protocol and validation 35,796 35,798 44 Gateway connection, typed frame parsing, request validation and authority feed the initial session snapshot. Some secondary-method validators are feature-specific.
Plugin presentation / MCP apps 35,182 35,235 36 A published plugin surface can be visible in the initial shell, message or composer. A plain session does not need catalog discovery, resource browsing or launch UI. New Session still loads common plugin presentation through the shell.
Media and attachments 33,088 33,075 48 Visible transcript attachments need basic media normalization and previews; a restored New Session draft may also contain attachments. Camera, acquisition, downloads and full image viewing are interaction-only.
Shared domain / Utilities 31,407 31,406 65 Formatting, DOM reconciliation, connection helpers and identity utility code support first render; toast, downloads and speech have later effects. This is a named residual utility group with full per-module disclosure.
Chat / Send and outbox 30,241 30,219 25 Draft submission and queued/restored pending messages must be usable immediately. Recovery dialogs and explicit retry/discard action views need only load when present.
Chat / Header and menus 27,104 27,125 15 Visible session title, status and navigation are needed initially. Menu-entry construction and secondary actions require the menu or action. New Session has one small header helper.
Shared UI / Markdown rendering 25,002 25,061 24 Chat needs the normal rich-text renderer for visible Markdown. JSON, table actions, code decorations and details depend on syntax or interaction. This group is entirely absent from New Session.
Shared domain / Text and session normalization 23,600 23,588 39 Visible-text filtering, reasoning/tool-markup stripping and canonical session references define the transcript shown on reload.
Shared domain / Chat durable state 22,682 22,571 17 Restored draft/outbox metadata must survive reload and be available before editing. Export/discard/recovery operations do not all execute at first paint.
Shared UI / Primitives and controls 21,201 21,192 41 Icons, loading/error states, shadow styling and basic controls serve first paint; other controls can be consumer-specific.
Shared domain / Chat normalization and commands 20,077 20,084 26 Imported transcript normalization and sender/content interpretation are first-paint. Slash command lookup and some editing helpers are interaction-dependent.
i18n / en 20,073 20,077 1 Common labels and the English fallback must be available at first render on both routes. The base catalog also retains strings belonging to later pages and actions.
App / Platform, updates and background integrations 20,037 20,043 29 Connection/auth recovery and native listeners may be prerequisites for a usable first render; explicit push subscription, update details and some platform actions occur later. Both routes retain this shared owner.
Shared domain / Tool presentation 19,997 20,014 19 Exec titles, tool-call repairs and argument formatting are needed only for tool-bearing visible messages, though message normalization may invoke shared parts.
Chat / Sharing and annotations 18,532 18,528 15 Persisted annotations/reactions may appear initially; export/share dialogs, new comments and selection popups are interaction-only.
Chat / Model and permission controls 18,375 18,375 13 Current model, effort and permission labels are first-render copy. Picker bodies and provider-review dialogs are lazy after the landed picker/dialog cuts.
A2UI and Canvas surface integration 17,811 17,812 16 The 12 inline widgets in this fixture require Canvas/widget mounting for initial visible content. Menus, export and other subcontrols are interaction-only; the heavy A2UI renderer is absent.
Shared domain / Config 17,146 17,152 15 The runtime config capability is created at bootstrap and supplies accepted values/reload protection. Editor drafts, schema operations and write coordination are not ordinary text transcript rendering.
Claw and Workboard 17,101 17,142 20 A normal conversation does not need board widget/render actions. Persisted board face or a selected board route can need them immediately.
App / Settings and preferences 16,999 16,996 17 Restored layout, theme, locale and per-session choices determine the first render. Mutation/reconciliation is also used outside settings pages.
Chat / Tool cards and streaming 16,909 16,917 14 Only tool-bearing messages need the collapsed shell and streaming status. Detailed tool bodies are already lazy (#181052); ordinary prose does not load them.
Gateway / Client transport 16,640 16,638 20 WebSocket connection, pending request correlation, retries and session projection are required for first transcript and ongoing streaming.
Chat / Voice and realtime 16,404 16,416 13 Voice/dictation capture and device selection are unnecessary for an ordinary text draft; status and stop/cleanup may be needed for an already active capture. Both composers retain dictation support.
Other routes / Lazy route entry stubs and shared helpers 15,981 15,954 40 Route descriptors and matching must know all destinations. Their emitted presence does not imply page bodies are loaded.
Shared domain / Session presentation 14,572 15,344 16 Progress cards, pull requests, presence and display summaries can be visible in sidebar or transcript, depending on session data.
App / Gateway connection and authority 15,205 15,208 18 Connection snapshots, auth scope, selected gateway and live authority are required for correct initial rendering and actions.
Icons / SVG data and presentation 14,753 14,066 10 Icons on visible controls are required, but a combined name-indexed registry includes tool/provider/brand paths unrelated to a plain transcript.
Shared domain / Agent and capability catalogs 13,971 13,961 16 Current agent identity and advertised capabilities may be first-paint. Full channel/configuration catalogs need not be presented immediately.
App / Theme and environment presentation 13,049 13,065 15 Theme, typography and shell branding must be ready before first paint; delaying them creates visual and geometry changes.
App / Overlay and action owners 12,642 12,638 10 Pending approvals or questions can be present on reload; update and confirmation bodies are conditional. Current owners hold live authority.
Boot / Entrypoints and generated glue 12,196 12,198 11 Main entry, route paths, navigation and build identity are needed to locate and mount the selected UI.
Chat / Sidebar and split layout 11,809 11,807 9 Restored split placement and mobile shell affect transcript geometry immediately. Closed side-panel bodies are conditional.
Vendor / DOM sanitization 11,533 11,547 1 Sanitization is required before inserting generated Markdown/HTML from the transcript.
Chat / Questions and goals 10,630 10,631 9 A pending interactive question or restored goal can appear with the first visible messages; inactive editing UI is optional.
Diff and terminal presentation 8,803 8,804 16 Below 10 KB on both routes; follows its consuming feature.
Shared domain / Markdown normalization 8,784 8,797 13 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-session 8,595 8,597 1 Below 10 KB on both routes; follows its consuming feature.
ui/src/pages/chat/components 8,223 8,224 8 See module ledger; conditional renderer or shared first-paint contract.
Vendor / Transcript virtualization 7,501 7,504 3 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-composer 6,577 6,577 1 Below 10 KB on both routes; follows its consuming feature.
Shared UI / Assistant dock 6,531 6,517 6 Below 10 KB on both routes; follows its consuming feature.
Shared domain / Reactive projections 6,513 6,514 24 Below 10 KB on both routes; follows its consuming feature.
Shared domain / Model and account catalogs 6,499 6,497 8 Below 10 KB on both routes; follows its consuming feature.
Chat / Browser and source previews 6,114 6,116 7 Below 10 KB on both routes; follows its consuming feature.
Vendor / @noble/hashes 5,960 5,954 4 Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-organization 5,116 5,116 1 Below 10 KB on both routes; follows its consuming feature.
Vendor / jsonc-parser 5,082 5,080 6 Below 10 KB on both routes; follows its consuming feature.
Vendor / @openclaw/uirouter 4,609 4,609 1 Below 10 KB on both routes; follows its consuming feature.
Shared UI / Identity and activity 4,376 4,408 7 Below 10 KB on both routes; follows its consuming feature.
Shared UI / Mascot 4,257 4,257 3 Below 10 KB on both routes; follows its consuming feature.
Vendor / ipaddr.js 3,782 3,782 1 Below 10 KB on both routes; follows its consuming feature.
Shared UI / Browser and link preview 3,563 3,559 5 Below 10 KB on both routes; follows its consuming feature.
Vendor / @noble/ed25519 3,274 3,274 1 Connection identity signing; needed before this Gateway handshake can complete.
Vendor / typebox 2,911 2,910 6 Below 10 KB on both routes; follows its consuming feature.
Vendor / croner 2,868 2,868 1 Automation schedule presentation loaded with the open details panel; not required for ordinary transcript text.
i18n / en-model-controls 2,279 2,276 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-github 2,232 2,232 1 Copy for the content-loaded GitHub/detail surface; not for a plain closed-panel transcript.
i18n / runtime 2,185 2,185 4 Below 10 KB on both routes; follows its consuming feature.
Vendor / get-east-asian-width 2,030 2,030 4 Below 10 KB on both routes; follows its consuming feature.
i18n / en-command-palette 2,007 2,009 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-message-metadata 1,720 1,722 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-file-preview 1,567 1,569 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-placement 1,444 1,443 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-model-accounts 1,335 1,337 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-sidebar-attention 1,247 1,246 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-mcp 1,199 1,199 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-details 1,100 1,100 1 Copy for the visible details panel; conditional on that panel.
i18n / en-chat-tool-labels 1,046 1,046 1 Visible tool messages only; shared tool consumer owns the registration.
ui/src/lib/board 1,033 1,041 1 See module ledger; conditional renderer or shared first-paint contract.
i18n / en-mcp-app 960 962 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-agents-home 813 944 1 Below 10 KB on both routes; follows its consuming feature.
New Session / Shared entry and launch support 947 943 3 New Session needs placement and launch UI for its initial draft. Chat retains only shared entry contracts after #181144; the composer registry is interaction-time.
i18n / en-board 889 860 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-goals 852 855 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-navigation 775 774 1 Session navigation labels shown by the first visible shell/sidebar.
i18n / en-chat-provider-review 723 721 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-questions 679 680 1 Structured question messages only; relevant message consumer owns the registration.
i18n / en-processes 669 669 1 Process labels imported with the details/process surface; conditional on that surface.
i18n / en-new-session-runtime 648 647 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-chat-media 539 542 1 Visible media controls; loaded with the relevant media consumer.
i18n / en-code-blocks 539 538 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-skill-library 526 525 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-machine 556 452 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-agents 354 354 1 Below 10 KB on both routes; follows its consuming feature.
i18n / en-session-people 158 158 1 Below 10 KB on both routes; follows its consuming feature.
ui/src/components/browser 96 94 1 See module ledger; conditional renderer or shared first-paint contract.
Content- and connection-driven additions
Owning feature Base standalone gzip B Candidate standalone gzip B Candidate modules
Chat / Detail panels and workspace 43,787 43,781 27
A2UI and Canvas surface integration 15,121 15,122 12
Shared domain / Tool presentation 7,803 7,802 4
Plugin presentation / MCP apps 7,062 7,055 4
Vendor / @noble/ed25519 3,274 3,274 1
Vendor / croner 2,868 2,868 1
i18n / en-github 2,232 2,232 1
App / Settings and preferences 2,115 2,115 3
i18n / en-chat-details 1,100 1,100 1
Shared domain / Session presentation 760 760 1
Shared UI / Browser and link preview 686 686 1
i18n / en-processes 669 669 1
Diff and terminal presentation 457 457 1
Shared domain / Utilities 401 401 2
Shared UI / Primitives and controls 367 367 1
App / Gateway connection and authority 243 242 1
Shared domain / Markdown normalization 232 232 1
Shared domain / Reactive projections 160 160 1

The extra graph is content/state dependent: this desktop fixture loads the details surface, carries 12 inline widgets, and activates seven plugin descriptors. Its device identity and preference imports also run during connection/reconciliation. A fetched detail group can contain hidden actions; the graph does not prove every control blocks first paint. Highlighters, math engines, and diagram renderers are not present among these 64 additional modules.

Load optional plugin icon ownership and fetching on first tool-icon request while preserving synchronous fallback and binding cleanup.
Keep the flow projection, route retirement, and draft error/reopen controls eager. Load the complete native modal and its dialog-only styles only for an accepted review, preserving owner-side review and publication behavior.
Load the Roster and Pages renderers on selection while retaining the sidebar shell, state owners, and focused controls across updates. Keep visible loading and retry feedback local to the optional region. Source checkpoint; transfer and timing measurements remain pending.
Keep the sole page-entry renderer with its Pages caller and remove the eager export. Rendering behavior is unchanged; transfer and timing measurements remain pending.
Keep Details, Diff, Files, Side chat, Terminal, and Config rendering copy with existing lazy consumers. Retain shared labels eagerly and preserve canonical English ordering and namespace identity.
Load quota rows and cost details only when the context popover opens. Keep its trigger, visibility, native overlay, and refresh identity in the existing eager owner.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 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 Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T15:24:27.821746Z e57558f 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2f944ee0d

ℹ️ 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".

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR defers optional sidebar views, chat popup content, image helpers, and panel English until their consumers need them.

Example: Open the Sample project chat, then open its context-usage popup.

  • Before: Popup rendering code downloads during chat boot.
  • After: Popup rendering code loads when opened, displaying the same 85k / 100k context readout.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The optimization has credible byte and visual evidence, but introduced recovery and test-cutover defects prevent a clean review.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Chat and New Session download optional UI code before the first usable transcript and composer.
Reason: The maintainer-authored direction targets measured boot bytes while preserving existing state, controls, and catalog ownership; the broader 15% campaign is explicitly outside this checkpoint.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this useful, maintainer-directed performance PR open; sidebar recovery and incomplete test migration need repair before approval.

Priority: P2
Reviewed head: c2f944ee0d530865c742354a59b70d47abf4ca79

Before merge

  • Route stale sidebar retries through guarded document recovery (P2) - After deployment removes an old Pages or Roster chunk, this Retry button only resets the boundary and requests the obsolete URL again. The global preload listener handles ordinary automatic recovery, but scheduleStaleChunkReload explicitly declines when session storage is unavailable or rejects writes. In that supported fallback case, the new sidebar error surface offers no working recovery. Detect stale import errors and use retryStaleChunkReloadWhenReachable, as the existing chat boundaries do.
  • Await lazy readiness in the remaining rendering suites (P2) - The new imports outlive updateComplete and a synchronous flush, but remaining consumers still assert immediately. Exact-head CI fails app-sidebar-rail.test.ts:172, app-sidebar-session-row-render.test.tsx:169 and :215, and chat-view.test.ts:1674 because Pages, Roster, or context content has not loaded. Update these suites to await the actual rendered content, retaining their navigation, restored-state, archive-filtering, and base-path assertions, as the touched context suites already do.
  • Migrate the remaining English-catalog contract tests (P2) - Moving subtitles and panel/save copy out of the eager catalogs leaves three existing contracts inconsistent with the intended loading boundaries. Exact-head CI fails app-navigation.test.ts:86 on subtitles.chat, english-catalog.test.ts:38 on chat.sessionDiff.modeUnified, and settings-search.test.ts:70 because autoSaveSaving now becomes available when Settings registers. Update those tests to load the owning catalog or consumer and distinguish retained eager labels from deferred copy; preserve canonical translation and namespace-identity coverage.
  • Complete next step - The PR author must resolve GitHub's reported merge conflicts while preserving current-main changes.

Findings

  • [P2] Route stale sidebar retries through guarded document recovery — ui/src/components/sidebar-view-boundary.tsx:10-13
  • [P2] Await lazy readiness in the remaining rendering suites — ui/src/components/app-sidebar-owner.tsx:58-65
  • [P2] Migrate the remaining English-catalog contract tests — ui/src/i18n/locales/en.ts:1328

Tests

  • Missing end-to-end proof: The declared alternating real-Gateway cold-load comparison remains pending; screenshots and build-byte measurements do not establish its median and p95 acceptance.
Agent review details

How this fits together

The Control UI consumes Gateway snapshots and user interactions, retains existing domain owners, and loads optional renderers and English catalogs before presenting their content.

flowchart LR
  A[Gateway snapshots] --> B[Existing UI owners]
  B --> C[Retained sidebar and chat shell]
  D[User selection or interaction] --> E[Lazy feature import]
  E --> F[Feature renderer and English catalog]
  B --> F
  F --> C
Loading

Technical review

Best possible solution:

Keep the existing owners and retained UI, reuse guarded stale-chunk recovery, and complete the affected test cutover.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes the eager imports and stale-retry path, while exact-head CI records the affected test failures; no target code was executed.

Is this the best way to solve the issue?

Deferring leaf renderers and registering unchanged English through the existing catalog owner fits the measured problem without introducing another domain-state owner.

Full review comments:

  • [P2] Route stale sidebar retries through guarded document recovery — ui/src/components/sidebar-view-boundary.tsx:10-13
    After deployment removes an old Pages or Roster chunk, this Retry button only resets the boundary and requests the obsolete URL again. The global preload listener handles ordinary automatic recovery, but scheduleStaleChunkReload explicitly declines when session storage is unavailable or rejects writes. In that supported fallback case, the new sidebar error surface offers no working recovery. Detect stale import errors and use retryStaleChunkReloadWhenReachable, as the existing chat boundaries do.
    Confidence: 0.97
  • [P2] Await lazy readiness in the remaining rendering suites — ui/src/components/app-sidebar-owner.tsx:58-65
    The new imports outlive updateComplete and a synchronous flush, but remaining consumers still assert immediately. Exact-head CI fails app-sidebar-rail.test.ts:172, app-sidebar-session-row-render.test.tsx:169 and :215, and chat-view.test.ts:1674 because Pages, Roster, or context content has not loaded. Update these suites to await the actual rendered content, retaining their navigation, restored-state, archive-filtering, and base-path assertions, as the touched context suites already do.
    Confidence: 1
  • [P2] Migrate the remaining English-catalog contract tests — ui/src/i18n/locales/en.ts:1328
    Moving subtitles and panel/save copy out of the eager catalogs leaves three existing contracts inconsistent with the intended loading boundaries. Exact-head CI fails app-navigation.test.ts:86 on subtitles.chat, english-catalog.test.ts:38 on chat.sessionDiff.modeUnified, and settings-search.test.ts:70 because autoSaveSaving now becomes available when Settings registers. Update those tests to load the owning catalog or consumer and distinguish retained eager labels from deferred copy; preserve canonical translation and namespace-identity coverage.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ceb574b14893.

Provenance checked

  • Composer popup rendering keeps the original intent (07384e0: The Solid composer migration preserved controls and plain-owner authority; later overlay work deferred closed bodies.)
  • Sidebar rendering keeps the original intent (e80558a: The Solid sidebar migration preserved the shell, navigation, focus, and existing state owners.)
  • English catalog splitting keeps the original intent (e42e9b5: Earlier startup-budget work placed English with lazy consumers while preserving shared namespaces and canonical catalog ordering.)
  • Plugin tool icons keeps the original intent (5e27311: Binding-scoped requests and PluginIconOwner cleanup prevent stale presentation and retain blob-URL ownership.)
  • Claw review dialog keeps the original intent (dfb972c: The existing flow owns review admission and publication, while Solid observes readiness and presents the dialog.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduction and current main: Reviewed the merge-base-to-head changes at c2f944e; fetched main still imports SidebarAgentRoster synchronously, so this optional-view cutover remains distinct work. (ui/src/components/app-sidebar-owner.tsx:58, c2f944ee0d53)
  • Sidebar recovery: The new Retry button only resets the error boundary. The global preload listener normally schedules recovery, but automatic recovery declines when session storage is unavailable; existing ChatLazyBoundary provides guarded manual reload recovery for that case. This narrows the concern recorded at perf(ui): load sidebar Pages and Roster on demand #181497 (comment). (ui/src/components/sidebar-view-boundary.tsx:13, c2f944ee0d53)
  • Diff-caused UI test failures: Exact-head CI annotations show four assertions reading sidebar or popup content before the new imports settle, and three catalog assertions retaining the previous eager-registration assumptions. (ui/src/components/app-sidebar-owner.tsx:58, c2f944ee0d53)
  • Supplied behavior evidence: Inspected the four prepared 1280×900 screenshots covering before/after transcript and context popup presentation; their visible layout and readout agree. The PR reports lower shipped gzip totals but explicitly leaves its declared real-Gateway cold-load timing acceptance pending. (c2f944ee0d53)
  • Reported merge conflict: Live REST metadata for the reviewed head reports mergeable=false and mergeable_state=dirty. (c2f944ee0d53)
  • Policy and inspection limits: Read applicable root, UI, scripts, and test policies; no maintainer-notes directory exists. The installed Solid cheatsheet is absent, an older commit inspection reached unavailable objects, and core-check logs redirected to a blocked Azure host; those core failures remain unattributed. The checkout remains clean. (AGENTS.md:1, c2f944ee0d53)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

  • add P2: This is a bounded startup improvement with localized recovery and test-migration defects.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a bounded startup improvement with localized recovery and test-migration defects.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 October 23, 2026, 4:49 AM ET / 08:49 UTC.

@steipete steipete changed the title perf(ui): defer optional sidebar, annotation and panel boot work perf(ui): load sidebar Pages and Roster on demand Oct 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b1a883d9e8

ℹ️ 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a0ab6e7f90

ℹ️ 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".

Comment thread ui/src/components/app-sidebar-owner.tsx Resolved
Retire pending stale-chunk reloads with their sidebar error surface and keep the roster metadata fallback available before and after lazy catalog registration. Add focused boundary regressions and refresh the matched boot caps.
@steipete
steipete merged commit e66ae84 into main Oct 23, 2026
142 of 144 checks passed
@steipete
steipete deleted the solid2/w-perf-chat-optional-round2 branch October 23, 2026 15:44
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
* perf(ui): defer chat plugin icon loaders

Load optional plugin icon ownership and fetching on first tool-icon request while preserving synchronous fallback and binding cleanup.

* perf(ui): defer annotation previews and transcript pins

* perf(ui): defer optional English page copy

* perf(ui): defer Claw review dialog until ready

Keep the flow projection, route retirement, and draft error/reopen controls eager. Load the complete native modal and its dialog-only styles only for an accepted review, preserving owner-side review and publication behavior.

* perf(ui): separate image helpers from media loaders

* perf(ui): defer optional sidebar views

Load the Roster and Pages renderers on selection while retaining the sidebar shell, state owners, and focused controls across updates. Keep visible loading and retry feedback local to the optional region. Source checkpoint; transfer and timing measurements remain pending.

* perf(ui): move sidebar page entries into lazy chunk

Keep the sole page-entry renderer with its Pages caller and remove the eager export. Rendering behavior is unchanged; transfer and timing measurements remain pending.

* perf(ui): defer optional panel English copy

Keep Details, Diff, Files, Side chat, Terminal, and Config rendering copy with existing lazy consumers. Retain shared labels eagerly and preserve canonical English ordering and namespace identity.

* perf(ui): isolate board grid column constant

* perf(ui): defer context usage popover content

Load quota rows and cost details only when the context popover opens. Keep its trigger, visibility, native overlay, and refresh identity in the existing eager owner.

* build(ui): refresh optional view boot graph

* perf(ui): preserve grouped styles and ratchet optional boot budgets

* fix(ui): align optional-view tests with lazy readiness

* test(ui): await lazy Pages view in navigation rail

* fix(ui): recover stale optional sidebar chunks

Route the sidebar error action through the shared document recovery owner for stale imports, and preserve in-place retries for ordinary render failures. Cover both visible actions at the sidebar boundary.

* perf(ui): narrow optional boot cuts to sidebar views

* perf(ui): ratchet deferred sidebar boot budgets

* perf(ui): ratchet sidebar boot budgets on current main

* fix(ui): retain agent menu focus during lazy catalog loads

* perf(ui): refresh sidebar boot proof on current main

* perf(ui): refresh sidebar boot proof after main integration

* fix(ui): preserve lazy sidebar recovery ownership

Retire pending stale-chunk reloads with their sidebar error surface and keep the roster metadata fallback available before and after lazy catalog registration. Add focused boundary regressions and refresh the matched boot caps.
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. scripts Repository scripts size: L 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