Repository navigation
refactor(ui): consolidate presentation and preference recovery - #169367
Conversation
|
🦞👀 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. |
|
Inspected synthetic before/after evidence. Every paired view is pixel-identical: built-in icon catalog, provider usage, model/decision pickers, and the link-reader document. The full 169-icon Lit registry was also compared against the initial commit for exact SVG attributes, geometry, and namespaces. |
|
Codex review: needs maintainer review before merge. What this changesThis PR shares Control UI icon and picker data, removes the duplicate usage renderer, and simplifies preference-conflict recovery. Example: Saving sidebar shortcuts ["route:usage", "route:plugins"] encounters two consecutive CAS conflicts.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it removes duplicate presentation owners and implements an explicitly accepted preference-recovery tradeoff; no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI presentation consumes icon catalogs, model options, and provider snapshots, while the preference outbox sends scoped edits through existing Gateway mutation owners. flowchart TD
A[Presentation catalogs] --> B[Lit adapters]
A --> C[Solid components]
D[Provider snapshots] --> C
E[Preference edits] --> F[Preference outbox]
F --> G[Gateway mutation owners]
G --> F
Technical reviewBest possible solution: Retain the shared presentation owners and the accepted recovery behavior, with pending intent and scoped reconciliation preserved. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than an unresolved bug report; source inspection establishes the duplicate owners and changed conflict handling, without executing target code. Is this the best way to solve the issue? The change uses existing presentation catalogs and rendering owners, preserves renderer-specific DOM ownership, and keeps the reconciliation read needed for reconnect/unpin recovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8dea3b59901. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1103, Tests -22. Total -1125 across 20 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 11, 2026, 7:52 PM ET / 23:52 UTC (Revision 5). |
42c7e73 to
c9bf5e8
Compare
The retained Solid content boundary now preserves same-turn parking. Exercise an actual detached disposal before remounting in the media and geometry tests, instead of expecting a parked root to have already been destroyed. Keep all image-abort, no-resurrection, geometry and retired-observer assertions. Both original failures reproduce on main; all 57 transcript cases pass with this fixture repair. Independent review has no actionable P0-P2 findings. Observed during #169367 CI attribution. No production behavior changes.
|
Exact-head CI attribution for
Main repair Cancelled-E2E coverage: the hosted log records all 24 other files passing. A local replay of the numeric slice selected a different path-dependent set and passed 119 tests in 25 files; this is additional coverage, not a claim of exact hosted partition identity. The complete local theme matrix passed 26/27; its last The complete exact-head census contains 41 successes, 44 skips, three failures including the aggregate, and two cancellations. No hosted jobs were rerun and no source push was made merely to obtain green. Pixel parity, focused changed-owner tests, types, cycles and independent review are recorded in the PR body. This uses the campaign's explicitly authorized inherited-failure exception; it does not label the failed CI run green. Additional current-main limitation: its suppression inventory reports the existing |
The retained Solid content boundary now preserves same-turn parking. Exercise an actual detached disposal before remounting in the media and geometry tests, instead of expecting a parked root to have already been destroyed. Keep all image-abort, no-resurrection, geometry and retired-observer assertions. Both original failures reproduce on main; all 57 transcript cases pass with this fixture repair. Independent review has no actionable P0-P2 findings. Observed during openclaw#169367 CI attribution. No production behavior changes.
…law#169367) * refactor(ui): consolidate migration presentation and preference recovery * test(ui): remove obsolete conflict fixture * fix(ui): retain link reader context checks * fix(ui): preserve personal unpin replay reconciliation








