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
fix(gateway): use `is_some_and` to check bearer token presence
Steven Enamakel4faa7a621c0c
diff --git a/app/src-tauri/src/gateway/types.rs b/app/src-tauri/src/gateway/types.rsindex 9d04de99d5..f41fc1e251 100644--- a/app/src-tauri/src/gateway/types.rs+++ b/app/src-tauri/src/gateway/types.rs@@ -189,7 +189,7 @@ pub fn validate_remote_transport(url: &str, token: Option<&str>) -> Result<(), Sif scheme != "http" && scheme != "https" {return Err(format!("{url} is not an http(s) endpoint"));}- let has_bearer = token.map(str::trim).map_or(false, |t| !t.is_empty());+ let has_bearer = token.map(str::trim).is_some_and(|t| !t.is_empty());if has_bearer && scheme == "http" && !is_loopback_host(parsed.host_str().unwrap_or_default()) {return Err("a remote core with a bearer token must be reached over https, not plain http".to_owned(),