Skip to content

Apps says Reconnect for an app account the vendor lost - #2895

Open
davidmckayv wants to merge 1 commit into
mainfrom
fix/expired-reconnect
Open

davidmckayv wants to merge 1 commit into
mainfrom
fix/expired-reconnect

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

Reported in dogfooding on Desktop 1.2.9. A Bot's Google Sheets call failed because the Google account had expired at the app. Apps went on saying Connected for Google Sheets, while the conversation showed the Reconnect card.

The connections API (listConnections) answers revoked: true for a connection whose app account is expired or gone at the vendor. That includes a brokered app's connection (Composio, Arcade). personalRow in app/src/lib/plugins/queries.ts kept revoked only on a row with no check (a sign-in OpenBot keeps itself). It dropped revoked on a brokered row, so the Apps tile, the app's page and every reader that asks whether a connection is usable read the expired account as connected.

What changed

personalRow now carries revoked on every row, beside what the row's last check found. There's no visual change: the existing Reconnect tile, the app page's Reconnect, and the existing revoked !== true checks (connect-return, directory state, the connect card, moved apps) now see the expired account.

Proof

  • Regression, red on main, green here: app/tests/connection-rows.test.ts, "a brokered app whose account the vendor lost asks to be reconnected". It feeds the connections API's own answer for the expired Google Sheets account (revoked: true with a check) through personalRow, personalConnections, needsReconnecting and connectionRows, as the Apps page does. With main's personalRow the tile is connected. Here it is needs_reconnect, and the working Gmail beside it stays connected.
  • 74 app test files pass. Format, lint and typecheck are clean.

Chrome and Safari

Run end to end on a fresh stack in Chromium and WebKit (Safari's engine). A stock AG-UI agent calls Google Sheets on an account the Composio stand-in has marked EXPIRED, and the conversation draws the Reconnect card. With main's web app, the Apps tile then said Connected, even though the connections API answered revoked: true. With this branch it says Needs attention · Reconnect, and after Reconnect's sign-in it says Connected again. The layout, spacing and copy are the existing tile's, unchanged.

Before (main) After
Chromium, Apps before-chromium-apps after-chromium-apps
WebKit, Apps before-webkit-apps after-webkit-apps
The card in the conversation after-chromium-card
After Reconnect after-chromium-reconnected after-webkit-reconnected

Changelog

Apps.

  • An app whose account expired or was revoked at the app now shows Needs attention and Reconnect on Apps and on its own page, instead of Connected.

The connections API marks a brokered connection revoked when the app's
account behind it is expired or gone at the vendor. personalRow kept
revoked only on a held row and dropped it on a brokered one, so Apps read
Connected over an account the vendor called EXPIRED, with the Reconnect card
in the conversation beside it (reported in dogfooding on Desktop 1.2.9).

Every row now carries revoked, so the existing Reconnect tile, the app's
page and every reader that asks whether a connection is usable see it.
@davidmckayv
davidmckayv marked this pull request as ready for review December 3, 2026 20:55
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 3, 2026

This branch has not been deployed

No deployments
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