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
chore: files changed src/embed/agent_tests.rs
Steven Enamakelc521664a3807
diff --git a/src/embed/agent_tests.rs b/src/embed/agent_tests.rsindex 5aa6a451eb..0ac5fe3536 100644--- a/src/embed/agent_tests.rs+++ b/src/embed/agent_tests.rs@@ -128,13 +128,15 @@ fn is_https_endpoint_accepts_only_tls() {#[test]fn insecure_route_error_names_the_redacted_endpoint() {+ // The guard sanitizes the endpoint before it lands in the error, so the+ // message names the origin but never the credential-bearing parts.+ let endpoint = sanitize_url_for_display("http://user:[email protected]/v1?key=leaky");let err = CoreError::InsecureRoute {method: AGENT_CHAT,- endpoint: "http://user:[email protected]/v1?key=leaky".to_string(),+ endpoint,};let msg = err.to_string();assert!(msg.contains("non-HTTPS"), "classifies the reason: {msg}");- // The endpoint rendered in the message has its credentials stripped.assert!(!msg.contains("user"), "userinfo not leaked: {msg}");assert!(!msg.contains("leaky"), "query credentials not leaked: {msg}");assert!(msg.contains("api.example"), "origin stays readable: {msg}");