Repository navigation
fix(ui): avoid renormalizing unchanged model names - #198535
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 Summary: ✅ CompletedThis 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 memoizes normalized model names independently of translated row presentation. Example: An unrelated English translation catalog registers while the picker retains the GPT 5.5 row.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it narrowly fixes an established model-picker work-count failure still present on main, and no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherChat and New Session share the model-picker renderer, which turns catalog entries and translated presentation into selectable rows and searchable attributes. flowchart LR
A[Model catalog entry] --> B[Model label formatter]
B --> C[Normalized name memo]
C --> D[Model row attributes]
E[Translation registration] --> F[Translated presentation]
F --> D
Technical reviewBest possible solution: Keep the normalized name as a narrow derivation in the existing row component, preserving translated presentation and the existing retained-view regression. Do we have a high-confidence way to reproduce the issue? The scheduled-main failure and existing retained-view test identify the exact translation-registration trigger and unnecessary normalization; source confirms the responsible dependency remains on fetched main, and no target code was executed during this review. Is this the best way to solve the issue? The patch is the smallest complete repair: it isolates normalization from translated presentation using the existing formatter and component lifetime, without adding another owner or changing selection policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e1bb26e340c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 November 13, 2026, 8:12 PM ET / November 14, 2026, 01:12 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Unrelated translation registration makes a retained model picker normalize unchanged model names again.
User Impact
The picker keeps its existing labels and live updates while avoiding repeated work for unchanged names.
Why This Change Was Made
The row's name attribute shared a reactive computation with translated presentation fields. Memoize the name from its existing formatter so route text can refresh without reprocessing unchanged names. The inline normalization dates to the Solid composer migration (07384e0, #168779); the existing retained-view regression exposes it on current main.
Evidence
ui/src/pages/new-session/model-control-view.test.tsx→keeps one mounted model view live without depending on draft revisionsfails on the base and passes with this change.CI: exact-head run 43537528113 completed with 16 inherited UI-unit failures in two jobs: responsive layout (#198532), hosted and pane controls (#198534), draft titles (#198516), and the semantic model-option assertion (#198546). The original signatures or independently reproduced later-main defect match the unchanged baseline sources. These are attributed separately from this repair; landing uses the authorized inherited-failure route and retains failed CI.