open-agents-ai 0.138.91 → 0.138.92

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22868,8 +22868,12 @@ If you're stuck, try a completely different approach. Do NOT repeat what failed
22868
22868
  break;
22869
22869
  }
22870
22870
  }
22871
- messages.push({ role: "user", content: "[System: backend request failed, retrying on next turn. The previous request was lost.]" });
22872
- continue;
22871
+ this.emit({
22872
+ type: "error",
22873
+ content: `Backend unavailable \u2014 stopping task. Fix the issue and retry.`,
22874
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
22875
+ });
22876
+ break;
22873
22877
  }
22874
22878
  response = recovered;
22875
22879
  }
@@ -23407,8 +23411,8 @@ Integrate this guidance into your current approach. Continue working on the task
23407
23411
  const errMsg2 = reqErr instanceof Error ? reqErr.message : String(reqErr);
23408
23412
  const cause2 = reqErr instanceof Error && reqErr.cause ? ` (${reqErr.cause.message ?? ""} ${reqErr.cause?.code ?? ""})` : "";
23409
23413
  this.emit({ type: "error", content: `Backend error: ${errMsg2}${cause2}`, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
23410
- messages.push({ role: "user", content: "[System: backend request failed, retrying on next turn. The previous request was lost.]" });
23411
- continue;
23414
+ this.emit({ type: "error", content: `Backend unavailable \u2014 stopping task.`, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
23415
+ break;
23412
23416
  }
23413
23417
  response = recovered;
23414
23418
  }
@@ -24717,6 +24721,8 @@ ${transcript}`
24717
24721
  if (err instanceof Error && err.fatal)
24718
24722
  return false;
24719
24723
  const msg = err instanceof Error ? err.message : String(err);
24724
+ if (/HTTP 429|429 Too Many|rate.?limit|too many requests/i.test(msg))
24725
+ return true;
24720
24726
  if (/Backend HTTP (502|503|504)/i.test(msg))
24721
24727
  return true;
24722
24728
  if (/fetch failed|ECONNREFUSED|ECONNRESET|ETIMEDOUT|EPIPE|socket hang up/i.test(msg))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.91",
3
+ "version": "0.138.92",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",