Skip to content

fix: surface favorites and recommended models in picker search - #201450

Merged
vyctorbrzezowski merged 7 commits into
mainfrom
openclaw/warm-shell-3
Nov 29, 2026
Merged

vyctorbrzezowski merged 7 commits into
mainfrom
openclaw/warm-shell-3

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Searching for a version such as 5.5 lists one provider’s entire block before another provider’s equally good matches. A starred model can land below a dated snapshot even when the snapshot’s rolling alias is already visible.

User Impact

In Chat and New Session, exact names and model IDs beat partial matches. Among equally close matches, selectable favorites and catalog recommendations rise across providers. A dated build stays directly searchable; browsing without a query is unchanged.

Why This Change Was Made

Use the existing catalog recommendation and the user's saved favorites rather than guessing capability from a version number, provider name, or context size. Only defer a dated ID when its own provider also offers the undated ID. Other ties keep their existing order. Search rendering and keyboard selection consume the same ranking.

Evidence

In the real Control UI with a synthetic six-model catalog, the same 5.5 search moved the starred Opus from fourth to first and recommended Sonnet from fifth to second. Enter selected the starred result; typing the full snapshot reference selected that exact row. The regression failed on abd8b92cfa49 and passed with the fix. The picker unit suites (28 tests), bundled desktop/mobile Chromium suite (4 tests), UI typecheck, scoped lint and formatting passed. No live provider inference was used.

Before After
Starred Opus below three OpenAI results Starred Opus and recommended Sonnet lead
Before, annotated After, annotated
Starred model highlighted in fourth place Starred model highlighted in first place

Crops from matched 1280×900 Chromium captures on main and the change. Local Codex autoreview (P0–P2, abd8b92cfa49 → final working diff) raised one initialization concern. The search context exists before the panel mounts; the production-bundle regression verifies that typing ranks the favorite, with no duplicate favorite row.

Reported by @vyctorbrzezowski.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

@clawsweeper

clawsweeper Bot commented Nov 18, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Nov 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR prioritizes exact model searches, then favorites and recommendations among equally strong matches, while deferring dated snapshots with available rolling aliases.

Example: Search for 5.5 with anthropic/claude-opus-5.5 starred.

  • Before: Starred Opus appears fourth, below three OpenAI results.
  • After: Starred Opus appears first, recommended Sonnet second, and the dated GPT snapshot last.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful presentation improvement with directly inspected visual evidence and a meaningful browser regression; no actionable defects were found.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots exercise the actual Control UI picker with a synthetic six-model catalog and show the changed search order; the accompanying browser regression checks keyboard selection through the same production ranking path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Equally close search results can bury a user's starred model below another provider's ordinary and dated models.
Reason: The maintainer-authored PR explicitly chooses this presentation policy, demonstrates its value, and preserves browsing, availability, and saved settings.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR demonstrates a useful search-order improvement, with no actionable correctness or security findings.

Priority: P3
Reviewed head: 1d5679fb7f3575f5f725aa66c3365b30d9cbef8f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The shared Chat and New Session picker combines catalog rows and existing favorites into a search projection that controls visible order, highlights, shortcuts, and keyboard selection.

flowchart TD
  A[Model catalog] --> C[Picker search rows]
  B[Existing favorites] --> C
  D[Search query] --> E[Search ranking]
  C --> E
  E --> F[Visible model rows]
  E --> G[Keyboard selection]
Loading

Technical review

Best possible solution:

Keep the focused ranking change in the existing search owner and land it after the normal CI gate passes.

Do we have a high-confidence way to reproduce the issue?

Current-main source retains provider/catalog order within equal text-match buckets, and the supplied before capture shows the reported ordering; no target code was executed during this review.

Is this the best way to solve the issue?

The approach fits the existing ownership boundaries: preserve text-match strength first, derive tie-breaks from saved favorites and catalog recommendations, and use the resulting order for both rendering and selection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f7ec5006f0ea.

