fix(zed-integration): Correctly handle cancellation errors (#13399)

This commit is contained in:
Ben Brandt
2025-11-19 17:25:52 +00:00
committed by GitHub
parent e1c711f5ba
commit 300205b07c

View File

@@ -318,6 +318,13 @@ class Session {
);
}
if (
pendingSend.signal.aborted ||
(error instanceof Error && error.name === 'AbortError')
) {
return { stopReason: 'cancelled' };
}
throw error;
}