Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: pass instance arg to all oauthConnect/oauthDisconnect calls (fixes build)

Louis Beaumont30e48a7d7f06
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
index b850c4b28..34f2076b3 100644
--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -1022,7 +1022,7 @@ function OAuthPanel({ integrationId, integrationName }: { integrationId: string;
const handleConnect = async () => {
setStatus("loading");
try {
- const res = await commands.oauthConnect(integrationId);
+ const res = await commands.oauthConnect(integrationId, null);
if (res.status === "ok" && res.data.connected) {
setStatus("connected");
await fetchStatus();
@@ -1035,7 +1035,7 @@ function OAuthPanel({ integrationId, integrationName }: { integrationId: string;
};
const handleDisconnect = async () => {
- await commands.oauthDisconnect(integrationId);
+ await commands.oauthDisconnect(integrationId, null);
setStatus("idle");
setDisplayName(null);
};
diff --git a/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx b/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx
index cbe34e180..f49d9f550 100644
--- a/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx
@@ -55,7 +55,7 @@ export function GmailCard() {
const handleConnect = async () => {
setIsConnecting(true);
try {
- const res = await commands.oauthConnect("gmail");
+ const res = await commands.oauthConnect("gmail", null);
if (res.status === "ok" && res.data.connected) {
posthog.capture("gmail_connected");
await fetchAccounts();
@@ -70,7 +70,7 @@ export function GmailCard() {
const key = instance ?? "__default__";
setDisconnecting(key);
try {
- await commands.oauthDisconnect("gmail", instance);
+ await commands.oauthDisconnect("gmail", instance ?? null);
posthog.capture("gmail_disconnected", { instance });
await fetchAccounts();
} catch (e) {