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(json_rpc_threads): import classic transcripts before reading thread totals
Steven Enamakelc570c9e4c37e
diff --git a/tests/json_rpc_threads_e2e.rs b/tests/json_rpc_threads_e2e.rsindex 8e0e69d808..dbc50c12ef 100644--- a/tests/json_rpc_threads_e2e.rs+++ b/tests/json_rpc_threads_e2e.rs@@ -899,6 +899,20 @@ async fn json_rpc_threads_token_usage_reads_persisted_thread_totals() {).expect("write subagent transcript");+ // The host imports classic workspace transcripts during runtime boot.+ // This test builds the router directly, so run the same importer before+ // asking the storage-backed thread API to read the seeded records.+ let config = openhuman::config::Config::load_or_init()+ .await+ .expect("load test config");+ let backend = openhuman::storage::local::backend_for(&config.workspace_dir)+ .expect("open test workspace storage");+ let reports = openhuman::storage::import::sessions::run_with(&backend, &config);+ assert!(+ reports.iter().all(|report| report.outcome.is_ok()),+ "import classic session transcripts: {reports:?}"+ );+let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;let rpc_base = format!("http://{rpc_addr}");