Repository navigation
Disconnect on the page of an app OpenBot signs you in to - #2884
Merged
Merged
Conversation
On OpenBot Desktop, Fireflies.ai (added as its own MCP server, which signs each person in) read "Connected" under "Your account" with nothing to press. Google Sheets, from the directory, has Disconnect on the same row. The only control on the page was the app's switch, which turns it off for every Bot, so a person couldn't take their own account back. The app's page draws two account rows: one for directory apps, with Disconnect, and one for apps OpenBot signs the person in to itself (a server added by its address that signs people in, and catalogue apps such as Notion), which had none. That second row now has the same Disconnect, in the same place, in both editions. It makes the write the person's own Connections page already makes (disconnectApp), and the row goes back to Connect. Where the app couldn't be asked to end the access, the row says where to finish it, as that page does. A sign-in the vendor withdrew offers Disconnect beside Reconnect. The server already ends this kind of connection; no API change.
davidmckayv
marked this pull request as ready for review
December 3, 2026 18:37
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 18:37
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 this changes
Reported on OpenBot Desktop 1.2.9: Fireflies.ai's page under Apps said "Connected" under Your account, with nothing to press. Google Sheets, on the same layout, has Connect another account and Disconnect under that row. The only control on the Fireflies page was its On switch, which turns the app off for every Bot. So a person couldn't disconnect their own Fireflies account.
Why. Fireflies was added as its own MCP server, which signs each person in with OAuth. The app's page draws two different "Your account" rows:
The second row draws every app of that kind, not just Fireflies: any MCP server added by its address that signs people in (Linear, Sanity, Fireflies), and catalogue apps such as Notion. It is the app's page in both editions: the whole page on OpenBot Desktop, and the admin's page in the team edition. The person's own app page in the team edition already had Disconnect for these apps (in its Connected menu), and the server already ends this kind of connection, so only this one row was missing it.
The fix. That row now has the same Disconnect button in the same place as the directory row, on its own line under the sentence. It makes the call the person's own page already makes (
disconnectApp). The server asks the app to end the grant where it can, then forgets the sign-in, and the row goes back to Connect.canAddAccount: false), and the directory row only shows that button when the server allows it. The rule is the same for both rows.The sentence moved to
app/src/lib/connections/disconnected-here.tsso both pages share it. It is still exported from the route for the existing test.Where it runs
disconnectAppwrite, which is idempotent.Boundary and audit
API and database
api/changes, and there's no database change and norelease-policy.jsonchange. The app's page now callsdisconnectApp, an existing operation the person's own page already uses for these apps. Servers from 1.2.9 on end this kind of connection.Changelog
Apps.
Proof
Red, then green.
app/tests/sign-in-app-page-disconnect.test.tsxdraws the real page against the API's own shapes, for Fireflies.ai (a server added by its address that signs people in) and Notion (catalogue), in both editions. It covers: Disconnect ends the account and the row goes back to Connect, the not-asked sentence, a refusal, a withdrawn sign-in, and no Disconnect when not connected.main(0384d8c0b), with only the test added: 1 pass, 7 fail. Every connected case fails with "Unable to find role=button name=Disconnect"; the row reads "Connected. Your Bots use your Fireflies.ai as you." and has nothing under it.In a real browser, Chromium and WebKit.
app/tests/sign-in-app-disconnect-layout.test.tsx(withOPENBOT_APP_BROWSER=1 OPENBOT_APP_ENGINES=chromium,webkit) opens Google Sheets' page and then Fireflies.ai's, in light and dark, at desktop and phone width. It measures the two Disconnect buttons: they must be in the row's footer, start at the same place, and have the same height, font size and radius. Then it presses Disconnect and checks that Connect comes back and the one write wasPOST …/people/me/connections/fireflies/disconnect. It also covers the not-asked sentence (never clipped) and that nothing runs off the side.main: 0 pass, 16 fail (no Disconnect on Fireflies).Also passing: the related page tests (
own-sign-in-app-disconnect,sign-in-reconnect-one-press,personal-app-page,personal-app-page-wording,admin-apps-sign-in-first,one-press-connect-everywhere,key-version,brokered-connection-card,team-grants-app-row,bot-owner-lists,every-bot-app-switch,personal-says-openbot: 107 pass), the copy guards (no-*-in-user-copy,plain-setup-words,no-retired-page-names,ui-look-guard),tsc --noEmit, and biome format and lint.End to end on the real stack, Chromium and WebKit. This ran on a throwaway Linux box with the real product: the server, database and backend, in the personal edition as OpenBot Desktop runs it. The app is a real MCP server that signs each person in with OAuth (RFC 9728 discovery, dynamic client registration, PKCE, revocation), added by its address the way Fireflies is. The journey:
After that it checks:
the row reads Connect again;
the person's connections no longer list the app;
the app's server was asked to revoke the grant;
a reload still reads Connect.
Against
main(0384d8c0b): failed in both browsers at "Disconnect is visible". The real sign-in succeeded and the row read "Connected. Your Bots use your Fireflies.ai as you." with nothing to press, as reported.Against this branch: passed in both browsers.
main, connected (WebKit)More from that run: main, Chromium, connected, Chromium, disconnected, WebKit, after reload, WebKit, the app's consent page.
Fireflies.ai on OpenBot Desktop's Apps page, before and after (Chromium, light, desktop width)
main)Beside Google Sheets: the same control in the same place (WebKit, light)
After Disconnect, and where the app couldn't be asked to end it (WebKit dark, Chromium light)
Phone width (WebKit, light): before, after, disconnected
Every screenshot (2 engines x 2 themes x 2 widths)
The images are on the
pr-assets/disconnect-sign-in-appsbranch, which holds nothing else. Delete it after merge.