Skip to content

fix(ui): preview model picker interactions live - #115477

Merged
Patrick-Erichsen merged 2 commits into
mainfrom
pe/model-picker-live-preview
Jul 29, 2026
Merged

Patrick-Erichsen merged 2 commits into
mainfrom
pe/model-picker-live-preview

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes two Control UI model-picker interactions that lagged behind user input: the reasoning value only refreshed after a slider drag committed, and the model list only changed after clicking a provider instead of while exploring provider rows.

Why This Change Was Made

The picker now uses one preview/committed-state flow: slider input events update the visible reasoning preview while change commits it, and the existing active-provider state previews provider rows on pointer hover or keyboard focus without changing the selected model. Cancellation restores the committed reasoning value, and model-click commit behavior remains unchanged. Provider keyboard navigation stays on native pressed-button semantics, consistent with the Control UI shared-control inventory.

AI-assisted implementation; the author reviewed the state flow, tests, and proof artifacts.

User Impact

Users can see each supported reasoning level while dragging and can inspect providers' model lists immediately by hover or keyboard navigation, while deliberate model selection still requires a model click.

Evidence

  • node scripts/run-vitest.mjs ui/src/components/web-awesome-migration.node.test.ts — 3/3 passed.
  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts — 206/206 passed.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.models-reasoning.e2e.test.ts — 7/7 passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — no accepted/actionable findings after the CI follow-up.
  • Blacksmith Testbox pnpm check:changed — passed on lease tbx_01kynqq9v7gjkgk8keq69zsjkf; run 30414112107.
  • Visible desktop proof on Hetzner Crabbox lease cbx_0cde34c0d93f, asserted run run_d571246e591c: one continuous recording shows a held slider drag changing Low → Medium → Ultra before release, then hover-only provider preview changing Anthropic → OpenAI. The lease was released and the redacted local recording was inspected. Public artifact upload was unavailable (artifact_upload_unavailable), so no public video URL is claimed.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review July 29, 2026 01:38
@Patrick-Erichsen
Patrick-Erichsen merged commit e50a91c into main Jul 29, 2026
101 of 104 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the pe/model-picker-live-preview branch July 29, 2026 02:00
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main: (57 commits)
  docs: document gateway and memory chat wizards (#115487)
  fix(agents): restore subagent completion delivery on CLI runtimes (#115422)
  fix(sandbox): stop provisioning failures from exhausting fallbacks (#115481)
  refactor: remove duplicate runtime and plugin paths (#115483)
  fix(ui): canonicalize agent model identity (#115480)
  fix(ui): preview model picker interactions live (#115477)
  fix(ui): match disabled microphone picker background (#115472)
  refactor(code-mode): split focused runtime stress suites (#115462)
  fix(gateway): preserve restart intent across coalesced config writes (#110397)
  fix: scope subagent handoff to direct tools (#115466)
  docs: explain native subagent handoff
  fix: clarify native subagent completion handoff
  fix(config): respect agent directory filesystem case (#105402)
  refactor(code-mode): unify safe OpenAI tool filtering (#115460)
  refactor(code-mode): prepare MCP namespaces once per run (#115459)
  fix(ollama): preserve selected model capabilities during onboarding (#115467)
  refactor(chat): remove duplicate session projection paths (#115461)
  refactor(code-mode): make tool catalogs run-owned (#115458)
  fix(cli): preserve mid-turn text in durable replies (#115455)
  fix(memory): fall back to keyword search when embeddings cannot start (#115397)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
* fix(ui): preview model picker interactions live

* fix(ui): keep provider preview on native buttons
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 size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant