diff --git a/cli/src/main.rs b/cli/src/main.rs index 555a6699db557b013ff154ff5395d1cc1bdd69d3..339005036eea2b7c0f98ab9b3007854de8ffaf2c 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -1644,7 +1644,6 @@ async fn main() -> Result<()> { println!("{}", serde_json::to_string_pretty(&resp)?); } else { println!("{}", resp.user); - println!("agents bound: {}", resp.agents_bound); } } } diff --git a/server/src/api/auth.rs b/server/src/api/auth.rs index 1306daa5fc9da63cc72ad6870331e020eae8f2ae..bfddcce4dc1a77571d297648dd840e6c5bc194f8 100644 --- a/server/src/api/auth.rs +++ b/server/src/api/auth.rs @@ -754,14 +754,5 @@ pub async fn get_whoami(State(state): State, headers: HeaderMap) -> im Ok(u) => u, Err((st, msg)) => return api_error(st, msg, None).into_response(), }; - let agents_bound = reduced - .agent_bindings - .values() - .filter(|u| *u == &username) - .count(); - Json(WhoamiResponse { - user: username, - agents_bound, - }) - .into_response() + Json(WhoamiResponse { user: username }).into_response() } diff --git a/types/src/lib.rs b/types/src/lib.rs index a708df46b553e7b36b40555cc8f1b014d86eb653..d747e509094d75124573f252ee4b6c73186b4c24 100644 --- a/types/src/lib.rs +++ b/types/src/lib.rs @@ -532,7 +532,6 @@ pub struct PendingSessionPollResponse { pub struct WhoamiResponse { /// Username (stored form, no `@`). pub user: String, - pub agents_bound: usize, } /// One item's position within a ranking component.