diff --git a/src/A2A.Server.AspNetCore/Services/A2AServer.cs b/src/A2A.Server.AspNetCore/Services/A2AServer.cs index 10a5e8b..fc0021e 100644 --- a/src/A2A.Server.AspNetCore/Services/A2AServer.cs +++ b/src/A2A.Server.AspNetCore/Services/A2AServer.cs @@ -173,8 +173,6 @@ public async IAsyncEnumerable SendStreamingMessageAsync(SendMess logger.LogError($"Failed to cancel the task with id '{id}' because it is in an unexpected state '{task.Status}'", id, task.Status); throw new A2AException(ErrorCode.TaskNotCancelable, $"Failed to cancel the task with id '{id}' because it is in an unexpected state '{task.Status}'"); } - task.History ??= []; - if (task.Status.Message != null) task.History.Add(task.Status.Message); task.Status = task.Status with { State = TaskState.Cancelled,