Skip to content

fix(app): offer Gateway sign-in models in the model picker - #7649

Merged
reachjalil merged 1 commit into
devfrom
fix/sign-in-models-in-model-picker
Nov 21, 2026
Merged

reachjalil merged 1 commit into
devfrom
fix/sign-in-models-in-model-picker

Conversation

@reachjalil

Copy link
Copy Markdown
Member

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?

Live provider sync Settings › AI providers Model picker
Before Sign-in row Nothing; a sign-in started from the picker was never confirmed
After Sign-in row "Sign-in required" models; the sign-in is confirmed from Den

Without live provider sync nothing changes.

How is this implemented?

  • resolvePendingGatewaySignIns and isPendingGatewaySignInConnected in cloud-provider-config.ts hold the rule fix(app): list AI Gateway providers in Settings under live sync #6719 added to Settings; session-route.tsx now uses them.
  • Under live sync the picker's sign-in confirmation runs runCloudProviderSync("manual"), as Settings does. The legacy "manual" refresh is skipped in that mode, so it never saw the sign-in.
  • Opening the picker calls the new store method 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.tsx uses 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

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>
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Nov 21, 2026 12:35am UTC
2 Skipped Deployments
Project Deployment Actions Updated
openwork-den Skipped Skipped Nov 21, 2026 12:35am UTC
openwork-landing Skipped Skipped v0 Nov 21, 2026 12:35am UTC

Request Review

@reachjalil
reachjalil merged commit 8e2480e into dev Nov 21, 2026
20 checks passed

This branch was successfully deployed

1 active and 2 inactive deployments
Preview – openwork-app — 3af030f4 Deployed Nov 21, 2026 by vercel[bot]
Preview – openwork-landing — 3af030f4 Deployed Nov 21, 2026 by vercel[bot]
Preview – openwork-den — 3af030f4 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant