Repository navigation
refactor(ui): consume preferences from their existing owner - #180684
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. |
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes Settings read current application preferences and consolidates custom-theme import synchronization. Example: A delayed custom-theme import finishes after the user selects the built-in knot theme.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored refactor removes redundant preference ownership, and source review found no actionable patch defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSettings presents browser and profile preferences; existing preference writers persist changes, the application theme owner publishes current values, and the import owner rejects retired completions. flowchart TD
A[Settings controls] --> B[Preference writers]
B --> C[Scoped preference storage]
C --> D[Application theme owner]
D --> E[Settings presentation]
D --> F[Theme import owner]
F --> B
Technical reviewBest possible solution: Retain this focused read-through refactor and the existing preference writers and import cancellation owner. Do we have a high-confidence way to reproduce the issue? This PR claims an internal refactor rather than a reproduced user bug; source confirms the redundant snapshot and synchronous owner contract. Is this the best way to solve the issue? The change uses existing owners, removes the replaced coordination methods, and preserves write contracts without adding modules or parallel state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3cd9bddb36d9. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -4, Tests +2. Total -2 across 5 files. Added test files: 0. View PR surface stats
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 Reviewed October 22, 2026, 10:35 AM ET / 14:35 UTC. |
|
Merged via squash.
|
Problem and solution
Config kept a mutable copy of UI preferences alongside the application theme owner. Custom-theme cancellation also passed whole settings snapshots into its owner to compare one timestamp.
Read current preferences from
ApplicationTheme.settingsand give the import owner only its gateway scope and import timestamp. Preference readers acceptUiPreferences; writes continue through the existing settings owner. Late import callbacks read the live theme selection.The main integration preserves the landed media owner for discovery, permission requests, device observation, and retirement. It keeps canonical preference reads and does not restore the removed import-owner
connectAPI. Routes, rendering, persistence, and lazy boundaries are unchanged.Ownership and size
Measured against the merged main parent
dadde4125438:Production fan-in is unchanged: Config 2, import owner 1, preference-state 13, and preference-reconcile 4. Config keeps 45 static import sources. No new module or Solid primitive is introduced. The Solid refactor census is unchanged: one effect; zero rendering controllers, render effects,
untrack, direct listeners, DOM queries,flush, owner APIs, component cleanup hooks, actions, optimistic stores, or lazy loaders in the touched production files.Proof
The import cases cover replacement, clear, stale completion, errors and retry, navigation, Gateway replacement, config mutation, and selection changes while a request is pending. Config tests also cover media permission upgrades, superseded camera selections, and leaving the page while hardware work is pending.
Production Knip reports only
src/infra/heartbeat-active-hours.tsandsrc/infra/heartbeat-wake-policy.ts, both reproduced on untouched mainfe2aa4a6c44. The prior CI attempt belongs to the superseded head. This head includes main's Twitch assertion repair; the fresh full CI run passed. There is no rendered visual change, so screenshot proof does not apply.