Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(hcc): stop an unawaited startup gate from crashing the process [R3-grab]
Alfredo Lopez129d4ad0ac17
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex 30f2b4c6e..fbbf245c7 100644--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-host-context-controller",- "version": "0.1.204",+ "version": "0.1.205","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.204",+ "version": "0.1.205","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/image-policy": "file:../packages/image-policy",diff --git a/host-context-controller/package.json b/host-context-controller/package.jsonindex 1532bdf16..c4a5ea094 100644--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@ -1,6 +1,6 @@{"name": "clerum-host-context-controller",- "version": "0.1.204",+ "version": "0.1.205","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/host-context-controller/src/externalEgressConvergenceCoordinator.ts b/host-context-controller/src/externalEgressConvergenceCoordinator.tsindex 25d9df936..6f3aba598 100644--- a/host-context-controller/src/externalEgressConvergenceCoordinator.ts+++ b/host-context-controller/src/externalEgressConvergenceCoordinator.ts@@ -192,6 +192,17 @@ export class ExternalEgressConvergenceCoordinator {return ready}).then(result => result ?? false)+ // Side-attach a logger so a rejection is never *unhandled* (which crashes+ // the process on modern Node) if fullReconcile aborts before waitFor+ // awaits this gate. This does NOT swallow the failure: gates.set stores+ // the original `gate`, so the awaited path in fullReconcile still rejects+ // and fails the pass loudly — this only covers the unawaited case.+ gate.catch(error => {+ console.error(+ `[K8s] External egress startup gate for ${key} rejected before it was awaited:`,+ error+ )+ })gates.set(key, gate)}