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(progressive): skip native target resolution in test context
Steven Enamakel42ffb9492d93
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rsindex bf82b8ea43..fbe76594f3 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs@@ -138,6 +138,19 @@ pub(crate) fn native_target(ctx: &crate::channels::context::ChannelRuntimeContext,envelope: &tinychannels_bus::channel::ChannelInboundEnvelope,) -> anyhow::Result<Option<NativeProgressiveTarget>> {+ #[cfg(test)]+ if ctx+ .channels_by_name+ .get(&envelope.channel.id)+ .is_some_and(|handle| {+ matches!(+ handle.as_ref(),+ crate::channels::runtime::ChannelHandle::Test(_)+ )+ })+ {+ return Ok(None);+ }#[cfg(test)]if ctx.config.is_none() && ctx.module_objects.is_empty() {return Ok(None);