Skip to content

feat(ui): refine model picker states and phone sheet - #192142

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/model-picker-states
Nov 13, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/model-picker-states

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Repeated authentication errors crowded model rows, catalog transitions changed the picker's layout, and the desktop picker did not fit phones.

User Impact

The picker now has loading and recovery states, one provider sign-in action, and a phone sheet with searchable models and accessible context/account controls. Existing rows and the draft are retained during catalog refresh. Authentication-blocked rows cannot select a model; the account menu stays available for recovery.

The phone sheet follows the visible viewport when a keyboard opens or pans the page. Search and filtered results remain reachable. Recovery buttons inherit the shared keyboard focus ring.

Implementation

Rebased onto main after #192135 and #192137 landed. This layer preserves their provider rail, runtime selection, context menus, and account controls; cooldown remains in #192145.

The existing shell viewport owner supplies positioning and height. The correction removes the local focus-outline suppression and keeps account recovery visible during authentication failures. It adds no viewport observer, credentials, configuration, or backend policy.

Validation

  • Four Chromium source-UI scenarios passed at 1280px and 390px: cold loading, refresh with retained rows and draft, authentication recovery, and model selection after the existing confirmation dialog.
  • Tab reaches the recovery action with a visible 2px focus ring. Escape closes the picker and restores trigger focus.
  • With a simulated 380px visual viewport at offsets 0, 48, and 520, search and the filtered result remain visible and selection produces the expected request.
  • The captures below use synthetic Gateway contract fixtures and wait for overlay animations to settle. They are not native iOS keyboard, provider authentication, or inference evidence.
  • Focused picker, catalog, confirmation, Chat, and New Session checks passed, including account recovery and the existing mobile E2E scenario extended for keyboard panning. UI/test typechecks, lint, formatting, and style checks passed.
  • Independent review of the final integrated layer found no actionable issues. Redundant tests that only froze dimensions or appearance were removed.
  • The full CI run is not represented as complete here. The maintainer has authorized landing after scoped validation and bypassing the asset budget; substantive failures and security checks remain required.

Matched Correction Proof

Both pairs show the integrated candidate before and after the focused corrections. The keyboard pair uses the same dark UI, 390px layout width, 380px visible height, and offset 0. It is cropped explicitly to the visible area; the keyboard is simulated.

Scenario Before correction After correction
Search with a simulated keyboard · visible area 390×380 · offset 0 Search sheet outside the visible viewport Search and filtered model within the visible viewport
Recovery action focused with Tab · 1280×900 · dark Focused recovery action without a visible focus ring Focused recovery action with the shared focus ring
Retained original design evidence

These earlier captures document the approved loading, authentication, compact, and phone-sheet designs. Their light Before and dark After images are historical design evidence, not matched final-head comparisons.

State Before After
Catalog loading · desktop 1440 — After: catalog loading, desktop 1440, dark
Chat-only model · desktop 1440 — After: chat-only model, desktop 1440, dark
Sign-in needed · desktop 1440 — After: sign-in needed, desktop 1440, dark
Auth failed · desktop 1440 Before: auth failed, desktop 1440, light After: auth failed, desktop 1440, dark
Locked · desktop 1440 Before: locked, desktop 1440, light After: locked, desktop 1440, dark
Restricted empty · desktop 1440 Before: restricted empty, desktop 1440, light After: restricted empty, desktop 1440, dark
Sheet · phone 390 Before: phone 390, light After: sheet, phone 390, dark
Runs on explanation · phone 390 — After: Runs on explanation, phone 390, dark
Account menu · phone 390 — After: account menu, phone 390, dark
Catalog loading · phone 390 — After: catalog loading, phone 390, dark

Before images: light theme. After images: dark theme.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head fd24bbe9611c63db7abf5c24819fc65161d0dd3c, but the PR head is now 31af3e3bf664b885584cb9e98ba969819d1efc92. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T18:05:12.840Z sha fd24bbe :: needs changes before merge. :: [P2] Preserve Default's ability to clear an existing session pin | [P2] Keep Account controls available when the catalog is empty

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 5, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/model-picker-settings branch from afc83bc to 0eeeefe Compare November 13, 2026 21:43
Base automatically changed from brzezowski/model-picker-settings to main November 13, 2026 22:23
Keep account recovery available and retain the shared focus ring. Use the existing visible viewport dimensions for the mobile sheet. Adapt affected interaction tests and remove redundant geometry assertions.

Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/model-picker-states branch from 4ed5eb6 to f3062e7 Compare November 13, 2026 22:44
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Rebased the model-picker states layer onto its merged parent. Preserved account recovery during authentication failures, restored the shared focus ring, and fixed phone-sheet positioning with a visible keyboard. The body now includes matched correction captures and the current scoped validation.

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 13, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 2bbbc2c into main Nov 13, 2026
90 of 98 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/model-picker-states branch November 13, 2026 22:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
Add compact loading and authentication states and a responsive phone sheet to the model picker. Preserve account recovery, keyboard focus, and visible-viewport positioning.

Co-authored-by: vyctorbrzezowski <[email protected]>
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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant