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): skip auth error recording when scope is unresolved
Steven Enamakele8830f1fd156
diff --git a/crates/openhuman-core/src/inference/auth_error_registry.rs b/crates/openhuman-core/src/inference/auth_error_registry.rsindex 778841c8e3..462cc36f40 100644--- a/crates/openhuman-core/src/inference/auth_error_registry.rs+++ b/crates/openhuman-core/src/inference/auth_error_registry.rs@@ -63,6 +63,13 @@ pub fn record(provider: &str, status: u16) -> bool {}fn record_in_scope(provider: &str, status: u16, scope: CurrentScope) -> bool {+ if let CurrentScope::Unresolved(error) = scope {+ log::warn!(+ "[auth-errors] record provider={provider} skipped: scope unresolved ({error})"+ );+ return false;+ }+let timestamp_ms = now_ms();let changed = registry().record(ProviderAuthError {provider: provider.to_string(),@@ -88,11 +95,7 @@ fn record_in_scope(provider: &str, status: u16, scope: CurrentScope) -> bool {CurrentScope::Unbound => {origins.entry(provider.to_owned()).or_default().unscoped = true;}- CurrentScope::Unresolved(error) => {- log::warn!(- "[auth-errors] record provider={provider} skipped: scope unresolved ({error})"- );- }+ CurrentScope::Unresolved(_) => unreachable!("unresolved scope returned before recording"),}changed}