Repository navigation
refactor(ui): move sidebar session data ownership into a reactive controller - #112853
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 02:43
steipete
force-pushed
the
sidebar-flatten-3-data-controller
branch
from
July 23, 2026 03:33
655ba40 to
30b1bc2
Compare
Contributor
Author
|
Merged via squash.
|
steipete
added a commit
that referenced
this pull request
Jul 23, 2026
…ytes All four QA Smoke profiles fail on main since the #112880 ratchet landed: startup JS gzip ~323,326-323,342 B vs baseline 322,526 + 512 B tolerance. The overage comes from UI commits that landed after the baseline was captured (#112859 #112866 #112853 #111861). Local macOS builds measure ~322,535 B; Linux CI is ~800 B larger, so the baseline must track the CI measurement (max observed across profiles, run 29980596056).
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…ytes All four QA Smoke profiles fail on main since the openclaw#112880 ratchet landed: startup JS gzip ~323,326-323,342 B vs baseline 322,526 + 512 B tolerance. The overage comes from UI commits that landed after the baseline was captured (openclaw#112859 openclaw#112866 openclaw#112853 openclaw#111861). Local macOS builds measure ~322,535 B; Linux CI is ~800 B larger, so the baseline must track the CI measurement (max observed across profiles, run 29980596056).
This was referenced Oct 12, 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
Related: #112809
Related: #112817
What Problem This Solves
PRs #112753, #112809, and #112817 extracted the sidebar render boundary and moved attention into a controller, but session and catalog data still occupied two coupled inheritance layers. Their shared Gateway client, refresh lifecycle, and abstract up-calls kept the remaining element tower difficult to flatten safely.
Why This Change Was Made
This is PR 3 of the sidebar-flattening series. Session and catalog state now have one
SessionDataControllerowned by Projection, which extendsAppSidebarBasedirectly. All consumers address the controller explicitly; the deleted element layers have no aliases, re-exports, or delegating element getters. Stateless catalog orchestration lives in free functions so the controller stays within the 700-line guard without introducing another class or lifecycle owner.The controller host is narrow and descriptive: Lit lifecycle/update support, connection state, the current application context, and the existing
dismissTransientMenus,expandedAgentId,promoteCreatedSession,selectedAgentIdForSessions, andsidebarSessionStatusFilterup-calls.AI-assisted change; implementation and proof were reviewed with the repository autoreview workflow.
User Impact
None. This is a behavior-neutral ownership refactor; sidebar sessions, child lineage, pagination, catalogs, presence, mutation errors, and scroll presentation are intended to behave identically.
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts: 160 passed in 1 suite, with the DOM oracle cases unchangednode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.ui.json: passed on Blacksmith Testboxnode scripts/check-changed.mjs -- <17 touched paths>: passed (coreTests, ui) on Blacksmith Testbox, run 29973129244pnpm ui:build: passed on Blacksmith Testbox; startup JS 9 requests / 315.7 KiB gzip against the 317.0 KiB limit@state()parity audit: all 15 moved reactive fields request a host update after every assignment cluster, including replacement arrays, maps, and sets; the two former plain caches remain non-reactive$HOME/.claude/skills/autoreview/scripts/autoreview --mode uncommitted: clean, no accepted/actionable findings$HOME/.claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findingsgit diff --numstat origin/main...HEAD: +801/-596 across 16 files (net +205 from the explicit host/controller and reactive-notification plumbing while deleting two inheritance layers)