Repository navigation
Studio: model picker ranks Recommended by the Model hub's Latest ranking - #13993
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67b6abd7dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // Recommended section: a live unsloth listing sorted by the dropdown, the same sort that drives search results. | ||
| const [recommendedSort, setRecommendedSort] = | ||
| useState<RecommendedSortKey>("trendingScore"); | ||
| useState<RecommendedSortKey>("fresh"); |
There was a problem hiding this comment.
Gate the search-only Latest request until a query exists
When the Recommended tab opens with an empty query, this default makes both the results hook and recommendedSearch independently enter freshChannelIterator; each prefetches 100 newest and 100 trending entries before yielding. The browse UI consumes recommendedSearch, so the other hook duplicates both Hub listings on every picker open, increasing latency and rate-limit pressure. Enable the search-only hook only once debouncedQuery is nonempty, as is already done for communityQuerySearch.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in f914af8: the search-only listing is enabled only with a query (its rows render only then), so opening Recommended fetches Latest's pools once.
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
## Summary `Frontend build + bundle sanity` is red on main again (for example on #13986, based on a1d4daa): `over the startup budget: transfer 1997.6 KB > 1996.8 KB, raw 6641.9 KB > 6639.0 KB`. Measured commit by commit (one machine and build, Node 24, `rm -rf dist` before each build, 95 chunks throughout): | commit | raw B | transfer B | |---|---|---| | 4ebc263~1 | 6,798,138 | 2,044,534 | | 4ebc263 (#13999) | 6,798,175 | 2,044,556 | | bcf7c81 (#13993) | 6,798,217 | 2,044,592 | | d4e005e (#13998) | 6,801,255 | 2,045,592 | Nearly all of it is #13998 (searching a model maker in the Model hub lists Unsloth's uploads of its models): +3,038 B raw / +1,000 B transfer. Its owner-to-uploads search was added to `use-hub-model-search`, a hook the startup screen already loads, so there is no separate module to lazy-load without restructuring that hook. ## Change The budget is raised by the growth (3,117 B raw / 1,058 B transfer), keeping main's margin, with the per-commit numbers recorded beside the limits as in the earlier raises. ## Testing - `npm run build && npm run bundle:check` on main with this change: within budget (0.2 KB transfer, 0.2 KB raw to spare). Without it: over by the amounts above. - `tests/bundle-budget-cli.test.ts` and `tests/bundle-budget-closure.test.ts`: 43 passed. - `prettier --check scripts/check-bundle-budget.ts`: clean.
What changed
The model picker's Recommended list (Select model in a new chat) now defaults to Latest, the same ranking as the Model hub's Latest Unsloth Models list: Hugging Face trending weighed against release age, with a repo kept private until launch dated by when it went public (#13969). Before, it defaulted to the raw Hugging Face trending score, so a two-month-old hit outranked this week's releases and a model that just went public could sit low.
Trending (raw trending score) and Recent (last updated) stay in the sort menu. A typed search with Latest selected keeps the search path, newest first, as in the hub.
Verification
npm run typecheck,npm run build, fullnpm test(all pass). Newtests/model-picker-latest-sort.test.ts.Not tested here
The task-scoped pickers (audio) use the same ranking through the per-task pools; not exercised from this host.