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
chore: clarify cache fallback comments and test naming
Steven Enamakel46f0efe68163
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs b/crates/openhuman-core/src/channels/runtime/dispatch/routing.rsindex c587dc67b1..55fc6543bc 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs@@ -141,9 +141,9 @@ pub(super) async fn resolve_target_agent(channel: &str) -> AgentScoping {"[dispatch::routing] Composio unavailable/timed out — using cached integration snapshot instead of an empty set (keeps the integration action catalogue live)");}- // Use the expiry-tolerant read for the fallback: a transient blip that- // lands just after the 60s cache TTL must still preserve the last-known+ // A transient backend failure must preserve the last-known connected// integrations rather than collapse tool-calling to an empty set.+ // The credential-scoped cache has no idle-time expiry.let connected = connected_with_fallback(fetched, cached_active_integrations(&config));tracing::debug!(channel = %channel,diff --git a/crates/openhuman-core/src/integrations/composio/ops_fetch_integrations_and_triggers_tests.rs b/crates/openhuman-core/src/integrations/composio/ops_fetch_integrations_and_triggers_tests.rsindex 7f99d82188..c422413cec 100644--- a/crates/openhuman-core/src/integrations/composio/ops_fetch_integrations_and_triggers_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/ops_fetch_integrations_and_triggers_tests.rs@@ -326,7 +326,7 @@ async fn cache_entries_survive_idle_time_until_connection_change() {}#[test]-fn fallback_reader_matches_main_reader_without_time_based_expiry() {+fn cached_integrations_remain_available_after_a_long_idle_period() {let _guard = cache_guard();let tmp = tempfile::TempDir::new().unwrap();let config = test_config(&tmp);@@ -339,9 +339,8 @@ fn fallback_reader_matches_main_reader_without_time_based_expiry() {let mut guard = INTEGRATIONS_CACHE.write().unwrap();guard.get_mut(&key).unwrap().cached_at = Instant::now() - Duration::from_secs(3600);}- assert!(cached_active_integrations(&config).is_some());let stale = cached_active_integrations(&config)- .expect("expired entry should still be returned by the fallback read");+ .expect("a long idle period must not expire the last-known snapshot");assert_eq!(stale.len(), 1);assert_eq!(stale[0].toolkit, "gmail");