What happened?
Description
When TaskArtifactUpdateEvent is handled by TaskManager with the type set to append,
the metadata included in the event is not applied to the existing artifact.
In the current behavior, even if an append event contains metadata,
the existing artifact’s metadata (existArtifact.metadata) remains unchanged,
and the metadata from TaskArtifactUpdateEvent is ignored.
Expected Behavior
When TaskArtifactUpdateEvent has the type append,
the metadata provided in the event should be merged into the existing artifact’s metadata.
Preserve existing existArtifact.metadata
Merge TaskArtifactUpdateEvent.metadata into it (adding or overriding keys as needed)
Suggested Fix
The append handling logic should merge
TaskArtifactUpdateEvent.metadata into existArtifact.metadata instead of ignoring it.
Relevant log output
Code of Conduct