Skip to content

fix(desktop): onboarding defaults — API key field and model search#2081

Merged
wesbillman merged 2 commits into
mainfrom
brain/onboarding-provider-visibility
Jul 18, 2026
Merged

fix(desktop): onboarding defaults — API key field and model search#2081
wesbillman merged 2 commits into
mainfrom
brain/onboarding-provider-visibility

Conversation

@wesbillman

@wesbillman wesbillman commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Why

Follow-up to #2079, which restored the provider dropdown in the onboarding default-config step. Two gaps remained:

  1. Selecting a credential-backed provider (Anthropic/OpenAI/OpenAI-compat) gave the user no way to enter the API key during onboarding — the field was gated behind showAdvancedFields, which onboarding sets to false. A fresh user could pick a provider but finish onboarding with a non-working default.
  2. The model dropdown lost typeahead search when feat(desktop): polish onboarding harness #2039 replaced the persona combobox with the custom AgentDropdownSelect — long discovery lists (e.g. Databricks) had to be scrolled manually.

What

  • Show PersonaProviderApiKeyField whenever the provider field is visible and the selected provider requires a secret (previously also required showAdvancedFields)
  • Remove the now-unused hideUnconfiguredCredentialProviders prop and its filter machinery left behind by fix(desktop): restore onboarding provider choices #2079
  • Add an inline search filter to AgentDropdownSelect, enabled for the model field, matching the persona dialog combobox behavior (feat(desktop): add typeahead search to persona model dropdown #1542)
  • Update/add e2e coverage: key field appears after selecting Anthropic; model search filters, shows "No matches", and selects

Testing

  • pnpm --dir desktop run typecheck
  • pnpm --dir desktop exec biome check on touched files
  • pnpm exec playwright test --project=smoke tests/e2e/onboarding-agent-defaults.spec.ts — 31 passed

Follow-up to #2079, which restored the provider dropdown in the
onboarding default-config step. Selecting a credential-backed provider
(Anthropic/OpenAI) still gave no way to enter the API key: the field
was gated behind showAdvancedFields, which onboarding sets to false.

Show the API key field whenever the provider field is visible and the
selected provider requires a secret, and remove the now-unused
hideUnconfiguredCredentialProviders machinery left behind by #2079.

Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman
wesbillman requested a review from a team as a code owner July 18, 2026 18:24
The onboarding model list can run long (Databricks discovery returns
dozens of models) and the custom dropdown from #2039 dropped the
typeahead search the persona dialog combobox already has. Add an
inline filter input to AgentDropdownSelect, enabled for the model
field, matching the persona combobox behavior.

Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman wesbillman changed the title fix(desktop): show provider API key field in onboarding defaults fix(desktop): onboarding defaults — API key field and model search Jul 18, 2026
@wesbillman
wesbillman enabled auto-merge (squash) July 18, 2026 18:36
@wesbillman
wesbillman merged commit 741610f into main Jul 18, 2026
25 checks passed
@wesbillman
wesbillman deleted the brain/onboarding-provider-visibility branch July 18, 2026 18:44
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.

2 participants