Q56: disconnecting a provider stops the sessions using it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 10:02:46 -04:00
1 parent 9e1f8da11c
commit d72333a04c
5 files changed
+46 -17

No files matched your search

@@ -1,5 +1,5 @@
import { net } from "electron";
import { currentRunSignal, RUN_STOPPED_MESSAGE } from "../run-control";
import { currentRunSignal, RUN_STOPPED_MESSAGE, runStopReason } from "../run-control";
const BASE_URL = "https://backend.composio.dev/api/v3";
@@ -156,12 +156,12 @@ export class ComposioClient {
const request = net.request({ method, url });
const runSignal = currentRunSignal();
if (runSignal?.aborted) {
reject(new Error(RUN_STOPPED_MESSAGE));
reject(new Error(runStopReason() ?? RUN_STOPPED_MESSAGE));
return;
}
runSignal?.addEventListener("abort", () => {
request.abort();
reject(new Error(RUN_STOPPED_MESSAGE));
reject(new Error(runStopReason() ?? RUN_STOPPED_MESSAGE));
}, { once: true });
request.setHeader("x-api-key", this.apiKey);
request.setHeader("Accept", "application/json");