Skip to content

Disconnect on the page of an app OpenBot signs you in to - #2884

Merged
davidmckayv merged 2 commits into
mainfrom
fix/disconnect-sign-in-apps
Dec 3, 2026
Merged

davidmckayv merged 2 commits into
mainfrom
fix/disconnect-sign-in-apps

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • one for apps from the directory (Google Sheets), which has Connect, Reconnect, Connect another account and Disconnect;
  • one for apps OpenBot signs the person in to itself, which had Connect and Reconnect only. A comment on the page said this kind "is withdrawn at the vendor and this page offers no button".

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.

  • Where the app couldn't be asked to end the access (no revocation endpoint, or no answer), the row says so and names the one step left, with the sentence the person's own page uses: "Disconnected. No Bot can use your Fireflies.ai account now. To remove OpenBot from it too, use your Fireflies.ai account's third-party access settings."
  • A sign-in the vendor withdrew shows Disconnect next to Reconnect.
  • A refusal shows in the page's banner, and the row stays Connected.
  • Connect another account is not offered here. The server reports these sign-ins as one account per person (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.ts so both pages share it. It is still exported from the route for the existing test.

Where it runs

  • New state that outlives a request? None. The browser calls an existing endpoint.
  • What happens on the second replica? Nothing new. Disconnect is the existing disconnectApp write, which is idempotent.
  • Anything serialised? No new serialisation. The server already serialises the disconnect with token refresh for this person and app.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • No acting call changes. Disconnect goes through the existing route, which writes its own audit row.
  • No new refusals. The existing refusal is shown in the page's banner.
  • Nothing new trusted from the client.

API and database

  • Nothing under api/ changes, and there's no database change and no release-policy.json change. The app's page now calls disconnectApp, 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.

  • Disconnect on every app's page. An app OpenBot signs you in to itself, like an MCP server added by its address that signs each person in (Fireflies.ai, Linear) or Notion, now has Disconnect under Your account on its page, as directory apps do. It ends your own account and the row goes back to Connect. Before, the only control was the app's switch, which turns it off for every Bot.

Proof

Red, then green. app/tests/sign-in-app-page-disconnect.test.tsx draws 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.

  • On 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.
  • On this branch: 8 pass, 0 fail.

In a real browser, Chromium and WebKit. app/tests/sign-in-app-disconnect-layout.test.tsx (with OPENBOT_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 was POST …/people/me/connections/fireflies/disconnect. It also covers the not-asked sentence (never clipped) and that nothing runs off the side.

  • On main: 0 pass, 16 fail (no Disconnect on Fireflies).
  • On this branch: 16 pass, 0 fail.

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:

  1. adds the app,
  2. presses Connect on its page and Allow on the app's own consent page,
  3. comes back reading Connected and expects Disconnect under the row,
  4. presses Disconnect.

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) This branch, connected (WebKit)
e2e-before e2e-after
This branch, after Disconnect (Chromium) After a reload (Chromium)
e2e-disconnected e2e-reload

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)

Before (main) After
before after

Beside Google Sheets: the same control in the same place (WebKit, light)

Google Sheets Fireflies.ai
sheets fireflies

After Disconnect, and where the app couldn't be asked to end it (WebKit dark, Chromium light)

Disconnected Not asked at the app
disconnected not-asked

Phone width (WebKit, light): before, after, disconnected

before-phone after-phone disconnected-phone

Every screenshot (2 engines x 2 themes x 2 widths)

The images are on the pr-assets/disconnect-sign-in-apps branch, which holds nothing else. Delete it after merge.

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
davidmckayv marked this pull request as ready for review December 3, 2026 18:37
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 79edd00 Dec 3, 2026
40 checks passed
@davidmckayv
davidmckayv deleted the fix/disconnect-sign-in-apps branch December 3, 2026 18:53
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