What Problem This Solves
Remove parallel presentation implementations left by the Solid migration while keeping both render paths working. Lit icons now use the existing renderer-neutral geometry catalog; Solid's renderer and catalog are unchanged. The live usage page calls the canonical Solid provider renderer, and model/decision pickers share their option construction without sharing DOM ownership.
User Impact
The presentation is unchanged. Repeated preference-write contention now exposes an error and retains intent for an ordinary next edit/reconnect instead of scheduling five more rounds. CAS, durable pending edits, normal retry, and authorization remain. No configuration, protocol, schema, dependency, or persisted-data changes. Link-reader context checks remain unchanged after review.
Why This Change Was Made
The migration had duplicated icon geometry, provider usage rendering, and picker option construction. Keep one owner for each while allowing remaining Lit consumers to work. Preference recovery should handle ordinary conflicts without a timer chain for continuous contention.
Best-effort tradeoffs accepted
Evidence
node scripts/run-vitest.mjs ui/src/components/solid/model-picker.test.tsx ui/src/components/provider-usage.test.ts --maxWorkers=1: seven passed; 33.00s wall (15.09s Vitest). This includes dynamic decision-catalog replacement and the migrated provider-currency/edge coverage.939f740219d: retained main's history icon via the canonical catalog and preserved its Settings draft receipt integration. Rebased proof: 177 focused tests, 11 shell preference tests, three suppression checks; UI types, zero runtime/Madge cycles, and targeted type-aware lint all passed.38178057007failed its UI builds because the then-current main deleted livedomain-board.ts/domain-keyed.tsadapters. The performance baseline and five UI E2E shards reported the same missing imports; other jobs were cancelled. Main fixed that separate regression inda8802bc54e. No jobs were manually rerun.38180278587passed performance and lint but exposed a real reconnect/unpin regression from removing the reconciliation read entirely. The unchanged E2E failed locally for the same reason, then passed after retaining the minimal scoped read. Final corrective proof: all three pin/unpin E2Es, 35 navigation tests, all 12 original cross-realm preference tests, and three suppression checks passed; targeted lint, UI types, and independent review passed. No E2E assertions, retries, or timeouts were changed.38182380028has 41 successful check runs, 44 skipped, two failed UI-unit shards, two cancelled siblings, and the downstream aggregate failure. Media-handoff disconnect and geometry-remount assertions also fail on current main3210da0bbf5; none of their owners/tests is changed here. Head-only proof passes all 57 tests. Current main's retained-root lifecycle needs completed disposal before remount in those fixtures. That newer implementation was not in CI's mergee67dc1f441689cacaa6a3c95c458d95361c15130, so the exact cause of the earlier CI manifestation remains uncertain; no cache cause is claimed.config.getcount failures, independently reproduced on main. Main9310023551cintentionally removed those redundant reads; the separate repairb17443fb0fbnow waits for the canonical preference-write receipt while retaining color, contrast, selection, payload and no-extra-read assertions. This lane does not duplicate that repair.core-test-ui-componentsgraph passed locally in 132.4s. Cancelled jobs are not reported as green.eed222fec68fixes the two transcript fixtures by awaiting real detached disposal; all 57 cases and independent review pass. No runtime behavior changes. The cancelled E2E log contains 24 completed passing files; the remaining theme coverage passed 26/27 locally, with an initial-request renderer timeout in the final Miami-light case. That case passed in isolation on current main withb17443fb0fb; the earlier timeout remains recorded, not claimed fixed. An additional path-dependent local E2E slice passed 119 tests in 25 files.json-predicate-fields.tscontrol-regex entry from perf(state): promote hot session JSON predicates to columns #169315, and its type wrapper refuses a borrowed dependency installation. The exact-head lane suppression check and missing type graph both pass. These limits are not represented as green main-wide proof.Before/after images: #169367 (comment)
Review disposition: the reviewer questioned reactive spread forwarding. The installed Solid compiler emits
createComponent(ModelPicker, mergeProps(params)), passing the memo accessor, not a snapshot; the retained component test now also exercises dynamic catalog, selected value, and disabled-state replacement. No production change was needed for that finding.The initial partial-name test selection expanded into a full UI run and was deliberately stopped for the final icon revision; it is not counted as a pass. A later exact-file selection exposed a background-CAS timing failure that passed in the focused rerun; no fix is claimed for that unresolved flake.