From 283c9b049e4635b2d531bf728179c1d089109118 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Thu, 26 Feb 2026 23:46:05 +0100 Subject: [PATCH] [feat](trx-protocol): add display_name to RigEntry Include optional display_name field in GetRigs response to allow clients to show friendly rig names instead of just identifiers. Co-Authored-By: Claude Opus 4.6 --- src/trx-protocol/src/types.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/trx-protocol/src/types.rs b/src/trx-protocol/src/types.rs index 9866a9b..c8dffad 100644 --- a/src/trx-protocol/src/types.rs +++ b/src/trx-protocol/src/types.rs @@ -54,6 +54,9 @@ pub struct ClientEnvelope { #[derive(Debug, Serialize, Deserialize)] pub struct RigEntry { pub rig_id: String, + /// Display name for the rig (long name from config, or rig_id if not set). + #[serde(default, skip_serializing_if = "Option::is_none")] + pub display_name: Option, pub state: RigSnapshot, #[serde(default, skip_serializing_if = "Option::is_none")] pub audio_port: Option,