Skip to content

refactor(ui): read page snapshots through owner projections - #174941

Merged
steipete merged 2 commits into
mainfrom
solid2/w-idiom5-subs-pages
Oct 17, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-idiom5-subs-pages

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

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

Check Result
UI typecheck pnpm tsgo:ui passed
Focused UI tests 84 passed in config-page.test.ts, agents-page.test.ts, and sessions-page.test.ts, one worker
Regression coverage In-place notification snapshot publications update the Settings presentation
Production Knip pnpm deadcode:knip passed
Format / diff Scoped oxfmt and git diff --check passed
Lint New naming issues fixed; only inherited model-setup-owner.ts max-lines remains (file shrinks 781→779 lines)
Line-cap growth guard Passed; no new violations or over-cap growth
Independent review Both review passes found no actionable P0–P2 findings
PR CI UI unit 3/3, selected UI E2E 2/2, production/test types, lint, architecture/security, and Control UI performance passed
Visual/startup proof CI startup: 340,332 B JS gzip, 1 CSS request (38,666 B gzip); CI base comparison passed. No local build/E2E under the lane's compute rule

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 rejects src/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 base 8919729f0484e743af1a956f20f880bdba79a185 and tested merge 423deac61c5a1d1cb2337181e09234c1804f8127; this PR changes only page consumers. The native inherited-failure route will retain that failed result.

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.
@clawsweeper

clawsweeper Bot commented Oct 17, 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 17, 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-17T01:41:21.237814Z bb8ae20 PR opened
ℹ️ 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.

@steipete
steipete merged commit d5c323b into main Oct 17, 2026
97 of 100 checks passed
@steipete
steipete deleted the solid2/w-idiom5-subs-pages branch October 17, 2026 02:07
@steipete

Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant