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
feat(web_chat): add progress trace tests
Steven Enamakel586882486bca
diff --git a/crates/openhuman-core/src/web_chat/progress_tests.rs b/crates/openhuman-core/src/web_chat/progress_tests.rsindex 0073712db3..aaf6f0e37a 100644--- a/crates/openhuman-core/src/web_chat/progress_tests.rs+++ b/crates/openhuman-core/src/web_chat/progress_tests.rs@@ -342,8 +342,8 @@ async fn stamps_monotonic_seq_on_emitted_events() {assert_eq!(ev.request_id, request_id);seqs.push(ev.seq.expect("every emitted event carries a seq"));}- // The very first emitted event starts the per-request counter at 0.- assert_eq!(seqs[0], 0, "seq counter starts at 0 for the request");+ // The very first emitted event starts the per-request counter at 1.+ assert_eq!(seqs[0], 1, "seq counter starts at 1 for the request");assert!(seqs.windows(2).all(|w| w[0] < w[1]),"emitted seqs must be strictly increasing, got {seqs:?}"@@ -362,7 +362,7 @@ async fn short_narration_is_flushed_on_the_rounds_first_tool_call() {as std::sync::Arc<dyn tinyagents_session::port::TurnStates>;let (tx, rx) = tokio::sync::mpsc::channel(16);let mut bus = crate::web_chat::subscribe_web_channel_events();- let _handle = spawn_progress_bridge(+ spawn_progress_bridge(rx,"client-short".into(),"thread-short-narration".into(),diff --git a/crates/openhuman-core/src/web_chat/progress_trace.rs b/crates/openhuman-core/src/web_chat/progress_trace.rsindex 9a42be8497..3457714c34 100644--- a/crates/openhuman-core/src/web_chat/progress_trace.rs+++ b/crates/openhuman-core/src/web_chat/progress_trace.rs@@ -77,7 +77,7 @@ pub(super) fn span_collector(/// identity (headless / autonomous / freshly booted cores): read the on-disk/// app-session profile and return the user's email (preferred) or backend user/// id. `None` when signed out or the profile is unreadable.-fn session_profile_user_attribution(config: &crate::config::Config) -> Option<String> {+pub(super) fn session_profile_user_attribution(config: &crate::config::Config) -> Option<String> {let state = crate::security::credentials::session_support::build_session_state(config).ok()?;state.user