Repository navigation
refactor(ui): replace minified sidebar render snapshot with host interface - #112809
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 00:11
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
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.
Related: #112753
What Problem This Solves
PR #112753 left the Control UI sidebar session-list renderer with hand-minified source names such as
data.l,data.v, andcb.om. That made a maintainability refactor materially harder to read and weakened the presence payload tounknownsolely to stay under the startup-JS budget.Why This Change Was Made
The render functions now accept one narrow
SessionListHostimplemented structurally by the sidebar element. They read the element's descriptively named state and call its methods directly, removing the duplicated snapshot builder and callback-binding table rather than abbreviating the interface. The host shape is byte-neutral in production because its TypeScript interface erases and the generated call sites are the samehost.propertyreads the class renderers originally used.The presence payload is normalized at the gateway boundary to a typed
{ presence }shape. DOM structure, CSS, keyed rendering, and event behavior are unchanged.User Impact
No user-visible behavior changes. The sidebar rendering boundary is maintainable again without giving up the startup size guard.
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts: 160 passednode scripts/run-vitest.mjs ui/src/app/user-profile.test.ts ui/src/pages/profile/profile-page.test.ts: 8 passed across 2 filesnode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.ui.json: passed on Blacksmith Testboxnode scripts/check-changed.mjs -- <12 touched files>: passed (coreTests, ui) on Blacksmith Testboxpnpm ui:build: passed on Blacksmith Testbox; startup JS gzip fell from 322,494 B to 322,281 B (-213 B), below the 322,560 B budget$HOME/.claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findingsgit diff --numstat origin/main: +284/-321 across 12 files (net -37)AI-assisted change; implementation and proof were reviewed with the repository autoreview workflow.