Repository navigation
refactor(ui): move sidebar mutations and groups into one organizer controller - #112923
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…ntroller (openclaw#112923) * refactor(ui): move sidebar mutations and groups into controllers * refactor(ui): lazy-load session organizer operations * fix(ui): order organizer mutation scope before options
This was referenced Jul 29, 2026
This was referenced Oct 10, 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
Related: #112853
PR 4 of the sidebar flattening series.
What Problem This Solves
The Control UI sidebar still split session mutations and custom-group organization across separate layer files and, after their first controller extraction, separate controllers with bidirectional host wiring. That duplication kept the sidebar hierarchy deeper than necessary and pushed startup JavaScript above the shrink-only budget.
Why This Change Was Made
This merges mutations and groups into one
SessionOrganizerController: the bidirectional dependency was a cohesion signal that these operations are one concern. It removes the controller-to-controller host bridge and keeps one host contract, while preserving eager group/drag presentation state and the former state-parity update points.The interaction-only RPC and persistence tails live in
session-organizer-operations.runtime.tsbehind one cached dynamic import, following the sidebar narration precedent. Mutation scopes are captured before that lazy boundary, stale scopes are rejected before RPCs, and failed chunk loads clear the cache and report through the scoped mutation-error path. There are no production static importers of the runtime module.The startup ratchet history was:
User Impact
No visible behavior changes. First paint, collapsed sections, drag affordances, confirmations, and session/group operations remain the same; the interaction-only operation code now downloads on first use instead of during startup.
Evidence
app-sidebar.test.ts: 160/160 passed after rebase.check:changedpassed on the rebased branch, including max-lines, formatting, i18n, types, and the full core/UI/package lint sweep.[INEFFECTIVE_DYNAMIC_IMPORT]was absent.Two DOM-dispatch assertions now use the existing
waitForFasthelper becauseEventTarget.dispatchEventcannot return an async listener promise: custom-group reorder persistence and the session-pin tail of a sidebar drop. No production timing workaround was added.