Skip to content

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

test(web_chat): surface build error in non-ascii thread id test

Steven Enamakel9e68666e751e
diff --git a/crates/openhuman-core/src/web_chat/session_routing_tests.rs b/crates/openhuman-core/src/web_chat/session_routing_tests.rs
index b4bd0aca6e..8a2d3bc489 100644
--- a/crates/openhuman-core/src/web_chat/session_routing_tests.rs
+++ b/crates/openhuman-core/src/web_chat/session_routing_tests.rs
@@ -477,5 +477,7 @@ async fn a_non_ascii_thread_id_builds_a_session_agent_without_panicking() {
}))
.expect("build_session_agent panicked on a non-ASCII thread id");
// The label truncation only runs once the agent builds.
- built.expect("session agent must build");
+ if let Err(error) = built {
+ panic!("session agent must build: {error:#}");
+ }
}