Skip to content

[Bug]: TaskManager.updateWithMessage does not clear status.message after history update #424

@flex-myeonghyeon

Description

@flex-myeonghyeon

What happened?

Description

The TaskManager.updateWithMessage method updates multi-turn input messages.
When a task already has a message in its status, that message is appended to the history.
However, after being added to the history, status.message should be cleared (null), but it remains set.

Expected behavior

status.message should be set to null once the message is moved to history.

Reference

In the a2a-python implementation
, the message is correctly cleared after being added to history.

Suggested fix

Update the Java implementation to match the Python behavior by nullifying status.message after it is appended to history.

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions