Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(mcp-host): check the caller signal before the 429 retry (#720)
Alfredo Lopez411a9d1ffc18
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 0d5c41119..55768918c 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.451",+ "version": "0.1.452","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.451",+ "version": "0.1.452","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 1a73f94db..6e0a406d8 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.451",+ "version": "0.1.452","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {diff --git a/mcp-host/src/llm/codexSubscription.ts b/mcp-host/src/llm/codexSubscription.tsindex 387615b1b..b2c014739 100644--- a/mcp-host/src/llm/codexSubscription.ts+++ b/mcp-host/src/llm/codexSubscription.ts@@ -671,6 +671,9 @@ export class CodexSubscriptionProvider implements SingleTurnProvider {: undefinedif (waitMs === undefined) throw errawait waitBeforeRetry(waitMs, options?.signal)+ // The wait stops watching the signal once its timer fires: an abort in+ // that gap must not reach a second authorize (G1-12).+ options?.signal?.throwIfAborted()return attempt(this.nextProviderAttemptIndex++)}}diff --git a/mcp-host/src/llm/grokSubscription.ts b/mcp-host/src/llm/grokSubscription.tsindex cca247a76..a22d66523 100644--- a/mcp-host/src/llm/grokSubscription.ts+++ b/mcp-host/src/llm/grokSubscription.ts@@ -520,6 +520,9 @@ export class GrokSubscriptionProvider implements SingleTurnProvider {: undefinedif (waitMs === undefined) throw errawait waitBeforeRetry(waitMs, options?.signal)+ // The wait stops watching the signal once its timer fires: an abort in+ // that gap must not reach a second authorize (G1-12).+ options?.signal?.throwIfAborted()return attempt(this.nextProviderAttemptIndex++)}}