Repository navigation
fix(ui): keep empty model picker beside composer actions - #198593
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 changes before merge. What this changesThis PR aligns the empty-model status beside Dictate in the narrow New Session composer. Example: Open New Session at 390 × 900 with an empty model catalog.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this PR repairs a demonstrated mobile spacing regression, but its added CSS causes the base-aware asset-budget check to fail. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI model picker consumes admitted catalog state and renders the composer trigger; New Session CSS positions that trigger beside the composer actions. flowchart LR
A[Model catalog] --> B[Draft model owner]
B --> C[Chat model controls]
C --> D[Model picker trigger]
D --> E[New Session mobile styles]
E --> F[Composer action row]
Technical reviewBest possible solution: Keep the existing catalog owner and reserved layout track, align only the admitted empty trigger, and consolidate CSS enough to satisfy the asset budget. Do we have a high-confidence way to reproduce the issue? The source explains the reserved-track gap, and inspected before/after screenshots corroborate it; this read-only review did not run the reproduction. Is this the best way to solve the issue? The patch uses existing catalog facts and the existing layout owner, preserves loading reservation, and adds no unnecessary state or abstraction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 72f90dde293d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +9. Total +9 across 2 files. 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. 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 November 13, 2026, 9:59 PM ET / November 14, 2026, 02:59 UTC. |
|
Merged via squash.
|
…8593) * fix(ui): keep empty model picker beside composer actions * fix(ui): trim redundant model picker selector scope * fix(ui): reuse model picker binding for empty state
What Problem This Solves
On phones, an empty model catalog left “No models available” nearly 60 px away from Dictate. The fit-content trigger introduced in #198509 stayed at the leading edge of its reserved track even when no effort chip occupied the rest of that track.
Expose admitted empty-catalog state on the existing model-trigger binding and align that status to the trailing edge of its track. Loading and selected-model layouts retain their existing alignment. The redundant tools data marker is removed; the two consumers now check the existing accessible “No tools” label directly. The current empty status stays 2 px from Dictate before opening, while open, and after closing.
Evidence
The initial revisions exceeded CSS and JavaScript budgets. Removing redundant selector scope and reusing the retired marker’s binding position avoids adding a separate reactive class binding. The complete production comparison against
0b7cd35571e7cbfb7544305379c7c4a1dac26b03passes:Validation: the original 390 px spacing test failed before the fix. The final production-bundle run passes both spacing widths (1440 and 390), all three CPU-throttled loading cases (320, 400, 560), deferred model-metadata admission, and chat-only model switching. All 41 model-picker/catalog/runtime unit tests pass. Targeted default tsrs, type-aware lint, stylesheet lint, formatting, and whitespace checks pass. Fresh whole-delta independent review completed with no actionable P0–P2 findings. Inspected before/after captures use synthetic data.
The chat-only browser proof includes the provider-row reveal ordering already fixed in #198537; that prerequisite remains owned there and is not duplicated in this PR.
Release-note context: Control UI keeps the empty-model status beside Dictate on phones.