mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix(zed-integration): Correctly handle cancellation errors (#13399)
This commit is contained in:
@@ -318,6 +318,13 @@ class Session {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
pendingSend.signal.aborted ||
|
||||
(error instanceof Error && error.name === 'AbortError')
|
||||
) {
|
||||
return { stopReason: 'cancelled' };
|
||||
}
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user