Skip to content

Show provider guidance in the model picker on a cold install - #116

Merged
badcuban merged 1 commit into
mainfrom
fix/model-picker-cold-state
Aug 7, 2026
Merged

Show provider guidance in the model picker on a cold install#116
badcuban merged 1 commit into
mainfrom
fix/model-picker-cold-state

Conversation

@badcuban

@badcuban badcuban commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #114, caught by screenshot verification of the live app rather than by the test suite.

The gap

On a genuinely cold machine (Codex signed out, Claude not installed — every fresh install's starting state) the model picker renders no provider tabs at all, so Favorites is the only tab it can open on. The empty-state resolver's favorites branch returned the bare "No favorite models" before the all-providers-unavailable branch could fire — so the most important state showed the least helpful text, despite both #114 features working as unit-tested in isolation.

The fix

Reorder resolveModelPickerEmptyState: when every enabled provider is unusable, the per-provider status lines ("Codex · Not authenticated", "Claude · Not found") and the "Open Settings" action win regardless of the active tab. "No favorite models" still shows when at least one provider is usable.

Testing

  • vp fmt, vp lint, vp run typecheck green.
  • modelPickerSearch.test.ts: 14 pass; the previous favorites-tab test now covers the usable-provider case, and a new case pins the cold-install behavior.
  • Browser suite ProviderModelPicker: 33 pass.

Screenshot verification of the merged empty-state work caught a live gap:
on a machine where no provider is usable (Codex signed out, Claude not
installed) the picker has no provider tabs at all, so it can only open on
Favorites, and the favorites branch of the empty-state resolver returned
the bare "No favorite models" before the all-providers-unavailable
guidance could fire. Reorder the resolver so that when every enabled
provider is unusable the per-provider status lines and the Open Settings
action win regardless of the active tab.
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
threadlines Skipped Skipped Aug 7, 2026 3:02am

Request Review

@github-actions github-actions Bot added size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Aug 7, 2026
@badcuban
badcuban merged commit dfc6659 into main Aug 7, 2026
17 of 18 checks passed
@badcuban
badcuban deleted the fix/model-picker-cold-state branch August 7, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant