Repository navigation
refactor(ui): read page snapshots through owner projections - #174941
Merged
Merged
Conversation
Replace redraw-only subscriptions in Agents, Profile, Sessions, and Settings with owner projections and consume the shared locale revision in model setup. Keep synchronous request retirement, draft custody, and ordered event delivery at their existing owners.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…#174941) * refactor(ui): project page snapshots from their owners Replace redraw-only subscriptions in Agents, Profile, Sessions, and Settings with owner projections and consume the shared locale revision in model setup. Keep synchronous request retirement, draft custody, and ordered event delivery at their existing owners. * refactor(ui): co-locate settings subscription cleanup
This was referenced Oct 19, 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.
What Problem This Solves
The Solid page migration left redraw-only subscriptions that relay owner state through page invalidation callbacks.
User Impact
Behavior-preserving refactor for Agents, Profile, Sessions, Settings, and model setup. Owner publications still update the same pages; route loading and markup stay unchanged.
Why This Change Was Made
Read snapshot state through
projectOwner, let Solid own observation lifetime, and derive Agents/Sessions view props once instead of copying the whole view. Model setup consumes the shared reactive locale revision. Keep direct subscriptions for synchronous connection retirement, draft custody, request admission, and ordered event delivery; comments explain those retained contracts.Evidence
pnpm tsgo:uipassedconfig-page.test.ts,agents-page.test.ts, andsessions-page.test.ts, one workerpnpm deadcode:knippassedgit diff --checkpassedmodel-setup-owner.tsmax-lines remains (file shrinks 781→779 lines)Touched production files: 6,635→6,631 LOC. Explicit
.subscribe(calls: 28→17.createEffect: 10→10;untrack: 5→5;createSignal: 12→12. Other checklist patterns (render effects, native listeners, DOM queries, manual classes, flush, captured owners) did not increase. Tests: +29 LOC. No dependency or domain-owner changes.CI exception evidence: run 38991765811 failed only
checks-fast-baseline-ratchets: the mock-export guard rejectssrc/cli/update-cli/update-command-service-maintenance-native.test-support.ts:52. The fixture, mocked module, guard, and mock baseline have identical Git blobs in CI base8919729f0484e743af1a956f20f880bdba79a185and tested merge423deac61c5a1d1cb2337181e09234c1804f8127; this PR changes only page consumers. The native inherited-failure route will retain that failed result.