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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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