From b39848b5f525204d1b029e641b88ab066702dfce Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 21 May 2026 13:53:15 -0400 Subject: [PATCH] Enable alarm auto-subscribe on session open Set MxGateway:Alarms with Enabled=true and the dev-rig subscription expression \DESKTOP-6JL3KKO\Galaxy!DEV. Worker sessions now subscribe their wnwrap alarm consumer on open; without this the QueryActiveAlarms RPC returns an empty stream because no session is ever alarm-subscribed. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/MxGateway.Server/appsettings.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MxGateway.Server/appsettings.json b/src/MxGateway.Server/appsettings.json index 55a6e02..2c5a91b 100644 --- a/src/MxGateway.Server/appsettings.json +++ b/src/MxGateway.Server/appsettings.json @@ -66,6 +66,12 @@ "ConnectionString": "Server=localhost;Database=ZB;Integrated Security=True;TrustServerCertificate=True;Encrypt=False;", "CommandTimeoutSeconds": 60, "DashboardRefreshIntervalSeconds": 30 + }, + "Alarms": { + "Enabled": true, + "SubscriptionExpression": "\\\\DESKTOP-6JL3KKO\\Galaxy!DEV", + "DefaultArea": "", + "RequireSubscribeOnOpen": false } } }