The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(inference): do not claim an unset route reaches the managed backend\n\nReview follow-up on #6120. Both my new frontend message and my doc comment\nsaid an unset route "stays on the managed backend". That over-claims:\n`resolve_primary_cloud_provider_string` gives a legacy external\n`inference_url` precedence when `primary_cloud` is still OpenHuman, and\nreturns a fail-closed sentinel for a half-migrated BYOK config. So an unset\nroute resolves *through* `primary_cloud` — usually, but not always, the\nmanaged backend.\n\nThe guarantee #6109 actually establishes is narrower and worth stating\nexactly: an unset route does not borrow a **sibling's** configured provider.\nWhere it does land is `primary_cloud`'s business and unchanged by this PR.\n\nCodeRabbit flagged the frontend string; the same over-claim was in the\n`provider_for_role` doc, which is the more load-bearing of the two, so both\nare corrected.\n
M3gA-Mind99bfef74a094
diff --git a/app/src/services/api/aiSettingsApi.ts b/app/src/services/api/aiSettingsApi.tsindex e9dabffcd2..6c052802e9 100644--- a/app/src/services/api/aiSettingsApi.ts+++ b/app/src/services/api/aiSettingsApi.ts@@ -315,10 +315,12 @@ export async function loadAISettings(): Promise<AISettings> {// Diagnostic: detect partial BYOK routing — some workloads have a BYOK cloud// provider configured while others are left at default/openhuman. Each route- // is independent (#6109): an unset workload stays on the managed backend and- // does NOT pick up a sibling's BYOK provider. This log makes the split state- // easy to trace from the frontend side, which is the common source of "why is- // this workload not using my key?".+ // is independent (#6109): an unset workload does NOT pick up a sibling's BYOK+ // provider. It resolves through `primary_cloud` instead — usually the managed+ // backend, though a legacy external `inference_url` still takes precedence+ // there, so this deliberately does not claim where it lands. This log makes+ // the split state easy to trace from the frontend side, which is the common+ // source of "why is this workload not using my key?".const byokProvider = (['chat', 'reasoning', 'agentic', 'coding'] as const).find(w => {const ref_ = routing[w];return ref_.kind === 'cloud';@@ -333,7 +335,7 @@ export async function loadAISettings(): Promise<AISettings> {console.debug('[ai-settings] partial BYOK routing detected — ' +byokSlug +- ' is configured for one workload; the unset chat-tier workloads stay on the managed backend'+ ' is configured for one workload; the unset chat-tier workloads do not inherit it');}diff --git a/src/openhuman/inference/provider/factory_part_01.rs b/src/openhuman/inference/provider/factory_part_01.rsindex d47b69da54..592120d1f2 100644--- a/src/openhuman/inference/provider/factory_part_01.rs+++ b/src/openhuman/inference/provider/factory_part_01.rs@@ -327,9 +327,14 @@ pub(crate) fn role_uses_implicit_cloud_fallback(role: &str, config: &Config) ->/// Return the configured provider string for a named workload role.///-/// Empty / `"cloud"` resolves to `primary_cloud`. **Every** role behaves this-/// way: a route that is not set falls through to the managed backend, and no-/// role uses a sibling's BYOK provider as a fallback.+/// Empty / `"cloud"` resolves through `primary_cloud`. **Every** role behaves+/// this way, and no role uses a sibling's BYOK provider as a fallback.+///+/// "Resolves through `primary_cloud`" is not the same as "goes to the managed+/// backend": [`resolve_primary_cloud_provider_string`] may yield a legacy+/// external `inference_url` (see below), or the fail-closed sentinel for a+/// half-migrated BYOK config. The guarantee here is narrower and exact — an+/// unset route does not borrow a *sibling's* configured provider.////// The deliberate *aliases* in [`configured_route_for_role`] are unaffected and/// remain: `burst` reads `agentic_provider` and `summarization` reads