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(hosted): guard the default product identity snapshot
Steven Enamakel335cae29cd71
diff --git a/crates/openhuman-tinyhumans/src/hosted/client_tests.rs b/crates/openhuman-tinyhumans/src/hosted/client_tests.rsindex f58dfe6b7f..2097a70e5d 100644--- a/crates/openhuman-tinyhumans/src/hosted/client_tests.rs+++ b/crates/openhuman-tinyhumans/src/hosted/client_tests.rs@@ -158,8 +158,14 @@ async fn session_client_sends_bearer_and_product_identity() {.mount(&server).await;- let client =- HostedClient::with_credential(&server.uri(), BackendCredential::Session("jwt.a.b".into()));+ // The runtime-builder tests temporarily override the process identity.+ // Snapshot the default while holding the same guard those writers use;+ // the constructed client's headers are immutable after this block.+ let client = {+ let _identity = crate::backend::product::product_identity_test_lock();+ crate::backend::product::reset_product_identity_for_test();+ HostedClient::with_credential(&server.uri(), BackendCredential::Session("jwt.a.b".into()))+ };assert_eq!(client.kind(), CredentialKind::Session);let value = client.finish_value(