Repository navigation
fix(ui): align model provider refresh status - #136609
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 5:53 PM ET / 21:53 UTC. ClawSweeper reviewWhat this changesThe PR makes the Models configured-provider refresh action a compact ghost icon and centralizes compact no-description header alignment in the shared settings stylesheet. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review The focused Control UI fix is supported by the shared settings owner, sibling Channels usage, and browser geometry coverage; no introduced correctness or security defect was found. It remains open because it carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe Control UI’s Models page receives provider state and refresh callbacks from its page controller, then renders them through shared settings-section primitives. Shared CSS lays out the heading/action row, while page CSS sizes the Models refresh glyph next to its timestamp. flowchart LR
A[Gateway-backed provider state] --> B[Models page controller]
B --> C[Configured Providers section]
C --> D[Shared settings header]
D --> E[Desktop aligned actions]
D --> F[Mobile stacked actions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +7, Tests +50. Total +57 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the compact-header structure in shared settings CSS and retain the Models-only glyph override, whose timestamp-specific sizing cannot be generalized without changing the Channels control. Do we have a high-confidence way to reproduce the issue? Yes. The browser test exercises the rendered Models route with provider data and measures the affected desktop and 390px header geometry; its before-fix failure value is documented in the PR body. Is this the best way to solve the issue? Yes. The common settings-section renderer owns the header structure, and the shared rule preserves the existing Channels behavior while the Models-only rule addresses its timestamp-specific glyph size. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9897585f34e5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
acace39 to
e11562e
Compare
* test(ui): cover model provider header alignment * fix(ui): align model provider refresh status * fix(ui): preserve model provider refresh target * refactor(ui): share compact settings header alignment
What Problem This Solves
Fixes an issue where the Models settings page showed the configured-provider update status and refresh control lower than its section heading, with a refresh glyph that was visually oversized beside the timestamp.
Why This Change Was Made
The shared settings owner now centers no-description headers that use the existing compact icon-action contract, consolidating the same rule previously owned by Channels. The Models page adopts that compact ghost button and sizes only the refresh glyph to the adjacent timestamp text; the 28px click target and existing mobile stacked layout remain intact.
User Impact
The Configured Providers heading, update timestamp, and refresh glyph now read as one aligned header row on desktop. Mobile retains its stacked, right-aligned action row without horizontal overflow.
Evidence
6.4765625px(expected at most1px).1px; refresh glyph is11px, matching the timestamp text; click target remains28px.390px: header stacks vertically, actions remain right-aligned, and the page has no horizontal overflow.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/model-providers.e2e.test.ts— 6 passed.node --import tsx scripts/run-stylelint.mts ui/src/styles/model-providers.css— passed.pnpm exec oxfmt --check ui/src/styles/model-providers.css ui/src/pages/model-providers/view.ts ui/src/e2e/model-providers.e2e.test.ts— passed.autoreview --mode branch --base origin/main— scoped clean, patch correct (0.99).+18/-11(net+7). The shared structural rule is a move; the remaining growth is the Models glyph-size contract plus its shared-owner context comment.gh attachcould not resolve an authenticated cookie source. The rendered geometry and responsive behavior are asserted directly by the browser test above.