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:
co-authored by
Serhii Dziupin
parent
abb396e080
commit
35f17e9e96
@@ -90,11 +90,8 @@ describe('issue 2607 — walkthrough blocks unauthenticated providers', () => {
|
||||
|
||||
expect(result.readiness.ready).toBe(false);
|
||||
expect(result.readiness.reason).toBe('no-provider-login');
|
||||
expect(result.readiness.model).toMatchObject({
|
||||
providerID: 'deepseek',
|
||||
modelID: 'deepseek-v4-flash',
|
||||
hasLogin: false,
|
||||
});
|
||||
// Unusable models must not be offered as the current selection.
|
||||
expect(result.readiness.model).toBeUndefined();
|
||||
});
|
||||
|
||||
it('callSmallModel throws a structured no-provider-login error', async () => {
|
||||
|
||||
Reference in New Issue
Block a user