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
refactor(channels): nest history reset check in route handling
Steven Enamakel83df514d74fe
diff --git a/crates/openhuman-core/src/channels/routes.rs b/crates/openhuman-core/src/channels/routes.rsindex acccae5616..12d44dc440 100644--- a/crates/openhuman-core/src/channels/routes.rs+++ b/crates/openhuman-core/src/channels/routes.rs@@ -256,15 +256,17 @@ wherereturn true;}};- if clear_history && let Err(error) = reset_history().await {- tracing::warn!(%error, "channel durable history reset failed");- if let Some(channel) = target_channel {- let copy = crate::channels::failure_copy::generic_failure(ctx.config.as_deref());- let _ = channel- .send_with_outbound_intent(&reply_message(©))- .await;+ if clear_history {+ if let Err(error) = reset_history().await {+ tracing::warn!(%error, "channel durable history reset failed");+ if let Some(channel) = target_channel {+ let copy = crate::channels::failure_copy::generic_failure(ctx.config.as_deref());+ let _ = channel+ .send_with_outbound_intent(&reply_message(©))+ .await;+ }+ return true;}- return true;}// Apply a route change only after its requested durable reset has// succeeded, so a failed reset cannot partially alter command state.