feat(hosts): driver diagnostics channel on /hosts, S7 negotiated PDU size first (#640)

Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
Joseph Doherty
2026-10-08 16:57:38 -04:00
parent a8b07ae12d
commit c2bdb7d5de
23 changed files with 469 additions and 20 deletions
@@ -164,6 +164,14 @@ public static class TelemetryProtoMapNode
msg.SkippedTags = payload;
}
// Gitea #640. Presence flag first - an empty map cannot say whether the driver has the capability.
if (e.Diagnostics is not null)
{
msg.HasDiagnostics = true;
foreach (var kv in e.Diagnostics)
msg.Diagnostics[kv.Key ?? ""] = kv.Value ?? "";
}
return msg;
}