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
test: restore channel behavior after red comparison
Steven Enamakela1999a500ba9
diff --git a/crates/openhuman-core/src/agent/session_host/session_api.rs b/crates/openhuman-core/src/agent/session_host/session_api.rsindex 1f749957ae..a9c2d9a202 100644--- a/crates/openhuman-core/src/agent/session_host/session_api.rs+++ b/crates/openhuman-core/src/agent/session_host/session_api.rs@@ -62,9 +62,7 @@ impl OpenHumanSessionHost {F: FnOnce() -> Fut,Fut: std::future::Future<Output = anyhow::Result<Vec<TranscriptMessage>>>,{- // Behavior-restoration comparison: prior relay admission consulted its- // legacy source even after a durable turn had committed.- if self.bound_history_is_authoritative()? && false {+ if self.bound_history_is_authoritative()? {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 122d0478d5..33721d133c 100644--- a/crates/openhuman-core/src/channels/routes.rs+++ b/crates/openhuman-core/src/channels/routes.rs@@ -251,18 +251,6 @@ 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 {@@ -277,7 +265,16 @@ where}// Apply a route change only after its requested durable reset has// succeeded, so a failed reset cannot partially alter command state.- let _ = next_route;+ if let Some(route) = next_route {+ set_route_selection(+ ctx,+ sender_key,+ ChannelRouteSelection {+ provider: route.provider,+ model: route.model,+ },+ );+ }let Some(reply) = reply else {return false;};