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
style: rustfmt
Steven Enamakeld18cb72fc958
diff --git a/crates/openhuman-core/src/channels/routes.rs b/crates/openhuman-core/src/channels/routes.rsindex 5c9282f0c3..4dce862046 100644--- a/crates/openhuman-core/src/channels/routes.rs+++ b/crates/openhuman-core/src/channels/routes.rs@@ -379,8 +379,7 @@ async fn durable_channel_history_len();// The runtime session addresses its transcript by the tenant-scoped store// key (the session identity resolver's agent), not the bare definition id.- let session =- tinyagents_session::transcript::SessionRef::scoped(session_key, &store_agent_id);+ let session = tinyagents_session::transcript::SessionRef::scoped(session_key, &store_agent_id);let head = locator.head_generation(&session);let Some(read) = locator.read_session_transcript(&head) else {return 0;diff --git a/crates/openhuman-core/src/channels/routes_tests_telegram.rs b/crates/openhuman-core/src/channels/routes_tests_telegram.rsindex ac7e4c9fee..79b6120e5f 100644--- a/crates/openhuman-core/src/channels/routes_tests_telegram.rs+++ b/crates/openhuman-core/src/channels/routes_tests_telegram.rs@@ -89,7 +89,12 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {);let sent = channel_state.sent.lock().unwrap();- assert_eq!(sent.len(), 3, "{:?}", sent.iter().map(|m| m.content.clone()).collect::<Vec<_>>());+ assert_eq!(+ sent.len(),+ 3,+ "{:?}",+ sent.iter().map(|m| m.content.clone()).collect::<Vec<_>>()+ );assert!(sent[0].content.contains("Started new session"));assert!(sent[0].contentdiff --git a/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs b/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rsindex 6bca275efc..c1f48667ed 100644--- a/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs@@ -223,24 +223,20 @@ fn receipt_matches_scope(channel: Option<&tinychannels_bus::ChannelRef>,conversation: Option<&tinychannels_bus::ConversationRef>,) -> bool {- receipt- .channel+ receipt.channel.as_ref().is_some_and(|receipt_channel| {+ // Provider adapters stamp receipts with the provider id only; a+ // receipt that names an account must name the scoped one.+ channel.is_some_and(|channel| {+ receipt_channel.id == channel.id+ && (receipt_channel.account_id.is_none()+ || receipt_channel.account_id == channel.account_id)+ })+ }) && receipt+ .conversation.as_ref()- .is_some_and(|receipt_channel| {- // Provider adapters stamp receipts with the provider id only; a- // receipt that names an account must name the scoped one.- channel.is_some_and(|channel| {- receipt_channel.id == channel.id- && (receipt_channel.account_id.is_none()- || receipt_channel.account_id == channel.account_id)- })+ .is_some_and(|receipt_conversation| {+ conversation.is_some_and(|conversation| receipt_conversation == conversation)})- && receipt- .conversation- .as_ref()- .is_some_and(|receipt_conversation| {- conversation.is_some_and(|conversation| receipt_conversation == conversation)- })}fn receipt_contains_message(receipt: &tinychannels_bus::channel::MessageReceipt, id: &str) -> bool {