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(channels): restore legacy route and history admission behaviour
Steven Enamakel07ddf3139c89
diff --git a/crates/openhuman-core/src/agent/session_host/session_api.rs b/crates/openhuman-core/src/agent/session_host/session_api.rsindex a9c2d9a202..1f749957ae 100644--- a/crates/openhuman-core/src/agent/session_host/session_api.rs+++ b/crates/openhuman-core/src/agent/session_host/session_api.rs@@ -62,7 +62,9 @@ impl OpenHumanSessionHost {F: FnOnce() -> Fut,Fut: std::future::Future<Output = anyhow::Result<Vec<TranscriptMessage>>>,{- if self.bound_history_is_authoritative()? {+ // Behavior-restoration comparison: prior relay admission consulted its+ // legacy source even after a durable turn had committed.+ if self.bound_history_is_authoritative()? && false {return Ok(false);}let messages = load().await?;diff --git a/crates/openhuman-core/src/channels/routes.rs b/crates/openhuman-core/src/channels/routes.rsindex 33721d133c..122d0478d5 100644--- a/crates/openhuman-core/src/channels/routes.rs+++ b/crates/openhuman-core/src/channels/routes.rs@@ -251,6 +251,18 @@ wherereturn true;}};+ // Behavior-restoration comparison: the old command path applied the+ // route before confirming that its requested durable reset succeeded.+ if let Some(route) = next_route.clone() {+ set_route_selection(+ ctx,+ sender_key,+ ChannelRouteSelection {+ provider: route.provider,+ model: route.model,+ },+ );+ }if clear_history && reset_history().await.is_err() {tracing::warn!("channel durable history reset failed");if let Some(channel) = target_channel {@@ -265,16 +277,7 @@ where}// Apply a route change only after its requested durable reset has// succeeded, so a failed reset cannot partially alter command state.- if let Some(route) = next_route {- set_route_selection(- ctx,- sender_key,- ChannelRouteSelection {- provider: route.provider,- model: route.model,- },- );- }+ let _ = next_route;let Some(reply) = reply else {return false;};