Description
In the current implementation of TaskManager.TaskStatusUpdateEvent,
when metadata is provided, it replaces the existing metadata in the task.
This causes previously stored metadata to be lost.
Expected behavior
When new metadata is provided, it should be merged with the existing metadata instead of replacing it entirely.
Reference
In the a2a-python implementation
,
the metadata is merged rather than overwritten.
Suggestion
Update the Java implementation to merge the metadata (similar to a2a-python)
to preserve existing key-value pairs while updating only the changed entries.