Fix PR comments

This commit is contained in:
Peter Ibekwe
2026-06-15 17:42:12 -07:00
Unverified
parent 48f137c1ef
commit 2c6c17054e
4 changed files with 19 additions and 20 deletions
@@ -171,7 +171,7 @@ internal sealed class InvokeFunctionToolExecutor(
this.Logger.LogWarning(
"Approval response '{RequestId}' did not match any pending invocation on '{ActionId}'.",
approval.RequestId, this.Id);
await this.AssignErrorAsync(context, "Function invocation was not approved by user.").ConfigureAwait(false);
await this.AssignErrorAsync(context, "No pending approval matched the response.").ConfigureAwait(false);
}
else if (!approval.Approved)
{
@@ -184,11 +184,10 @@ internal sealed class InvokeFunctionToolExecutor(
}
else
{
// Snapshot was consumed by a concurrent delivery; surface the not-approved error.
this.Logger.LogWarning(
"Approval response '{RequestId}' had no remaining pending snapshot on '{ActionId}'.",
approval.RequestId, this.Id);
await this.AssignErrorAsync(context, "Function invocation was not approved by user.").ConfigureAwait(false);
await this.AssignErrorAsync(context, "No pending approval matched the response.").ConfigureAwait(false);
}
}
}