Reconcile Unity commands from daemon facts

This commit is contained in:
Meta Vens 2026-07-10 03:15:17 +01:00
commit 13e27e5572
8 changed files with 145 additions and 10 deletions

View file

@ -246,13 +246,9 @@ static async Task PublishCommittedCommandFactsAsync(
options.VerseId)).ConfigureAwait(false);
}
var policyRejectedIds = new HashSet<string>(
policyRejectedCommandIds ?? Array.Empty<string>(),
StringComparer.Ordinal);
foreach (var commandId in frame.RejectedCommandIds ?? Array.Empty<string>())
{
if (string.IsNullOrWhiteSpace(commandId) ||
!policyRejectedIds.Contains(commandId) ||
!byCommandId.TryGetValue(commandId, out var command))
continue;