diff --git a/ts/packages/agents/powershell/src/actionHandler.mts b/ts/packages/agents/powershell/src/actionHandler.mts index 4e09d0ca9..79d6c0605 100644 --- a/ts/packages/agents/powershell/src/actionHandler.mts +++ b/ts/packages/agents/powershell/src/actionHandler.mts @@ -932,7 +932,6 @@ async function handlePowerShellFlowAction( try { context.abortSignal?.throwIfAborted(); await context.sessionContext.reloadAgentSchema(); - context.abortSignal?.throwIfAborted(); } catch (error) { await flowStore.deleteFlow(newActionName); throw error; @@ -1299,7 +1298,6 @@ async function handlePowerShellFlowAction( try { context.abortSignal?.throwIfAborted(); await context.sessionContext.reloadAgentSchema(); - context.abortSignal?.throwIfAborted(); } catch (error) { await flowStore.deleteFlow(recipe.actionName); throw error;