Repository navigation
refactor(ui): share native settings select rendering - #182796
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 changes before merge. What this changesThis PR shares native select rendering across settings, devices, Cron, Activity, and the skill library. Example: Appearance settings display the send shortcut as Enter.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the consolidation is useful and preserves existing ownership, but the moved skill-file label requires a raw-copy baseline update before CI can pass. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherControl UI pages supply option values, labels, disabled states, and callbacks to a shared Solid renderer, which produces native select elements while existing domain owners retain validation and mutation authority. flowchart LR
A[Page state and option labels] --> B[SettingsSelect]
B --> C[Native select and options]
C --> D[Existing page callback]
D --> E[Existing domain owner]
Technical reviewBest possible solution: Retain the shared renderer and regenerate the raw-copy baseline to reflect the unchanged SKILL.md label's new source representation. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the baseline mismatch: the collector records literal label properties separately from JSX text, and verification compares the complete generated baseline; no target code was executed. Is this the best way to solve the issue? The stateless shared renderer is a proportionate consolidation: callers retain their callbacks and specialized selectors remain local, with only the generated raw-copy baseline missing from the cutover. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 42f68fade98d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -38, Tests +50. Total +12 across 11 files. Added test files: 1. 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 Reviewed October 24, 2026, 3:24 PM ET / 19:24 UTC. |
|
Merged via explicitly authorized admin squash with prior CI and scoped validation.
|
* refactor(ui): share native settings select rendering * test(ui): correct select fixture types and copy inventory
What Problem This Solves
Twelve native settings selects repeat option rendering and selected-value bindings across settings, devices, Cron, Activity, and the skill library.
User Impact
Behavior and appearance stay the same. The shared renderer keeps the existing native select, classes, attributes, disabled options, and change handlers, including rejected-target rollback. Media-permission and language-reset selectors retain their specialized implementations.
Why This Change Was Made
One small
SettingsSelectnow owns the repeated option loop. Callers still own validation, mutations, and option labels. All existing lazy boundaries remain intact. Touched production files shrink from 4,202 to 4,164 lines (38 fewer); the new behavioral test adds 48 lines.This is the first proof from the UI architecture census. The broad inventory contains about 531k production TypeScript lines after excluding tests, translation catalogs, and generated validators; existing menu, dialog, form, and loading primitives already absorb most obvious duplication.
Evidence
Same-machine production builds at base
820c30a3a010and this change:pnpm tsgo:uipasses. The focused select test passes, covering controlled selection, label/disabled updates, retained option nodes, and replacement handlers. Targeted lint has no errors (one unchanged Activity reactivity warning). Independent Codex autoreview found no actionable P0–P2 issues.pnpm ui:buildpasses on both sides. The strict performance checker reports the same pre-existing total CSS overage on both: 303,639 B gzip vs 303,372 B cap, and 1,596,159 B raw vs 1,595,521 B cap. This change adds no CSS. Production Knip reports three unused files outside the UI diff:extensions/codex/src/app-server/protocol-validator-schemas.ts,src/gateway/mcp-app-standalone-host.ts, andsrc/gateway/worker-environments/repository-node-requirement.ts.Inspected synthetic production screenshots at 1440 px and 390 px are attached below. Desktop content crops and full mobile captures have identical SHA-256 hashes before/after. The desktop crop excludes the unrelated build dirty marker. Capture uses the native Vitest/Playwright screenshot helper with fixed fixture time; Node is used only for that Playwright harness. Broad behavior proof runs in PR CI with
ci:full.An exploratory reordered-option test also failed in the original renderer; that inherited native selection-ordering issue is outside this behavior-preserving consolidation.
Initial CI found two PR-caused verification issues: the fixed option fixture needed safe typing under the test leaf, and moving the literal
SKILL.mdlabel changed its raw-copy classification. The repair preserves the test assertions and regenerates the existing inventory entry; the component test, exact UI-components test-type leaf, i18n verification, format check, and fresh repair review all pass. Production code and the measured bundles/screenshots are unchanged. The initial auto request was retired before pushing this repair; the new exact head will use native replacement recovery.