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(raw-coverage): stop sending the bearer twice from connectivity's rpc helper\n\ntinysweeper on #6124: `rpc()` called `.bearer_auth(...)` and then\n`.header(AUTHORIZATION, ...)` with the same value. `RequestBuilder::header`\nappends rather than replaces, so two `Authorization` headers went on the wire\nand which one the server honours is up to the server — axum takes one, and\n`bearer_auth` was effectively decorative.\n\nThe duplication is upstream, but this PR touched both lines when it swapped the\nliteral for `rpc_bearer()`, and after that change it also called `rpc_bearer()`\ntwice per request. Drop the manual header; `bearer_auth` is sufficient. The\n`use axum::http::header::AUTHORIZATION` import is now unused — nothing else in\nthe file referenced it — so it goes too.\n\n running 10 tests\n connectivity_raw_coverage_e2e ... 8 ok (every RPC test, so auth still works)\n rpc_bearer_hygiene_e2e ... 2 ok\n test result: ok. 10 passed; 0 failed\n\nVerified with `f0e898a45`'s `pub(crate)` fields widened LOCALLY and uncommitted,\nbecause E0451 currently stops `raw_coverage_all` compiling at all; that edit was\nreverted before this commit and is not part of it.\n\nClaude-Session: https://claude.ai/code/session_01Rx5Fzc5keoeUQB3MwMFqMM\n
M3gA-Mind0726ab9c81ac
diff --git a/tests/raw_coverage/connectivity_raw_coverage_e2e.rs b/tests/raw_coverage/connectivity_raw_coverage_e2e.rsindex 2c5ca0c3aa..640ade70c4 100644--- a/tests/raw_coverage/connectivity_raw_coverage_e2e.rs+++ b/tests/raw_coverage/connectivity_raw_coverage_e2e.rs@@ -9,7 +9,6 @@ use std::net::{SocketAddr, TcpListener as StdTcpListener};use std::path::Path;use std::sync::{Mutex, OnceLock};-use axum::http::header::AUTHORIZATION;use reqwest::StatusCode;use serde_json::{json, Value};use tempfile::{tempdir, TempDir};@@ -184,7 +183,6 @@ async fn rpc(rpc_base: &str, id: i64, method: &str, params: Value) -> Value {let response = client.post(rpc_base).bearer_auth(rpc_bearer())- .header(AUTHORIZATION, format!("Bearer {}", rpc_bearer())).json(&json!({"jsonrpc": "2.0","id": id,