Skip to content

[Bug]: Wrong error when sending a message for a terminal task #1205

Description

@lkk7

What happened?

What the spec says about the "Send Message" operation errors:

UnsupportedOperationError: Messages sent to Tasks that are in a terminal state [...]

What the code does (on_message_send(...)->_setup_message_execution(...)):

if task.status.state in TERMINAL_TASK_STATES:
    raise InvalidParamsError(
        message=f'Task {task.id} is in terminal state: {task.status.state}'
    )

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

component: serverIssues related to frameworks for agent execution, HTTP/event handling, database persistence logic.status:awaiting response

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions