Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(saas): assert relayed turn reaches the agent

Steven Enamakel4f598ee8f061
diff --git a/tests/saas_mode_e2e.rs b/tests/saas_mode_e2e.rs
index e236437885..82348c27c0 100644
--- a/tests/saas_mode_e2e.rs
+++ b/tests/saas_mode_e2e.rs
@@ -1011,6 +1011,15 @@ fn a_profile_holds_web_and_relayed_channel_threads() {
"{event}"
);
assert!(event.get("agent").is_none(), "no routing stamp on the wire");
+ // The turn reached the agent: the offline backend's error, never the
+ // dispatch failing to find an `agent.run_turn` handler.
+ assert!(
+ !event["full_response"]
+ .as_str()
+ .unwrap_or_default()
+ .contains("no native handler"),
+ "relayed turn must reach the agent: {event}"
+ );
// A gateway retry of the same message runs nothing twice.
let (_, body) = call("alice", "openhuman.channel_relay_inbound", relayed);