Repository navigation
Connect another account at an app from the conversation - #2213
Merged
Merged
Conversation
Asked "Can I connect you to my personal email as well?" by somebody whose work Gmail was connected, a Bot could only show Gmail's own card, which read "Gmail is ready now", and how-to steps. The job looked done, and the steps sent them to Connections. - A card for one more account at an app: the same card and the same press as Connections' Connect another account, in a new tab. Once the new account is listed it says which account Bots use and offers Make default. Drawn from show_app_access's answer behind a marker of its own (shared/connect-prompt.ts), so a front end that doesn't know it draws only the step's line, never "ready now". - An app card says "is ready now" only for an app that wasn't ready when the Bot asked, or that the card saw out of reach. A card about an app ready all along says what is true of it.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 25, 2026 22:09
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 a person saw
Somebody whose work Gmail was connected asked their Bot "Can I connect you to my personal email as well?". The Bot showed:
OpenBot can already hold more than one account per app (Connections, the app, Connect another account). From the conversation, though, the Bot could only describe how to do it.
What changes
connectAnotherAccountMutationOptions), with the sign-in opening in a new tab claimed on the click (useConnectInNewTab({ another: true })). Once the new account is listed, the card says which account Bots use. Where the new account isn't the default, it offers Make default, the same press as on the app's page. After a reload it says the same thing and doesn't offer a second sign-in.ANOTHER_ACCOUNT_MARKERinshared/connect-prompt.ts) and is not a newConnectReason. An older front end reads an unknown reason asconnectand would draw "Gmail is ready now" over the question. A marker it doesn't know gets only the step's line.There's no API change: the press uses
connectApp's existinganotherAccount.Tests
app/tests/app-access-card.test.tsx: new regression test, "show_app_access about an app ready all along never says it is ready now". It fails on main withReceived: "GmailGmail is ready now."and passes with this change.app/tests/another-account-card.test.tsx: drawn from the transcript, one card, never the app's own card. The press sends{ returnTo: "connections", anotherAccount: true }and opens the sign-in. Once the second account is listed the card says which account Bots use, and Make default makes the new one the default. Drawn again later, it offers no second sign-in. An older reader doesn't read the answer as an app card.app/tests/another-account-layout.test.tsx: drives the card in a real browser (Chromium and WebKit, light and dark, 1000 px and 390 px) using the app's stylesheet. It checks that the tab is claimed on the click, the press, the connected sentence and Make default, and that the button fits inside the card.