fix(cli): alarms prints ConditionNodeId + EventId so ack/confirm are usable

The ack command requires both and nothing in the CLI surfaced them (found in the hw2 FOCAS live gate).

Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
Joseph Doherty
2026-10-08 21:25:56 -04:00
parent e7dd742541
commit c6ab783cb4
2 changed files with 29 additions and 0 deletions
@@ -79,6 +79,11 @@ public class AlarmsCommand : CommandBase
if (!string.IsNullOrEmpty(e.Message))
outputChannel.Writer.TryWrite($" Message: {e.Message}");
outputChannel.Writer.TryWrite($" Retain: {e.Retain}");
// `ack` needs both of these and nothing else in the CLI surfaces them.
if (!string.IsNullOrEmpty(e.ConditionNodeId))
outputChannel.Writer.TryWrite($" ConditionNodeId: {e.ConditionNodeId}");
if (e.EventId is { Length: > 0 })
outputChannel.Writer.TryWrite($" EventId: {Convert.ToHexString(e.EventId)}");
outputChannel.Writer.TryWrite(string.Empty);
}
catch