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(channels): clean up remote reset tests
Steven Enamakel2f7933a1d5f0
diff --git a/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs b/crates/openhuman-core/src/channels/routes_remote_reset_tests.rsindex a8286233c2..24fc67e3b6 100644--- a/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs+++ b/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs@@ -67,10 +67,9 @@ fn remote_session_scope() -> tinychannels_bus::module_remote::RemoteSessionScopefn seed_session(core: &CoreContext, workspace: &Path, key: &str, agent_id: &str) -> SessionRef {let session = SessionRef::scoped(key, agent_id);- let history =- crate::agent::session_store::transcripts_or_files_in(core, agent_id, workspace)- .open_session(&session, transcript_meta(key, agent_id))- .unwrap();+ let history = crate::agent::session_store::transcripts_or_files_in(core, agent_id, workspace)+ .open_session(&session, transcript_meta(key, agent_id))+ .unwrap();history.append(TranscriptMessage::user("prior tenant turn")).unwrap();@@ -83,7 +82,10 @@ fn seed_session(core: &CoreContext, workspace: &Path, key: &str, agent_id: &str)fn session_messages(core: &CoreContext, workspace: &Path, session: &SessionRef) -> Vec<String> {let locator = crate::agent::session_store::transcripts_or_files_in(core,- &session.agent_id,+ session+ .agent_id+ .as_deref()+ .expect("test session is scoped to an agent"),workspace,);let head = locator.head_generation(session);@@ -155,17 +157,20 @@ async fn remote_clear_resets_only_the_captured_tenant_session() {).await.expect("Alice's configured channel agent resolves");- let bob_agent = crate::channels::runtime::dispatch::host_agent::configured_agent(- &_bob_runtime,- &bob_route,- )- .await- .expect("Bob's configured channel agent resolves");+ let bob_agent =+ crate::channels::runtime::dispatch::host_agent::configured_agent(&_bob_runtime, &bob_route)+ .await+ .expect("Bob's configured channel agent resolves");let canonical = "channel-session:telegram:bot-a:group:room-1";let alice_key = crate::core::runtime::tenant::tenant_key(&alice_tenant, canonical);let bob_key = crate::core::runtime::tenant::tenant_key(&bob_tenant, canonical);assert_ne!(alice_key, bob_key);- let alice_session = seed_session(&alice_core, workspace, &alice_key, &alice_agent.definition.id);+ let alice_session = seed_session(+ &alice_core,+ workspace,+ &alice_key,+ &alice_agent.definition.id,+ );let bob_session = seed_session(&bob_core, workspace, &bob_key, &bob_agent.definition.id);assert_eq!(super::durable_channel_history_len(