fix(client): processed history reads ask for the server's aggregate defaults

Found by the H3 live gate (H02): Client.Shared sent the SDK's default
AggregateConfiguration (all false / 0), which the server refuses as a
non-default configuration (BadAggregateConfigurationRejected, #677) on local
and projected nodes alike, so CLI/UI --aggregate reads never worked against
it. Set UseServerCapabilitiesDefaults = true. OI regression test (red without
the fix) also covers HistoryReadPageAsync.
This commit is contained in:
Joseph Doherty
2026-11-24 00:55:52 -05:00
parent 763669562e
commit 0a83c10ef6
2 changed files with 41 additions and 2 deletions
@@ -285,7 +285,10 @@ internal sealed class DefaultSessionAdapter : ISessionAdapter
StartTime = startTime,
EndTime = endTime,
ProcessingInterval = intervalMs,
AggregateType = [aggregateId]
AggregateType = [aggregateId],
// The SDK's default AggregateConfiguration is all-false/0 — a NON-default configuration, which this server
// refuses BadAggregateConfigurationRejected (#677). Ask for the server's own defaults, as Part 13 intends.
AggregateConfiguration = new AggregateConfiguration { UseServerCapabilitiesDefaults = true },
};
ArrayOf<HistoryReadValueId> nodesToRead = [new HistoryReadValueId { NodeId = nodeId }];