Repository navigation
fix(app): offer Gateway sign-in models in the model picker - #7649
Merged
Merged
Conversation
Under live provider sync the server sync stops reporting Gateway providers, so #6719 made Settings list a member's pending sign-ins from Den instead. The model picker kept reading only the server sync's skips, so a member whose Vertex, Bedrock or Foundry sign-in lapsed saw no models from that provider and no way to sign in again. Settings and the picker now share one rule, resolvePendingGatewaySignIns, and one connected check, isPendingGatewaySignInConnected. Under live sync the picker's sign-in confirmation runs the store sync, since the legacy "manual" refresh is skipped in that mode and would never see the sign-in. Opening the picker also rereads Den's list, so a sign-in that lapses mid-session shows without a restart. Signed-off-by: Jalil <reachjalil@gmail.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this about?
The model picker now lists models from an AI Gateway provider that needs your own sign-in (Vertex, Bedrock or Foundry), marked "Sign-in required", as Settings › AI providers already does.
What problem does it solve?
When a member's sign-in lapsed, that provider's models vanished from the picker with nothing saying a sign-in was needed. A member whose only provider uses sign-in was left with no models and no way back.
What was the situation before?
Without live provider sync nothing changes.
How is this implemented?
resolvePendingGatewaySignInsandisPendingGatewaySignInConnectedincloud-provider-config.tshold the rule fix(app): list AI Gateway providers in Settings under live sync #6719 added to Settings;session-route.tsxnow uses them.runCloudProviderSync("manual"), as Settings does. The legacy"manual"refresh is skipped in that mode, so it never saw the sign-in.refreshLiveGatewaySignIns, which rereads Den's Gateway list only under live sync, so a sign-in that lapses mid-session shows without a restart.What else changed?
settings-route.tsxuses the same two helpers; no behavior change.Release note
If your own sign-in to an AI Gateway provider lapses, its models stay in the model picker as "Sign-in required" so you can sign in again from there.
Evidence
No E2E;
apps/app/tests/live-gateway-settings-providers.test.ts— before: under live sync the picker got no sign-in rows; after: a lapsed Vertex sign-in offers its models as "Sign-in required" and is confirmed from Den's list.Design: P4, S5