diff --git a/src/templates/runner.ts b/src/templates/runner.ts index bf00ab9..85f4c87 100644 --- a/src/templates/runner.ts +++ b/src/templates/runner.ts @@ -73,6 +73,10 @@ export const commandHandler = async (template: Command) => { await send(userMessage, systemMessage, template); } catch (error) { + // The request can be intentionally closed by clicking the "abort" button. + // We don't need to surface this error to the user, because they already know that it happened. + if (String(error).includes("The operation was aborted")) return; + displayWarning(String(error)); } };