feat(#2039): drop is_primary from get_agent_meta matrix identities

This commit is contained in:
damocles 2026-06-27 12:39:44 +02:00 committed by mara
commit 5972605aeb
2 changed files with 3 additions and 10 deletions

View file

@ -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<MatrixIdentity>`; 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<String>,
/// 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