Repository navigation
fix: surface favorites and recommended models in picker search - #201450
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR prioritizes exact model searches, then favorites and recommendations among equally strong matches, while deferring dated snapshots with available rolling aliases. Example: Search for
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +31, Tests +65, Docs +1. Total +97 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 4:09 PM ET / 21:09 UTC. |
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: ab885e5d-61d2-42e9-92ff-39a2285962bf
1d5679f to
0ff9b42
Compare
|
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. |
Baseline-Refresh: d25ce98826cd186e107da44675680a2b455e8f68
Baseline-Refresh: 59d6c6bdc10d9cd2e16bf25304606a7cfc377706
|
Merged via squash.
|
* 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) ...
* 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) ...
* 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]>
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]>
…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]>
What Problem This Solves
Searching for a version such as
5.5lists 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.5search 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 onabd8b92cfa49and 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.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.