Skip to content

feat(models): match provider ids in the model and Add provider searches - #1308

Merged
agegr merged 2 commits into
mainfrom
feat/issue-1272-provider-search
Oct 18, 2026
Merged

agegr merged 2 commits into
mainfrom
feat/issue-1272-provider-search

Conversation

@agegr

@agegr agegr commented Oct 16, 2026

Copy link
Copy Markdown
Owner

The model selector's filter matched only a model's name and id, so a
provider id such as relay-a or a qualified anthropic/claude found
nothing when several providers offer the same model. It now also matches
the provider id and provider/modelId, case-insensitive and trimmed;
order and grouping are unchanged.

Settings › Models › Add provider matched API-key providers by name or id
but OAuth providers by name only. Both now go through
providerMatchesSearch() in models-config-helpers.ts. The demo copies get
the same matching.

Closes #1272

Testing

  • node --experimental-strip-types --test components/ChatInput.test.mjs components/ModelsConfig.test.mjs
  • Integrated with the other fix branches of this batch on main b017cd4: tsc --noEmit clean, npm test 2787 pass / 0 fail / 1 skipped.
  • Left out on purpose: the mobile autofocus change and the translated custom-provider label.

🤖 Generated with Claude Code

The model selector's filter matched only a model's name and id, so a
provider id such as `relay-a` or a qualified `anthropic/claude` found
nothing when several providers offer the same model. It now also matches
the provider id and `provider/modelId`, case-insensitive and trimmed;
order and grouping are unchanged.

Settings › Models › Add provider matched API-key providers by name or id
but OAuth providers by name only. Both now go through
providerMatchesSearch() in models-config-helpers.ts. The demo copies get
the same matching.

Closes #1272

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…der-search

# Conflicts:
#	components/ChatInput.test.mjs
@agegr
agegr merged commit df163cd into main Oct 18, 2026
4 checks passed
agegr pushed a commit that referenced this pull request Oct 20, 2026
Returning from the mobile breakpoint restores the desktop sidebar preference in an
effect, so the toggle can swap from "Show sidebar" to "Hide sidebar" between the
`isVisible()` check and the click. The click then waits its full 30s for a button
that will not come back, and the suite dies with

  locator.click: Timeout 30000ms exceeded. waiting for
  getByRole('button', { name: 'Show sidebar', exact: true }) at e2e/run.mjs:496:60

Seen on several unrelated PRs (#1322, #1324 ourselves, #1308 from another
contributor).

The click now retries against a short deadline and only its own timeout is
ignored; the wait for "Hide sidebar" that follows still fails if the sidebar never
opens, so a real regression is not hidden. The fork's earlier 947c7fe reload
fallback does not cover this signature: it fires only when neither toggle appears
within its 10s bound.
@agegr
agegr deleted the feat/issue-1272-provider-search branch October 29, 2026 13:01
windli2018 pushed a commit to aiti-ai/aiti-ai that referenced this pull request Nov 6, 2026
…es (agegr#1308)

The model selector's filter matched only a model's name and id, so a
provider id such as `relay-a` or a qualified `anthropic/claude` found
nothing when several providers offer the same model. It now also matches
the provider id and `provider/modelId`, case-insensitive and trimmed;
order and grouping are unchanged.

Settings › Models › Add provider matched API-key providers by name or id
but OAuth providers by name only. Both now go through
providerMatchesSearch() in models-config-helpers.ts. The demo copies get
the same matching.

Closes agegr#1272

Co-authored-by: Claude Opus 5.5 <[email protected]>
windli2018 pushed a commit to aiti-ai/aiti-ai that referenced this pull request Nov 6, 2026
…gr#1326)

Returning from the mobile breakpoint restores the desktop sidebar preference in an
effect, so the toggle can swap from "Show sidebar" to "Hide sidebar" between the
`isVisible()` check and the click. The click then waits its full 30s for a button
that will not come back, and the suite dies with

  locator.click: Timeout 30000ms exceeded. waiting for
  getByRole('button', { name: 'Show sidebar', exact: true }) at e2e/run.mjs:496:60

Seen on several unrelated PRs (agegr#1322, agegr#1324 ourselves, agegr#1308 from another
contributor).

The click now retries against a short deadline and only its own timeout is
ignored; the wait for "Hide sidebar" that follows still fails if the sidebar never
opens, so a real regression is not hidden. The fork's earlier 947c7fe reload
fallback does not cover this signature: it fires only when neither toggle appears
within its 10s bound.
windli2018 pushed a commit to aiti-ai/aiti-ai that referenced this pull request Nov 8, 2026
…es (agegr#1308)

The model selector's filter matched only a model's name and id, so a
provider id such as `relay-a` or a qualified `anthropic/claude` found
nothing when several providers offer the same model. It now also matches
the provider id and `provider/modelId`, case-insensitive and trimmed;
order and grouping are unchanged.

Settings › Models › Add provider matched API-key providers by name or id
but OAuth providers by name only. Both now go through
providerMatchesSearch() in models-config-helpers.ts. The demo copies get
the same matching.

Closes agegr#1272

Co-authored-by: Claude Opus 5.5 <[email protected]>
windli2018 pushed a commit to aiti-ai/aiti-ai that referenced this pull request Nov 8, 2026
…gr#1326)

Returning from the mobile breakpoint restores the desktop sidebar preference in an
effect, so the toggle can swap from "Show sidebar" to "Hide sidebar" between the
`isVisible()` check and the click. The click then waits its full 30s for a button
that will not come back, and the suite dies with

  locator.click: Timeout 30000ms exceeded. waiting for
  getByRole('button', { name: 'Show sidebar', exact: true }) at e2e/run.mjs:496:60

Seen on several unrelated PRs (agegr#1322, agegr#1324 ourselves, agegr#1308 from another
contributor).

The click now retries against a short deadline and only its own timeout is
ignored; the wait for "Hide sidebar" that follows still fails if the sidebar never
opens, so a real regression is not hidden. The fork's earlier 947c7fe reload
fallback does not cover this signature: it fires only when neither toggle appears
within its 10s bound.
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.

Small search UX: match provider IDs consistently in the existing model/provider filters

1 participant