From 5972605aeba9ed6dcda0438b5e7a3d1caa83770c Mon Sep 17 00:00:00 2001 From: damocles Date: Sat, 27 Jun 2026 12:39:44 +0200 Subject: [PATCH] feat(#2039): drop is_primary from get_agent_meta matrix identities --- hive-ag3nt/src/mcp.rs | 7 +------ hive-sh4re/src/lib.rs | 6 ++---- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/hive-ag3nt/src/mcp.rs b/hive-ag3nt/src/mcp.rs index 60ab993b..fb5a1b49 100644 --- a/hive-ag3nt/src/mcp.rs +++ b/hive-ag3nt/src/mcp.rs @@ -510,12 +510,7 @@ pub fn format_agent_meta(resp: Result) -> String { out.push_str("\nmatrix_accounts:"); for acct in &matrix_accounts { let uid = acct.user_id.as_deref().unwrap_or("?"); - let primary = if acct.is_primary { " [primary]" } else { "" }; - let _ = write!( - out, - "\n {} ({uid}) on {}{primary}", - acct.name, acct.homeserver - ); + let _ = write!(out, "\n {} ({uid}) on {}", acct.name, acct.homeserver); } } out diff --git a/hive-sh4re/src/lib.rs b/hive-sh4re/src/lib.rs index 4e965e70..80d44bc8 100644 --- a/hive-sh4re/src/lib.rs +++ b/hive-sh4re/src/lib.rs @@ -926,7 +926,8 @@ pub struct AgentStatusRow { /// `matrix_accounts`. Field names match the daemon's `matrix-accounts.json` /// snapshot (written by `hive-matrix-mcp`'s account registry) so hive-c0re /// deserializes the snapshot straight into `Vec`; the -/// snapshot's `live` field is ignored here (only live accounts are listed). +/// snapshot's `live` / `is_primary` fields are ignored here (only live +/// accounts are listed). #[derive(Debug, Clone, Serialize, Deserialize)] pub struct MatrixIdentity { /// Logical account name (the `account` arg on the matrix MCP tools). @@ -937,9 +938,6 @@ pub struct MatrixIdentity { pub user_id: Option, /// Homeserver base URL this account is on. pub homeserver: String, - /// Whether this is the primary account (selected when a matrix tool - /// call omits `account`). - pub is_primary: bool, } /// Serde default for the `running` field; keeps wire backwards-compat