Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-api): republish the allowlist when a manual refresh marks the row (#753)
Alfredo Lopez575d5aa407fc
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex 8fa990243..e21fcf1e4 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.609",+ "version": "0.1.610","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.609",+ "version": "0.1.610","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",diff --git a/control-api/package.json b/control-api/package.jsonindex 6b17fc92c..7e01ada66 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.609",+ "version": "0.1.610","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/src/routes/admin/codexSubscription.ts b/control-api/src/routes/admin/codexSubscription.tsindex 077d43950..06e699ac7 100644--- a/control-api/src/routes/admin/codexSubscription.ts+++ b/control-api/src/routes/admin/codexSubscription.ts@@ -679,6 +679,15 @@ export function createAdminCodexSubscriptionRouter(if (await publishRuntimeAllowlistOrFail(res)) returnres.status(200).json(connection)} catch (err) {+ // A rejected refresh token moves the row to `reauth_required` and only+ // then throws. mcp-host and HCC read the ConfigMap, not Postgres, so the+ // publish comes before the error response, as on the catalog-sync route.+ if (+ (err instanceof CodexSubscriptionOAuthError || err instanceof GrokSubscriptionOAuthError) &&+ err.persistedConnectionStatus+ ) {+ if (await publishRuntimeAllowlistOrFail(res)) return+ }sendOAuthError(res, err)}})