#8174: feat(wizard): strict model filtering for preferred providers
commands
stale
Cluster:
Wizard Enhancements and Config Fixes
Automatically filters the model list when a provider is known (e.g. via Google Antigravity auth), reducing noise for users who only have specific provider integrations.
AI Assisted; lightly tested.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adjusts the `/model` wizard’s default-model picker to more aggressively filter the model catalog when a `preferredProvider` is known, with the goal of reducing noise by narrowing the selection list up front.
The implementation adds a `shouldAutoFilter` gate and tweaks provider-prompt behavior, then applies provider filtering when a preferred provider is present. This sits in `promptDefaultModel`, after allowlist filtering and before building the wizard select options.
<h3>Confidence Score: 4/5</h3>
- Mostly safe to merge; behavior change is localized but has a user-facing edge case around provider prompting.
- Changes are confined to `promptDefaultModel` and primarily affect filtering/prompting logic. The main concern is a specific control-flow case where a non-existent preferred provider suppresses the provider filter prompt, which could regress UX for some users. No obvious runtime/type errors spotted in the diff.
- src/commands/model-picker.ts (provider prompt suppression logic)
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#7020: feat: add search/filter to model selection in configure wizard
by GuoxiangZu · 2026-02-02
82.4%
#22569: [Feature] add provider wizard
by antonidasyang · 2026-02-21
78.6%
#6440: feat(ui): add model picker dialog with provider filtering
by igorls · 2026-02-01
78.5%
#9739: #9291 fix(models): preserve existing models in models.json when mer...
by ximzzzzz · 2026-02-05
78.2%
#21882: feat(gateway): filter models.list by agents.defaults.models allowlist
by kckylechen1 · 2026-02-20
77.1%
#16741: feat(wizard): add searchable select for model picker
by zzztimbo · 2026-02-15
75.7%
#20965: feat: Add comprehensive model configuration and discovery for various…
by rodeok · 2026-02-19
75.3%
#9583: fix(models): allow models in agents.defaults.models even if not in ...
by hotzen100 · 2026-02-05
75.1%
#7570: fix: allow models from providers with auth profiles configured
by DonSqualo · 2026-02-03
74.9%
#7113: feat(providers): add CommonStack provider support
by flhoildy · 2026-02-02
74.7%