Skip to content

fix(ui): align model provider refresh status - #136609

Merged
Patrick-Erichsen merged 4 commits into
mainfrom
codex/align-model-provider-refresh
Sep 2, 2026
Merged

Patrick-Erichsen merged 4 commits into
mainfrom
codex/align-model-provider-refresh

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Pre-fix regression proof: the rendered header center offset was 6.4765625px (expected at most 1px).
  • Post-fix rendered proof: heading/action centers differ by at most 1px; refresh glyph is 11px, matching the timestamp text; click target remains 28px.
  • Responsive proof at 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).
  • ClawSweeper rank-up move applied: compact structural alignment moved from Channels into the shared settings stylesheet; Models retains only glyph sizing locally.
  • Production LOC: +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.
  • Visual attachment skip: redacted desktop and 390px captures were generated and inspected, but the Codex in-app browser remained unavailable and gh attach could not resolve an authenticated cookie source. The rendered geometry and responsive behavior are asserted directly by the browser test above.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 5:53 PM ET / 21:53 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible 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 maintainer label and is a current maintainer-authored PR.

Priority: P3
Reviewed head: e11562e7cfeb84a709897331fc49155eaac439d1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused shared-owner refactor with meaningful rendered-layout assertions and no supported correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied mocked-Gateway browser test is nevertheless relevant supplemental evidence because it renders and measures the changed Models header after the fix.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied mocked-Gateway browser test is nevertheless relevant supplemental evidence because it renders and measures the changed Models header after the fix.
Evidence reviewed 6 items Introduced Models action: The introduced button uses the existing compact icon-action classes while preserving the refresh callback and disabled state.
Shared owner boundary: The common section renderer places optional description and right-side actions inside the shared header structure, making shared settings CSS the appropriate alignment owner.
Narrow shared rule: The introduced desktop rule applies only to headers without a description that contain a compact icon action; the existing mobile stack remains governed by the 640px rules.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +7, Tests +50. Total +57 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 4 18 11 +7
Tests 1 50 0 +50
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 68 11 +57

Review metrics

Metric Value Why it matters
Production versus test LOC production +18/-11 (net +7); tests +50/-0 Eight production lines relocate an existing shared alignment rule; the remaining page-specific glyph sizing is covered by browser geometry assertions.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: The change corrects a localized visual alignment issue without altering provider behavior, configuration, or delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied mocked-Gateway browser test is nevertheless relevant supplemental evidence because it renders and measures the changed Models header after the fix.

Evidence

What I checked:

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-02T21:06:31.648Z sha d236e55 :: needs maintainer review before merge. :: none

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/align-model-provider-refresh branch from acace39 to e11562e Compare September 2, 2026 21:18
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 2, 2026
@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) September 2, 2026 23:34
@Patrick-Erichsen
Patrick-Erichsen merged commit 37a5c5b into main Sep 2, 2026
277 of 279 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/align-model-provider-refresh branch September 2, 2026 23:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant