From 3b09296291c64a887eea4179cc34eb330c9951f4 Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Fri, 8 May 2026 13:16:59 +0530 Subject: [PATCH] fix: route Google reconnect through rowboat flow when signed in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Reconnect button on the Google account row always opened the BYOK client-ID modal, even for users signed into Rowboat — who should get the managed-credentials browser flow instead. The non-reconnect Connect button already branched correctly via useConnectors.handleConnect; the reconnect path bypassed it. Adds a handleReconnect helper that mirrors the same branching, and routes both call sites (popover and settings) through it. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/connectors-popover.tsx | 11 +--------- .../settings/connected-accounts-settings.tsx | 11 +--------- .../apps/renderer/src/hooks/useConnectors.ts | 20 +++++++++++++++++++ 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/apps/x/apps/renderer/src/components/connectors-popover.tsx b/apps/x/apps/renderer/src/components/connectors-popover.tsx index 92b13a48..eb15026e 100644 --- a/apps/x/apps/renderer/src/components/connectors-popover.tsx +++ b/apps/x/apps/renderer/src/components/connectors-popover.tsx @@ -79,16 +79,7 @@ export function ConnectorsPopover({ children, tooltip, open: openProp, onOpenCha