Connected connectors can be deleted and reconnected; mirror sweeps stale rows and ops serialize per org

This commit is contained in:
ZacharyZhang-NY committed 2026-07-07 12:09:31 -04:00
1 parent eb16baff50
commit 38bd3588e7
11 files changed
+187 -33

No files matched your search

+9
View File
@@ -342,6 +342,15 @@ export function registerIpcHandlers(deps: IpcDeps): void {
return fail("composio_connect_failed", error instanceof Error ? error.message : String(error));
}
});
ipcMain.handle(IPC_CHANNELS.disconnectComposioToolkit, async (_event, input) => {
try {
await composioConnections.disconnectToolkit(input.orgId, input.toolkitSlug);
notifyDataChanged();
return ok(snapshot.load());
} catch (error) {
return fail("composio_disconnect_failed", error instanceof Error ? error.message : String(error));
}
});
ipcMain.handle(IPC_CHANNELS.refreshComposioAccounts, async (_event, input) => {
try {
await composioConnections.refreshAccounts(input.orgId);