@standardagents/builder 0.25.5 → 0.25.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2397,8 +2397,11 @@ var init_LLMRequest = __esm({
2397
2397
  */
2398
2398
  static async logError(state, error, errorType, modelId, startTime, existingLogId) {
2399
2399
  try {
2400
- const rawErrorMessage = error instanceof Error ? error.message : String(error);
2400
+ let rawErrorMessage = error instanceof Error ? error.message : String(error);
2401
2401
  const errorStack = error instanceof Error ? error.stack : void 0;
2402
+ if (error instanceof Error && error.name === "AbortError" && /operation was aborted/i.test(rawErrorMessage)) {
2403
+ rawErrorMessage = state.abortController?.signal?.aborted ? "Aborted: the execution this request belonged to was cancelled (user stop, watchdog takeover, or a restart) \u2014 retries and fallbacks of a cancelled execution fail immediately." : "Aborted: the request's connection was cancelled mid-flight (provider disconnect or executor restart).";
2404
+ }
2402
2405
  let errorMessage = rawErrorMessage;
2403
2406
  let parsedProviderBody = null;
2404
2407
  const trimmedRaw = rawErrorMessage.trim();