Q100: reconnecting keeps the working connector account until the new one is authorized

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 16:32:46 -04:00
1 parent 6f8731cbac
commit 736c45c0ee
9 files changed
+194 -30

No files matched your search

+1
View File
@@ -382,6 +382,7 @@ export const zh: Record<string, string> = {
"Recent messages": "最近消息",
"Recently decided": "最近已决",
"Reconnect": "重新连接",
"Reconnect waiting for authorization": "重新连接等待授权",
"Refresh models": "刷新模型",
"Region": "区域",
"Rejected": "已驳回",
@@ -61,6 +61,7 @@ export function ConnectedList({
/>
<span style={{ fontWeight: 600, fontSize: 13.5 }}>{account.toolkitName}</span>
<Pill tone={STATUS_TONE[account.status]} dot>{account.status.charAt(0) + account.status.slice(1).toLowerCase()}</Pill>
{account.pendingAccountId && <Pill tone="amber" dot>{t("Reconnect waiting for authorization")}</Pill>}
<span className="row" style={{ gap: 6, marginLeft: "auto" }}>
<Button size="small" disabled={busy} onClick={() => onReconnect(account.toolkitSlug)}>
{busySlug === account.toolkitSlug && busyAction === "connect" ? t("Opening…") : t("Reconnect")}
@@ -83,7 +83,7 @@ export function useConnectorCatalog(orgId: string, actions: SnapshotActions): {
const account = data?.connectorAccounts.find(
(item) => item.orgId === orgId && item.toolkitSlug === toolkitSlug,
);
if (account?.status === "ACTIVE") return;
if (account?.status === "ACTIVE" && !account.pendingAccountId) return;
poll(attempt + 1);
});
}, CONNECT_POLL_INTERVAL_MS);