Skip to content

fix(web): find a model by its words in every model field, and set it once chosen - #416

Merged
aitianshi merged 7 commits into
mainfrom
fix/model-search
Nov 24, 2026
Merged

aitianshi merged 7 commits into
mainfrom
fix/model-search

Conversation

@aitianshi

Copy link
Copy Markdown
Collaborator

Closes #415

What

Every model field finds a model by its words, with one picker and one search, and typing in the builder no longer sets anything.

  • Search: the picker uses the tables' matches, which now also ignores - _ / : (a version's dot counts). No new dependency. Table, card and Compare column searches get this too.
  • One picker: model-picker.js moves to app/static/ and serves the builder, the kits' form, a benchmark's judge model and both Settings judges, which lose their datalist code.
  • Choosing: in the builder a pick, Enter or leaving the field sets the model. Typing sends no compile, shows no error and hides Served by. A model that is not set yet is not reported before its field is used (the recipe errors' new unset mark). After a choice, the last check's error is not shown while the next one runs.
  • Served by: the compile names no model for text that is no model id, so its providers are not asked.
  • Keyboard: presses on the list keep the focus in the field, an input method's Enter is left alone, and the first Enter on an open list closes it without submitting a form. The list's arrow leaves the Tab order; ArrowDown opens the list.

Touches

Templates and static files; backend (standard/pages/recipe.py: unset on two errors, served_models); tests.

Before and after

Before After
Builder: Qwen 32b finds no model Builder: Qwen 32b finds two models
Kits: a plain text field Kits: the picker

Verified

  • Route suite (690) and backend suite (2904), on the branch merged with main in a temporary copy.
  • OpenRouter's list of 470 models, each typed six ways (exact id, name, spaces for - _ / :, reversed, first and last word, capitals without - _ / :): all found. Before: 470, 470, 0, 51, 71, 0.
  • 33 browser checks each in Chromium, Firefox and WebKit at 1280 px, with stand-in model lists: typing, picks by mouse and keyboard, presses on the list, Next and step changes while typing, Served by, Start over, kits, benchmark judge, both Settings judges. No JavaScript errors.
  • Earlier on the branch: agent, capability, benchmark, Settings and builder pages in light at 390 px, no sideways scroll.
  • A Harbor τ³-bench recipe's customer model field, in Chromium.
  • Not verified: macOS Safari, a real input method, a real run or kit started from a picked model. The browser checks are not in the repository's suite.

Risk

  • A model typed in the builder and not left by pick, Enter or blur is not in the recipe: a page reload loses it.
  • Table searches ignore - _ / :, so a query can match a few more rows, and a query of those alone matches every row.
  • Results are not ranked.
  • Settings still saves free text when its field is left, as before. OpenRouter's ~maker/model-latest ids are listed and refused by the standard's id check, as before.
  • Undone by a revert; nothing stored changes.

…rywhere

The model picker kept a model only when the whole query was one piece of its
id or name, so "Qwen 32b" found nothing. It now uses the tables' search, which
also ignores - _ / and :. The kits, the benchmark checks and the Settings judges
use the same picker.
… its list

A model field saved and checked the recipe on every keystroke. It now does so
on a pick, Enter or leaving the field, and shows no error before that.
…ft holds

Typing back the text a draft had kept read as a choice, and a window losing
focus read as leaving the field.
…ts list and input method keys

A press on the list's count or scrollbar, or an input method's Enter, set the
half-typed search. Start over forgets that a model field was used, and only a
missing model's error waits for one.
@aitianshi aitianshi self-assigned this Nov 24, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

🔴 PR judge · 6 of 8 yes · #416 ↔ #415

Merge risk 🔴 MAJOR the judge's reading of the diff; app/nullius/standard/pages/recipe.py is in the path of every run
Priority 🔴 EXTREME the deepest path is app/nullius/standard/pages/recipe.py
Question Verdict
Changes do what the issue asks · 5 of 5 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff, no more, no less ❔ undecided
Diff stays in scope ✅ yes
Tests cover the change, or Verified says how ✅ yes
Docs follow the change ❌ no
Risk named in the description ✅ yes
Before and after shown · 4 images · the diff touches what is visible ✅ yes
Acceptance criteria, 5 of 5 met
# Criterion Verdict
1 A query finds a model by its words in any order and case, with - _ / : ignored; a version's dot counts (3.5 does no… ✅ met (cut)
2 The builder, the kits' form, a benchmark's judge model and both Settings judges use one picker and one search ✅ met (cut)
3 Typing in a builder model field sets nothing, sends no compile and shows no error; a pick, Enter or leaving the field s… ✅ met (cut)
4 Served by is hidden while its model is typed, and text that is no model id is never asked for providers ✅ met (cut)
5 A press on the list, or an input method's Enter, does not set the typed text ✅ met (cut)
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

@aitianshi
aitianshi merged commit d986af9 into main Nov 24, 2026
2 checks passed
@aitianshi
aitianshi deleted the fix/model-search branch November 24, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model fields: a search such as "Qwen 32b" finds nothing, some fields offer no list, and typing sets the model

1 participant