fix(walkthrough): hide unauthenticated models and disable Generate

Do not present a provider without a login as the selected walkthrough
model, and grey out Generate when readiness is false instead of showing
a login-error blocker or raw auth banner.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-04 12:22:54 +00:00
co-authored by Serhii Dziupin
parent abb396e080
commit 35f17e9e96
17 changed files with 49 additions and 60 deletions
+3 -2
View File
@@ -334,9 +334,10 @@ function computeReadiness({ model, digest, files, fileCount, hunkCount, generate
}
// A resolved override/config model can still have no usable login. Refuse up
// front so the panel does not look ready and then dump a raw auth error.
// front and omit the model — offering an unauthenticated selection in the
// picker is what made the old raw auth error feel like a product bug.
if (model.hasLogin === false) {
return { ready: false, reason: 'no-provider-login', model };
return { ready: false, reason: 'no-provider-login' };
}
// Built with the same language the generation would use: the instruction is