Provenance checked

  • Search match priority and bucket ordering changes intended behavior with a stated reason (perf(ui): speed up warm model searches #188991: Six stable buckets reduced ranking work while preserving match priority and catalog-order ties; this PR explains why exact matches and preference-aware ties should now differ.)
  • Favorites snapshot and provider-row construction keeps the original intent (feat(ui): save per-agent model favorites in the chat picker #180824: Favorites use existing scoped preferences and keep provider rows stable while the picker remains open; this PR consumes that opening snapshot and continues excluding duplicate Favorites rows during search.)
  • Search presentation ownership keeps the original intent (refactor(ui): derive model picker search presentation #178613: The lazy panel supplies catalog facts to one Solid search owner for ordering, disclosure, keyboard navigation, and ARIA state; the change retains that architecture.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 56ca2fa adds ui/src/pages/chat/components/chat-model-picker-panel.tsx:97 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 56ca2fae9015; files: ui/src/pages/chat/components/chat-model-picker-panel.tsx)
  • Alix-007: Raw commit cd61ce3 adds ui/src/pages/chat/components/chat-model-picker-panel.tsx:104 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cd61ce32dd28; files: ui/src/pages/chat/components/chat-model-picker-panel.tsx)
  • Ayaan Zaidi: Raw commit d81169b adds docs/concepts/models.md:99 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d81169b0c996; files: docs/concepts/models.md)

PR surface

Source +31, Tests +65, Docs +1. Total +97 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 65 34 +31
Tests 1 65 0 +65
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 131 34 +97

Preflight source

Source 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

Metric Value Why it matters
Production versus regression code Production +65/-34 lines; tests +65/-0 lines The production growth adds ranking metadata and tiers within existing owners, supported by one browser regression covering rendered order and keyboard selection.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves picker search ergonomics without changing model availability, credentials, stored preferences, or inference routing.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 18, 2026, 4:09 PM ET / 21:09 UTC.

roboclaw-bot and others added 2 commits November 22, 2026 21:35
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: ab885e5d-61d2-42e9-92ff-39a2285962bf
@clawsweeper

clawsweeper Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: applying reviewed decision.

I am applying the reviewed decision for this pull request: fix: surface favorites and recommended models in picker search This is item 1/1 in the current shard. Shard 1/1.

This transient lease prevents a newer review from overlapping label, comment, or close mutations.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Nov 24, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit f766de4 into main Nov 29, 2026
82 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/warm-shell-3 branch November 29, 2026 04:53
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '1b246c09b0c1d41ed0f090f07fc50381decba90d': (574 commits)
  fix: stop the manual handoff UI test from hanging after completion (#207945)
  fix: surface favorites and recommended models in picker search (#201450)
  fix: show the saved quota reset when chat skips its only model (#207210)
  fix: avoid reloading unchanged plugins after Gateway boot (#207949)
  fix: keep Task progress double-clicks from changing the window (#207937)
  fix(doctor): continue repairs past retained conflicting exec approvals (#207951)
  test(reply): make account isolation assertion decisive (#207793)
  fix: keep task progress compact when reopening Details (#207943)
  fix(ui): restore the saved reading position after an empty search (#207673)
  fix: remove four Memory Wiki settings that had no effect (#207882)
  test(ios): verify send-at-tap feedback and work grouping (#207913)
  test(agents): reject unsuccessful live replay completions (#207724)
  fix(cron): keep a started cron turn running when its job is edited (#207947)
  improve(ui): put waiting for a free agent under automation timing (#201282)
  chore(ui): refresh control ui locales (#207514)
  fix: distinguish unresolved delivery failures from delivery history (#207897)
  test(doctor): require security check in proxy ordering assertion (#207912)
  fix: keep update rollback tests in sync with shipped workers (#207822)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit 'a012e91c821705e443e42660c34e352623fb0a70': (584 commits)
  fix: confirm recovered config edits while the Gateway is busy (#207918)
  fix: make desktop chat presence avatars slightly smaller (#207966)
  fix: list and select routed Claude models without requiring Claude CLI (#207806)
  fix(ci): check out verifier before plugin preflight reuse
  test(reply): prove channel replacement on user messages (#207813)
  fix(release): bootstrap smoke uses persistent agent creation
  fix(ui): stop model picker Enter checks from failing on cold opens (#207963)
  fix: explain when a provider policy stops a chat reply (#207411)
  fix: show context usage during Claude CLI turns (#207036)
  fix: align the side panel with its resize divider (#207936)
  fix: stop the manual handoff UI test from hanging after completion (#207945)
  fix: surface favorites and recommended models in picker search (#201450)
  fix: show the saved quota reset when chat skips its only model (#207210)
  fix: avoid reloading unchanged plugins after Gateway boot (#207949)
  fix: keep Task progress double-clicks from changing the window (#207937)
  fix(doctor): continue repairs past retained conflicting exec approvals (#207951)
  test(reply): make account isolation assertion decisive (#207793)
  fix: keep task progress compact when reopening Details (#207943)
  fix(ui): restore the saved reading position after an empty search (#207673)
  fix: remove four Memory Wiki settings that had no effect (#207882)
  ...
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
* fix: preserve completed Claude tool calls in chat history

* fix: preserve completed Claude tool calls in chat history

OpenClaw-Publication: d3a267f1-3ba5-4fc9-a4dd-3968148f8eb1
(cherry picked from commit a27b4e6)

Follow-ups: 49492d7 fix: align Control UI tooling and docs with task card removal (#207747) [not selected for this narrow backport]; cebbb78 fix: keep tagged silent replies out of chat (#207738) [not selected for this narrow backport]; d4e1305 fix: hide desktop Details when there is nothing to show (#205093) [not selected for this narrow backport]; 11b2cf0 fix: keep the selected Review file compact when the tree is open (#203825) [not selected for this narrow backport]; 4be636b feat(ui): offer Add to Home agent when Home sidebar is open (#207773) [not selected for this narrow backport]; f766de4 fix: surface favorites and recommended models in picker search (#201450) [not selected for this narrow backport]; 61a7661 improve(ui): remove suggested-task cards from Control UI (#199167) [not selected for this narrow backport]; 48cc039 fix: keep long process names compact above mobile output (#203767) [not selected for this narrow backport]; 9316f05 fix: show the first message when session naming fails (#205607) [not selected for this narrow backport]; aa4a68f fix(ui): show chat completions as activity rows (#201891) [not selected for this narrow backport]; ec209d0 fix(ui): link selection sessions to their source session (#206509) [not selected for this narrow backport]; 3f475cc fix(ui): keep pre-final assistant text visible after a completed turn (#140835) [not selected for this narrow backport]; 05ec989 fix: keep chat photo previews sharp within their byte limits (#206461) [not selected for this narrow backport]; b3bdfb5 feat(ui): preview CSV chat attachments as tables (#206148) [not selected for this narrow backport]; 6b3ccab fix: show Waiting and Resumed for Claude CLI subagent handoffs (#206158) [not selected for this narrow backport]; 762aa00 fix: keep dictation recording when switching tabs or applications [not selected for this narrow backport]; d3f9fca fix: keep similar subagent names distinct in compact rows (#203777) [not selected for this narrow backport]; 864efbb improve: keep composer error cards on one line (#204337) [not selected for this narrow backport]; d7ed2dd fix: stop replaying Claude progress updates in active chats (#203970) [not selected for this narrow backport]; 269f884 fix: show Claude CLI document uploads only once in chat (#203866) [not selected for this narrow backport]; 4708bac fix(ui): show Linear artwork in chat tool activity (#204414) [not selected for this narrow backport]

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Release adaptation: Keep stable multi-token matching and a single canonical provider row per result. Prefer exact qualified models, then use saved favorite/recommended state as a tie-break for enabled rows; preserve browse order.

Pinned companion audit: No pinned #201450 or SHA follow-up; existing favorite and account code supplies the stable projection and the saved-account prefetch test fixture.

(cherry picked from commit f766de4)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…law#201450)

* fix: surface relevant models across providers in picker search

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: surface favorites and recommended models in picker search

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: ab885e5d-61d2-42e9-92ff-39a2285962bf

* fix(ui): correct model picker search matches

* fix: refresh the reviewed correction baseline

Baseline-Refresh: d25ce98826cd186e107da44675680a2b455e8f68

* fix(ui): concatenate model search rows without spreading

* fix(ui): preserve model picker list order without spreading

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 59d6c6bdc10d9cd2e16bf25304606a7cfc377706
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. size: M 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.

2 participants